On 20200405, Fred Smith wrote:
On Sun, Apr 05, 2020 at 12:45:09PM -0700, Felix Finch wrote:
On 20200405, Akkana Peck wrote:
>Is there any way to configure mutt to alert me at the top of the
>message if there are any text/calendar or image/* attachments
>anywhere in the message, even as part of a multipart/alternative?
>I feel like I miss a lot in mail messages because mutt doesn't tell
>me about attachments.

I wonder if the number of attachments could be shown in the index?

I don't know about the number, but it IS possible to show a flag
in the index indicating the presence of one or more attachments...

I set mine that way, but don't remember how. I'll take a quick
gander at my muttrc and maybe it'll jump out at me...

        # the default format
        #set index_format="%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s"
        # this one shows attachments
        #set index_format="%4C %Z %{%b %d} %-15.15L %?X?{%2X}&%4c? %s"
        set index_format="%4C %Z %{%b %d} %-20.20L %?X?^&%4c? %s"

OK, that last one is what sets the attachment indicator. Looks like
it is the "^&" out near the end.

No, the & is part of the trinary ?& operator.  %X is the number of attachments.

Prolly a good idea to look it up in the mutt doc before butchering
yours, though.

Indeed :-)  I wondered how I missed it ... I will try that, but I'm not sure 
it's useful when corporate email has so many useless attachments.

Just tried it on corporate email, and it only showed for one email, which had a 
single text attachment.  Other emails with multiple image/png attachment showed 
nothing.  I'll experiment more later.

--
           ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
    Felix Finch: scarecrow repairman & wood chipper / fe...@crowfix.com
 GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o

Reply via email to