Commit 8d4b5c02 8d4b5c02a17e45ac92f23c39671e52bf4f890033 by Sergey Poznyakoff

* mailbox/amd.c (_amd_attach_message): Call mu_body_clear_modified

and mu_message_clear_modified after constructing the message to
make sure it is not marked as modified.
1 parent 2e71d195
2008-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
* mailbox/amd.c (_amd_attach_message): Call mu_body_clear_modified
and mu_message_clear_modified after constructing the message to
make sure it is not marked as modified.
2008-11-16 Sergey Poznyakoff <gray@gnu.org.ua>
* mailbox/argcv.c (quote_transtab): Add vertical tabulation
......
......@@ -474,6 +474,7 @@ _amd_attach_message (mu_mailbox_t mailbox, struct _amd_message *mhm,
mu_stream_set_readline (stream, amd_body_readline, body);
mu_stream_set_size (stream, amd_stream_size, body);
mu_body_set_stream (body, stream, msg);
mu_body_clear_modified (body);
mu_body_set_size (body, amd_body_size, msg);
mu_body_set_lines (body, amd_body_lines, msg);
mu_message_set_body (msg, body, mhm);
......@@ -502,6 +503,14 @@ _amd_attach_message (mu_mailbox_t mailbox, struct _amd_message *mhm,
mhm->message = msg;
mu_message_set_mailbox (msg, mailbox, mhm);
/* Some of mu_message_set_ functions above mark message as modified.
Undo it now.
FIXME: Marking message as modified is not always appropriate. Find
a better way. */
mu_message_clear_modified (msg);
if (pmsg)
*pmsg = msg;
......