Hello,

We are using currently Rebex IMAP for one of our products. We also want to use Rebex for the connections to Microsoft Exchange Server over IMAP protocoll. While doing that we need to add extra properties (etc. data, not attachment for example, a string array) to mails which are sent/received over exchange server. Is there any possibility to add Rebex Mails/MIMEs extra information? If yes, do you have any information about if Exchange Server is capable of saving this information in its message database.

Thanks in advance.

Best Regards,

Evren Günay

asked 30 Apr '10, 18:08

Evren%20Gunay's gravatar image

Evren Gunay
161
accept rate: 0%

edited 10 Aug '10, 13:24

Rebex%20KB's gravatar image

Rebex KB ♦♦
256312


1) You can use IMAP keywords functionality to assign keywords (or tags) to mail messages. Using this to store arbitrary data is not really possible.

or

2) You can add extra information into custom headers of an e-mail – these are preserved and stored in its message database by Microsoft Exchange Server (Edit: See the comment).

However, adding a custom header using the IMAP protocol is very problematic – IMAP doesn't make it possible to modify a message at the mail server, so the only way to add a header is to:

  1. Download the message from the server.
  2. Add the header to the downloaded message.
  3. Upload the message back to the server.
  4. Delete the original message.

The problem with this is that we are not actually modifying a message, but creating a modified copy of it. This means that any Exchange-only properties associated with the message (which are not accessible using the IMAP protocol) will disappear. This might be undesirable.

link

answered 03 May '10, 12:04

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.2k18
accept rate: 32%

edited 04 May '10, 12:08

It turned out that custom headers are actually not preserved very well by Microsoft Exchange Server. The reason for this is that Exchange doesn't store raw MIME messages in its database, but converts them to its internal MAPI format. And this conversion is obviously not lossless. So the method described here only works safely on non-Exchange IMAP servers that store the raw MIME message.

(04 May '10, 12:06) Lukas Pokorny ♦♦
Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×71
×2
×2

Asked: 30 Apr '10, 18:08

Seen: 1,169 times

Last updated: 23 Mar '11, 10:22