login about faq


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?

asked Feb 17 '14 at 03:59

kuligintim's gravatar image


edited Feb 24 '14 at 07:39

This functionality is available in the v9.5.0 pre-release. See the temporary refdoc here:



answered Feb 17 '14 at 20:38

chilkat's gravatar image

chilkat ♦♦

Thanks for your answer but I asked about mail object not about mailbox. Please see my comment below in my answer.

(Feb 18 '14 at 02:22) kuligintim

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: xxxxxxx@xxxx.xx CKX-Bounce-Address: xxxxx@xxxx.xx To: xxxxxxxx@xxx.xx

Header doesn't contain "ckx-imap-uid" field. What can I do in this case?


answered Feb 18 '14 at 02:15

kuligintim's gravatar image


edited Feb 18 '14 at 02:22

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Feb 17 '14 at 03:59

Seen: 5,964 times

Last updated: Feb 24 '14 at 07:39

powered by OSQA