Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: IMAP Sync Question Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jose
Newbie
Newbie
Avatar

Joined: 24 October 2014
Location: Portugal
Online Status: Offline
Posts: 2
Posted: 24 October 2014 at 4:04am | IP Logged Quote jose

Hi there,

Is there a way for me to check wich mail messages were changed since the last time i checked/synchronized from the server (Gmail or Outlook)?
Back to Top View jose's Profile Search for other posts by jose
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6103
Posted: 24 October 2014 at 4:37am | IP Logged Quote Igor

IMAP itself doesn't offer any direct ways for that. You need to maintain list of UIDs and compare it between sessions. You can use Imap.Search method to get list of message UIDs for current folder. You might also check flags status, that's done with Imap.DownloadEnvelopes method and is explained here.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
jose
Newbie
Newbie
Avatar

Joined: 24 October 2014
Location: Portugal
Online Status: Offline
Posts: 2
Posted: 24 October 2014 at 5:38am | IP Logged Quote jose

Thank you!

Just one more question, is there any identifier for folders? For example, if I have Folder1/Folder1.1 and Folder2, and then move the Folder1.1 to Folder2/Folder1.1 (on the browser). How can i know if that's my old Folder1/Folder1.1 and not a new Folder2/Folder1.1 different from the previous?
Back to Top View jose's Profile Search for other posts by jose
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6103
Posted: 24 October 2014 at 5:49am | IP Logged Quote Igor

No such thing unfortunately, but there might be a way to determine if you're dealing with the same folder by checking FolderStatus and getting its UidValidity value which is usually the same across sessions. I am saying "might" here as the approach isn't really 100% reliable.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6103
Posted: 24 October 2014 at 5:53am | IP Logged Quote Igor

Oops, wrong link to UidValidity property documentation page, fixed it in the previous message.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

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