Re: Attachment flag

2021-03-11 Thread Misha Velthuis
That was it! Thank you very much.

Misha

On Thu, Mar 11, 2021 at 03:02:06PM -0800, Kevin J. McCarthy wrote:
> On Thu, Mar 11, 2021 at 05:21:43PM -0500, Misha Velthuis wrote:
> > The only thing that I haven't been able to fix, is the fact that - in
> > this version of mutt - the indexer does not show the number of
> > attachments (or attachments yes/no) anymore. It just shows "0" or "-",
> > even when an email actually does have attachments.
> 
> > `set index_format="%4C %Z %?X?A&-? %-13.19{'%y %a %b %d %H:%M} %-20.20L 
> > (%?l?%4l&%4c?) %s"`
> 
> "%?X?A&-?" is going to print either 'A' or '-'.  I'm assuming you are seeing
> only "-"?
> 
> In order to get attachment counting working, you *may* need to define some
> attachment settings.  Take a look at
>  for the details.
> 
> However, the default system Muttrc that ships with Mutt does have some basic
> attachment settings already.  These are listed starting about halfway down
> in 
> 
> You can see the current settings Mutt knows about by running ":attachments
> ?" and hit enter.
> 
> You may want to check what is installed for your system Muttrc file. Perhaps
> it's missing those settings.
> 
> -- 
> Kevin J. McCarthy
> GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA




Re: Attachment flag

2021-03-11 Thread Kevin J. McCarthy

On Thu, Mar 11, 2021 at 05:21:43PM -0500, Misha Velthuis wrote:
The only thing that I haven't been able to fix, is the fact that - in 
this version of mutt - the indexer does not show the number of 
attachments (or attachments yes/no) anymore. It just shows "0" or "-", 
even when an email actually does have attachments.



`set index_format="%4C %Z %?X?A&-? %-13.19{'%y %a %b %d %H:%M} %-20.20L 
(%?l?%4l&%4c?) %s"`


"%?X?A&-?" is going to print either 'A' or '-'.  I'm assuming you are 
seeing only "-"?


In order to get attachment counting working, you *may* need to define 
some attachment settings.  Take a look at 
 for the details.


However, the default system Muttrc that ships with Mutt does have some 
basic attachment settings already.  These are listed starting about 
halfway down in 



You can see the current settings Mutt knows about by running 
":attachments ?" and hit enter.


You may want to check what is installed for your system Muttrc file. 
Perhaps it's missing those settings.


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Attachment flag

2021-03-11 Thread Misha Velthuis
Hi all,

A couple of weeks ago my work has moved our email setup to oath2 authentication 
(Office365). Because it appeared that the Mutt version in the default apt 
repository did not yet support xoauth2 authentication, I downloaded the latest 
mutt (2.0.5).

Thanks to this script [1], and this script [2] (for offlineimap), I have my 
email system up and running again. (Which I am very happy about, since I feared 
that the migration to oauth2 would require me to give up mutt).

The only thing that I haven't been able to fix, is the fact that - in this 
version of mutt - the indexer does not show the number of attachments (or 
attachments yes/no) anymore. It just shows "0" or "-", even when an email 
actually does have attachments.

When I run neomutt, it does work (but I can't seem to get neomutt to work with 
xoauth2).

This is what I have in my .muttrc:

`set index_format="%4C %Z %?X?A&-? %-13.19{'%y %a %b %d %H:%M} %-20.20L 
(%?l?%4l&%4c?) %s"`

Anyone has an idea?

Cheers,

Misha

[1] https://gitlab.com/muttmua/mutt/-/blob/master/contrib/mutt_oauth2.py.README
[2] https://github.com/UvA-FNWI/M365-IMAP