Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: GMail select ’All Mail’ folder Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
atamata
Newbie
Newbie


Joined: 02 April 2012
Online Status: Offline
Posts: 15
Posted: 08 June 2012 at 4:52am | IP Logged Quote atamata

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.

Could you advise some way of achieving this?

thanks
Back to Top View atamata's Profile Search for other posts by atamata
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 08 June 2012 at 5:10am | IP Logged Quote Igor

To check this, I have used this sample with my GMail account, and the result was as follows:



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 View Igor's Profile Search for other posts by Igor
 
atamata
Newbie
Newbie


Joined: 02 April 2012
Online Status: Offline
Posts: 15
Posted: 08 June 2012 at 6:30am | IP Logged Quote atamata

Thanks you, I was omitting the [Gmail] part
Back to Top View atamata's Profile Search for other posts by atamata
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide