| Author |  | 
      
        | netcast Newbie
 
  
 
 Joined: 14 October 2010
 Location: Canada
 Online Status: Offline
 Posts: 4
 | 
          Hi -
           | Posted: 14 October 2010 at 1:56pm | IP Logged |   |  
           | 
 |  
 Not sure if this is possible, but I thought I would ask!
 Is it possible to have an IMAP folder with another?
 e.g archive/personal, archive/projects, etc
 If so...
 Could I select the folder "archive" and then get a list of the folders?
 
 something like:
 imp.SelectFolder("archive")
 For Each folder As Folder In imp.Search(something)
 Response.Write(folder.Name)
 Next
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          
           | Posted: 15 October 2010 at 2:01am | IP Logged |   |  
           | 
 |  
| Quote: 
 
    
    | 
      
       | Is it possible to have an IMAP folder with another? e.g archive/personal, archive/projects, etc
 |  |  |  
 Yes, this feature is supported by IMAP protocol. GMail uses this approach widely: if you access GMail account via IMAP, you'll see [GMail] folder there with a number of subfolders:
 
 
 [GMail]/All Mail[GMail]/Drafts[GMail]/Spam...
 
 
 
| Quote: 
 
    
    | 
      
       | Could I select the folder "archive" and then get a list of the folders? |  |  |  
 You can get a full list of folders as shown here. And this documentation page shows how to get subfolders of a particular folder.
 
 Hope this helps!
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | netcast Newbie
 
  
 
 Joined: 14 October 2010
 Location: Canada
 Online Status: Offline
 Posts: 4
 | 
          Worked perfectly! Thanks
           | Posted: 15 October 2010 at 8:24am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  |