# Net::IMAP

**URL:** <https://www.ruby-forum.com/t/net-imap/74966>\
**Category:** Ruby\
**Created:** [November 7, 2006, 11:04am UTC](https://www.ruby-forum.com/t/net-imap/74966 "2006-11-07T11:04:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ed655f/32.png) [@tma](https://www.ruby-forum.com/u/tma)\
**Post date:** [November 7, 2006, 11:04am UTC](https://www.ruby-forum.com/t/net-imap/74966/1 "2006-11-07T11:04:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ed655f/32.png) [@tma](https://www.ruby-forum.com/u/tma)\
**Post date:** [November 7, 2006, 11:04am UTC](https://www.ruby-forum.com/t/net-imap/74966/2 "2006-11-07T11:04:28Z")

</div>

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)](http://www.faqs.org/rfcs/rfc3501.html)  
[2] [http://rubyforge.org/projects/seattlerb](http://rubyforge.org/projects/seattlerb)

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)

---

<div class="post-metadata">

**Author:** ![tma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ed655f/32.png) [@tma](https://www.ruby-forum.com/u/tma)\
**Post date:** [November 10, 2006, 12:59am UTC](https://www.ruby-forum.com/t/net-imap/74966/3 "2006-11-10T00:59:00Z")

</div>

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.
