On Wed, Nov 08, 2006 at 07:53:02PM +0100, Jens Meyer wrote:
> I am writing a small webmail-component (imap-connections) for 
> Joomla/Mambo and looking for an (easy) solution how to check the 
> folder-handling of the imap-server automatically.
> 
> When debugging I figured out that there are different attributes for 
> mailboxes/folders. I tested with Cyrus and Courier and received the 
> following attributes: 1, 32, 40, 64

Consult the documentation of whatever IMAP client library you're using.
These numbers are not part of the IMAP protocol. Use tcpdump to see the
actual IMAP messages being exchanged; the library must be mapping them to
these numbers. Or telnet to port 143 and issue IMAP commands by hand.

> For INBOX of Courier the attributes-value was 40 but changed now (after 
> deletion of a subfolder?) to 32.

You may be thinking about message and mailbox *flags*, not attributes. But
even then, these are not numbers in IMAP. They are text strings, like
\Noselect or \Deleted. See RFC 3501 for more info.

40 = 32 + 8, so I guess there were two flags set before and one after.

> Is this value directly from mailserver or is this generated by the 
> PHP-function "imap_getmailboxes"?

>From the PHP function.

Brian.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to