delphi - Indy IMAP - which property to use for identifying new email messages? -


using: delphi xe2, latest indy snapshot svn (10.6.0.4997)

in case of imap there 2 properties - uid , msgid can used uniquely identify message in mailbox.

  1. i'm writing email client, , need know more reliable or recommended of 2 store everytime client connects , retrieves message list.

  2. what sequence of steps needed check new emails? i'm looking correct sequence , set of indy idimap4 commands new emails.

tia.

unlike pop3/smtp, imap defines flags on emails. tidmessage.flags property has mfrecent , mfseen flags available (amongst others). client can emails have mfrecent set on them, update flags on server clear mfrecent , set mfseen needed.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -