[neomutt-users] can I remove the "autoview" message? -> display_filter

Sven Guckes neomutt-lists at guckes.net
Thu Feb 18 18:35:37 CET 2021


* TJ Hayes <hayestj at protonmail.com> [2021-02-18 17:44]:
> Here is what I see when I open an email
> in neomutt, and my neomutt version below.
>
> ----
> Date: Thu, 18 Feb 2021 11:01:01 -0500 (EST)
> From: APS Home Energy Report <info at powercompany.com>
> To: me at emailprovider.com
> Subject: Hi Customer, your Home Energy Report is here
> MIME-Version: 1.0
> Content-Transfer-Encoding: 8bit
> Content-Type: text/plain; charset=utf-8
>
> -----------------------8<---------
> [-- Autoview using lynx -assume_charset='utf-8' -display_charset=utf-8 -dump '/tmp/neomutt-pop-os-1000-953501-12135708868020108614.html' --]
>     [1]Arizona Public Service logo
>     Acct # ******000
> -----------------------8<---------

i wonder why neomutt renders text/plain with lynx.. ;)

anyway, those "[-- ... --]" lines are easily filtered out
by using a display_filter.  i use "sed" for this:

    :set display_filter="/bin/sed -r -f ~/.mutt/display_filter"

the line to delete those output lines is this:

    /\[-- .* --\]/d

simple enough. :-)

most of the other stuff in this to to delete
unwanted lines (full quoted, signatures..),
or change misspelled words for reading sanity.
of course they are all still there
when you reply to messages. o_O

Sven

-- 
neomutt maillist reminder:
please do use neomutt to post
and sign your messages.  why?
because we can, right?!  :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1495 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20210218/77188e4e/attachment.sig>


More information about the neomutt-users mailing list