[neomutt-users] Received mails with attachment...marked?
Sven Guckes
neomutt-lists at guckes.net
Wed Nov 1 13:30:11 CET 2017
* Carrie <carrie at sheltietown.com> [2017-11-01 12:53]:
> On Wed, Nov 01, 2017 at 03:25:54AM +0100, tuxic at posteo.de wrote:
> > is there a way to get mails marked in neomutt, which have an
> > attachment and if yes: How can I acchieve this?
> Hi Meino I think this is what you are looking for:
> https://www.neomutt.org/guide/reference.html#index-format
> The attachment indicator is %X.
example:
#1 set index_format="%4C %Z %{%Y-%b-%d} %-23.23F|%4c|%X|%s"
#2 set index_format="%4C %Z %{%Y-%b-%d} %-23.23F|%4c|%?X?%X& ?|%s"
in example #1 the number of attachments (%X) is simply put
after the message size (%4c) and before the subject (%s).
however, most of these simply show a "0". pretty boring.
example #2 uses "%?X?%X& ?" which uses "%?" as a conditional.
this sequence reads as:
%? if
X X to be tested
? then (%X is non-zero)
%X print %X
& else (%X is zero)
space a space
? end of "if"
so this prints the number of attachments
unless it is "0" (no attachments) -
then it will simply print a "space".
when the number of attachments is more than 9,
well, then it will use two characters.
in that case you will spot it easily. ;-)
you can "limit" your messages to "~X3-",
ie having at least three attachments.
my INBOX has 5,000 mails now..
one with 7, one with 8 attachments - and
one has 15 and another 17 attachments. :-O
those two big ones really stand out now.
unfortunately, the sort commands (o for sort-mailbox and
O for sort-reverse) cannot sort by number of attachments.
Sven
--
OpenRheinRuhr http://www.openrheinruhr.de/ ORR!
am Sa+So 4.+5. November 2017 - 09:30-18:00h (o_
im Rheinischen Industriemuseum in Oberhausen (/)_
http://www.industriemuseum.lvr.de/ - Eintritt FREI!
http://piratepad.net/orr2017 textpad: reise+unterkunft
More information about the neomutt-users
mailing list