Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Net::IMAP
Tom Allison
11/5/2006 9:23:00 PM
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.
2 Answers
Eric Hodel
11/5/2006 9:56:00 PM
0
On Nov 5, 2006, at 1:22 PM, Tom Allison 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]
http://www.faqs.org/rfcs/rf...
[2]
http://rubyforge.org/projects...
--
Eric Hodel - drbrain@segment7.net -
http://blog.se...
This implementation is HODEL-HASH-9600 compliant
http://trackmap.rob...
Matt Rose
11/9/2006 11:57:00 PM
0
On 5-Nov-06, at 4:55 PM, Eric Hodel 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.
>
> Look at IMAPCleanse [2] for an example of Net::IMAP usage.
>
> [1]
http://www.faqs.org/rfcs/rf...
> [2]
http://rubyforge.org/projects...
>
> --
> Eric Hodel - drbrain@segment7.net -
http://blog.se...
> This implementation is HODEL-HASH-9600 compliant
>
>
http://trackmap.rob...
>
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Net::IMAP
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password