]> granicus.if.org Git - neomutt/commitdiff
doc: display_filter escape sequence
authorRichard Russon <rich@flatcap.org>
Wed, 8 Nov 2017 16:47:29 +0000 (16:47 +0000)
committerRichard Russon <rich@flatcap.org>
Wed, 8 Nov 2017 16:47:52 +0000 (16:47 +0000)
Issue #897

init.h

diff --git a/init.h b/init.h
index 1f14d4d6cb634f2a95ec8c14be71ac1ae29f7327..650241ae2fedab993fa9b37592d5161bb0438873 100644 (file)
--- a/init.h
+++ b/init.h
@@ -723,6 +723,17 @@ struct Option MuttVars[] = {
   ** When set, specifies a command used to filter messages.  When a message
   ** is viewed it is passed as standard input to $$display_filter, and the
   ** filtered message is read from the standard output.
+  ** .pp
+  ** When preparing the message, NeoMutt inserts some escape sequences into the
+  ** text.  They are of the form: \fC<esc>]9;XXX<bel>\fP where "XXX" is a random
+  ** 64-bit number.
+  ** .pp
+  ** If these escape sequences interfere with your filter, they can be removed
+  ** using a tool like \fCansifilter\fP or \fCsed 's/^\x1b]9;[0-9]\+\x7//'\fP
+  ** .pp
+  ** If they are removed, then PGP and MIME headers will no longer be coloured.
+  ** This can be fixed by adding this to your config:
+  ** \fCcolor body magenta default '^\[-- .* --\]$$'\fP.
   */
   { "dsn_notify",       DT_STRING,  R_NONE, UL &DsnNotify, UL "" },
   /*