Archived Forum Post

Index of archived forum posts

Question:

How to get UID of Email Appended to IMAP Mailbox?

Jun 20 '12 at 10:55

We work in Visual Fox Pro, and use chilkat IMAP control for Exchange Server. Everything is work fine, but we have one problem. We use code from link belove to 'Upload (Append) Email to an IMAP Mailbox' after we send email.

http://www.example-code.com/foxpro/imap_appendEmail.asp

This code work fine, but problem for us is how to get Email ID after we append email to specific imap folder. We tried to search by header but without success.


Answer

The imapObject.AppendUid property contains this value. See the online reference documentation.

"The AppendUid property contains the UID of the last email appended to a mailbox via an Append* method. (Not all IMAP servers report back the UID of the email appended.)"