OT, question on IMAP

Andrew Morgan morgan at orst.edu
Fri Sep 12 16:11:00 EDT 2003



On Fri, 12 Sep 2003, Etienne Goyer wrote:

> Thanks all for your response.  I would have two more questions.
>
> In a Murder, if I connect to a backend and issue :
>
> * OK backend1 Cyrus IMAP4 v2.1.13 server ready
> . login admin *******
> . OK User logged in
> . STATUS user/egoyer (MESSAGES UNSEEN)
> . NO Permission denied
>
> Which ACL do I need to get STATUS on a mailbox ?  Does it make sense for
> the admin to have that permissions ?
>
> Secondly, the RFC have the following to say concerning the STATUS
> command :
>
>       Unlike the LIST command, the STATUS command is not guaranteed to
>       be fast in its response.  Under certain circumstances, it can be
>       quite slow.  In some implementations, the server is obliged to
>       open the mailbox read-only internally to obtain certain status
>       information.
>
> Is this the case with Cyrus ?  Can the STATUS command be considered
> expensive ?
>
> To give some perspective, I want to count read vs unread messages in a
> Murder (don't ask why, some people just love statistics).  Since this
> will have to be done from a remote machine, I would prefer to do that
> within the IMAP (or another) protocol instead of accessing the
> filesystem directly.  My plan was to connect to each backend in turn,
> retrieve mailbox list, get seen/unseen count for each mailbox and
> compute the total.  If you know of a better way to do it, your
> suggestion are welcome !
>
> Thanks again for your insight.

Don't forget that the SEEN status is from the perspective of the user you
are connected as.  So if you connect as your admin user, mostly likely all
messages will be UNSEEN.

	Andy





More information about the Info-cyrus mailing list