Exchange Server Changes Message UID

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Ruski
Forum Commoner
Posts: 28
Joined: Thu May 26, 2005 3:45 am

Exchange Server Changes Message UID

Post by Ruski »

Dear Friends,

I have a problem where the message ids (UID) in my mailbox are changing.
Let me first of all explain the environment, as its quite complex.

We have a ms exchange 2003 server running on a SBS, on that server we have a mailbox which is used for a sort of ticketing system.
This mailbox is used by an IMAP connection from our website via PHP.
Most of the information(not including the message) is stored in our mySQL database when ever a new message is received.
The users in our office are accessing these PHP pages each day to deal/reply to these messages.
Once a message has been dealt with it is recorded in the database as "read" and referenced by its message uid.

Today all of a sudden the messages which were dealt with yesterday all appeared as unread, this made me realise that the message UIDs changed.

Additionally this mailbox is also mapped as an additional mailbox on some user's outlooks, but the users do no have permissions to delete/move/etc these messages from the mailbox.

Any ideas or thoughts would be greatly appreciated.

Thanks in advance
Alex
roders
Forum Commoner
Posts: 68
Joined: Tue Oct 20, 2009 9:29 am

Re: Exchange Server Changes Message UID

Post by roders »

Where are the message_uid generated from??
Ruski
Forum Commoner
Posts: 28
Joined: Thu May 26, 2005 3:45 am

Re: Exchange Server Changes Message UID

Post by Ruski »

The message UID is generated by the mail server. It is a unique reference number by which you can identify a particular message.
roders
Forum Commoner
Posts: 68
Joined: Tue Oct 20, 2009 9:29 am

Re: Exchange Server Changes Message UID

Post by roders »

I take it that you're running Outlook ? It is possible that there's timing-related problem that has
been discovered in Outlook's IMAP support that appears to manifest when Outlook synchronize with an IMAP mailbox at the same time that some sort of server-side rules are moving or deleting messages. I don't think there's any fix for that except making sure that you don't have 2 user dealing with the email at the same time.
Read this http://www.hmailserver.com/forum/viewtopic.php?t=6431 This explains it more in detail.
Post Reply