Hi, quick-n-dirty Changing the contents of an rfc822 message in an imap-mailstore is not permitted by the IMAP protocol unless the message's uid is also reassigned. If you need to modify headers, you must make the modifications prior to storing the message in the imap-mailstore. After the message has been stored, the only way to make a change is to fetch the message, append a modified version and delete the old copy.
The reason? Messages in the imap-mailstore are uniquely identified by the combination of the mailbox name, validity number and uid number. Clients are allowed to permanently cache information about the message identified by a uid. An imap server is not permitted to change this information. Permitting changes would render the client's cache useless; therefore, if the message must be modified, the uid must also change. Clients will see the new uid and know to get the new information. On Fri, 10 Jan 2003 12:39:02 +0530, Padmanaban Kumar <[EMAIL PROTECTED]> wrote... > Hi, > I would like to know if there is a possibility, if so how, of changing a > mail header and rewriting or storing it back at the imap-mailstore, without > rewriting the whole mail using the APPEND command. > > Please respond ASAP, as this is very urgent. > > Thanks, > ~paddu > > The best reward for a good deed is to have done it > > -- > ----------------------------------------------------------------- > For information about this mailing list, and its archives, see: > http://www.washington.edu/imap/imap-list.html > ----------------------------------------------------------------- > Regards, Mark Keasling <[EMAIL PROTECTED]>
