projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Andreas Krennmair:
[apps/madmutt.git]
/
imap
/
message.c
diff --git
a/imap/message.c
b/imap/message.c
index
75e9ea5
..
2b7a8e0
100644
(file)
--- a/
imap/message.c
+++ b/
imap/message.c
@@
-19,6
+19,10
@@
/* message parsing/updating functions */
/* message parsing/updating functions */
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdlib.h>
#include <ctype.h>
#include <stdlib.h>
#include <ctype.h>
@@
-554,7
+558,10
@@
int imap_append_message (CONTEXT *ctx, MESSAGE *msg)
rewind (fp);
imap_munge_mbox_name (mbox, sizeof (mbox), mailbox);
rewind (fp);
imap_munge_mbox_name (mbox, sizeof (mbox), mailbox);
- snprintf (buf, sizeof (buf), "APPEND %s (\\Seen) {%lu}", mbox, len);
+ snprintf (buf, sizeof (buf), "APPEND %s (\\Seen%s%s) {%lu}", mbox,
+ msg->flags.replied ? " \\Answered" : "",
+ msg->flags.flagged ? " \\Flagged" : "",
+ (unsigned long) len);
imap_cmd_start (idata, buf);
imap_cmd_start (idata, buf);