summaryrefslogtreecommitdiffstats
path: root/flags.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-06-08 09:17:25 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-06-08 09:17:25 +0000
commit57c930bf79e06c485142efeb62ffb1e9d8fe3d3b (patch)
treec3c1e876454aead42f16023f45b23a73961a03d6 /flags.c
parent1a5381e07e97fe482c2b3a7c75f99938f0b105d4 (diff)
Mutt 0.92.9i.mutt-0-92-9i
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;