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

Dan Ciprus (dciprus) dciprus at cisco.com
Fri Mar 12 19:14:48 CET 2021


Genius ! :-D

On Thu, Feb 18, 2021 at 06:35:37PM +0100, Sven Guckes wrote:
>* 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?!  :-)



-- 

Daniel Ciprus                              .:|:.:|:.
CONSULTING ENGINEER.CUSTOMER DELIVERY   Cisco Systems Inc.

dciprus at cisco.com

tel: +1 703 484 0205
mob: +1 540 223 7098

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20210312/580aea24/attachment.sig>


More information about the neomutt-users mailing list