summaryrefslogtreecommitdiffstats
path: root/flags.c
diff options
context:
space:
mode:
Diffstat (limited to 'flags.c')
-rw-r--r--flags.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/flags.c b/flags.c
index 20fc650e..846dbd6a 100644
--- a/flags.c
+++ b/flags.c
@@ -19,6 +19,7 @@
#include "mutt.h"
#include "mutt_curses.h"
#include "sort.h"
+#include "mx.h"
void mutt_set_flag (CONTEXT *ctx, HEADER *h, int flag, int bf)
{
@@ -44,6 +45,12 @@ void mutt_set_flag (CONTEXT *ctx, HEADER *h, int flag, int bf)
{
h->deleted = 0;
ctx->deleted--;
+/* if you undelete a message, the imap server will probably need to know. */
+ if(ctx->magic==M_IMAP)
+ {
+ h->changed = 1;
+ ctx->changed = 1;
+ }
}
break;