I use Imap.AppendMail to save new email to imap server folder. How can I set some custom flags with values in this email (example "Custom flag" = "flag value")? After that I want to read this flag value. How can I do it?
This functionality is available in the v9.5.0 pre-release. See the temporary refdoc here:
Can I set custom flag with value in appending email header? I tried to use Imap.SetMailFlag(Email email, string flagName, int value) before appending email. But it doesn't work.
I read notes for the method SetMailFlag:
Note: When the Chilkat IMAP component downloads an email from an IMAP server, it inserts a "ckx-imap-uid" header field in the email object. This is subsequently used by this method to get the UID associated with the email. The "ckx-imap-uid" header must be present for this method to be successful.
But in my case before appending I have email object with header: MIME-Version: 1.0 Date: Tue, 18 Feb 2014 10:08:46 +0300 Message-ID: 35D693F0F60EF992AA3D04C3848B1E11A2A33703@KULIGIN Content-Type: text/html Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) Subject: eeee From: firstname.lastname@example.org CKX-Bounce-Address: email@example.com To: firstname.lastname@example.org
Header doesn't contain "ckx-imap-uid" field. What can I do in this case?