How do you get a list of the folders available?
And how do you identify the seperator on the server?
I know that some use ‘.’ and others use ‘/’
It would be nice to be able to interrogate the system before hand.
On Nov 5, 2006, at 1:22 PM, Tom A. wrote:
How do you get a list of the folders available?
You want #list. Read RFC 3501 [1] 6.3.8 if the Net::IMAP
documentation isn’t complete.
And how do you identify the seperator on the server?
I know that some use ‘.’ and others use ‘/’
There isn’t a separator. LIST will give you mailbox names.
It would be nice to be able to interrogate the system before hand.
Look at IMAPCleanse [2] for an example of Net::IMAP usage.
[1] RFC 3501 - INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1 (RFC3501)
[2] http://rubyforge.org/projects/seattlerb
–
Eric H. - [email protected] - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant
On 5-Nov-06, at 4:55 PM, Eric H. wrote:
And how do you identify the seperator on the server?
I know that some use ‘.’ and others use ‘/’There isn’t a separator. LIST will give you mailbox names.
actually, the LIST command returns the hierarchy separator, as well,
check out section 7.2.2 of the RFC
Matt
It would be nice to be able to interrogate the system before hand.