| Author |  | 
      
        | atamata Newbie
 
  
 
 Joined: 02 April 2012
 Online Status: Offline
 Posts: 15
 | 
          Hi, is it possible to select the 'All Mail' folder? I've tried using the SelectFolder method and it throws an exception, I'm guessing that All Mail is possibly a label and not an actual folder.
           | Posted: 08 June 2012 at 4:52am | IP Logged |   |  
           | 
 |  
 Could you advise some way of achieving this?
 
 thanks
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          To check this, I have used this sample with my GMail account, and the result was as follows:
           | Posted: 08 June 2012 at 5:10am | IP Logged |   |  
           | 
 |  
 
   
 As you can see, All Mail isn't actually one of the root folders, it's a child of [Gmail] folder. Thus, the following line of code:
 
 
 
| Code: 
 
    
    | 
      
       | imp.SelectFolder("[Gmail]/All Mail"); |  |  |  
 works as expected.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | atamata Newbie
 
  
 
 Joined: 02 April 2012
 Online Status: Offline
 Posts: 15
 | 
          Thanks you, I was omitting the [Gmail] part
           | Posted: 08 June 2012 at 6:30am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  |