summaryrefslogtreecommitdiffstats
path: root/copy.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-02-04 18:02:06 -0800
committerKevin McCarthy <kevin@8t8.us>2021-02-05 13:37:58 -0800
commit18c29a84f2ae4679f8c9a7ac032c9b8b680419af (patch)
treeb05b36873c0784d35df58213bd42294141c24a57 /copy.h
parent1a9fea6f9aa506cd2ac8222cee05889b775f8613 (diff)
Filter ANSI sequences when forwarding too.
Add a MUTT_CM_FORWARDING flag to correspond with the MUTT_CM_REPLYING flag. Check those to turn on ANSI filtering. In order to guard against other accidental prefix setting without one of those flags, also check s->prefix to enable ANSI filtering (and prefix printing) too. Add missing MUTT_CM_REPLYING flags to the recvcmd.c reply functions. While updating the recvcmd.c reply code, I noticed CH_REORDER wasn't enabled with OPTWEED, like in the send.c code (and everywhere else), so add the missing flag.
Diffstat (limited to 'copy.h')
-rw-r--r--copy.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/copy.h b/copy.h
index 402f3f4e..198de260 100644
--- a/copy.h
+++ b/copy.h
@@ -26,12 +26,13 @@
#define MUTT_CM_CHARCONV (1<<6) /* perform character set conversions */
#define MUTT_CM_PRINTING (1<<7) /* printing the message - display light */
#define MUTT_CM_REPLYING (1<<8) /* replying the message */
+#define MUTT_CM_FORWARDING (1<<9) /* inline forwarding the message */
-#define MUTT_CM_DECODE_PGP (1<<9) /* used for decoding PGP messages */
-#define MUTT_CM_DECODE_SMIME (1<<10) /* used for decoding S/MIME messages */
+#define MUTT_CM_DECODE_PGP (1<<10) /* used for decoding PGP messages */
+#define MUTT_CM_DECODE_SMIME (1<<11) /* used for decoding S/MIME messages */
#define MUTT_CM_DECODE_CRYPT (MUTT_CM_DECODE_PGP | MUTT_CM_DECODE_SMIME)
-#define MUTT_CM_VERIFY (1<<11) /* do signature verification */
+#define MUTT_CM_VERIFY (1<<12) /* do signature verification */
/* flags for mutt_copy_header() */
#define CH_UPDATE 1 /* update the status and x-status fields? */