Comment by ~ferdinandyb on ~rjarry/aerc
I should have RTFM: https://ini.unknwon.io/docs/intro/getting_started
This works
.filename,~.*\.csv = `column -t --separator=",;"`
REPORTED
RESOLVED INVALIDTicket created by ~ferdinandyb on ~rjarry/aerc
I wanted to make a similar filter:
.filename,~.*\.csv = column -t --separator=',;'
but no amount of quotes and escaping seems to be able to force the semicolon into the resulting filter command.
Comment by ~ferdinandyb on ~rjarry/aerc
- márc. 6. 11:47:16 ~gilcu3 outgoing@sr.ht:
I agree that calling it again does not fit all use-cases, I shall wait for the future developments by Koni you mention.
Btw do you think the workaround you mentioned can also be done with the
mutt_oauth2.py
script only, i.e. without requiringmailctl
? If yes I can try to make a similar thing in my setup, but whether it depends onmailctl
is not clear to me after looking at the config.Mailctl is just used to authenticate and get refresh and access tokens. So you just need to find the refresh token that the mutt script gets for you, the first line I have commented in the config is just the oneliner to get the token from how mailctl stores it. You also dont need to put it into passwordstore of course.
Comment by ~ferdinandyb on ~rjarry/aerc
Yes, sorry, I should've mentioned that also, it does not call it again. I've been thinking about this and calling it again may not be the best if you user input is required for renewing (e.g. gpg pinentry). So probably a good idea is to have both: an option to rerun the source-cred-cmd whenever it's needed and a better solution for letting aerc handle renewals. I think Koni is working on the latter. The former is probably not very complicated.
Btw the point of what I linked is that you need to pass all the same endpoints the mutt script needs as well and put the source-cred-cmd to deliver the refresh token instead of the access token. The man pages for aerc document how the uri needs to be constructed.
Comment by ~ferdinandyb on ~rjarry/aerc
The problem is that you probably only provide the oauth access token, which MS expires in an hour, after that aerc can't reconnect. Koni has figured out an admittedly ugly workaround to pass the refresh token as well. This example uses mailctl for authentication:
feature added by ~ferdinandyb on ~rjarry/aerc
Ticket created by ~ferdinandyb on ~rjarry/aerc
It should support all executions, like filters, hooks, multipart converters etc (is there anything else?). In case of filters, probably the ~/.config/aerc/filters path should preceed this setting's path.
Comment by ~ferdinandyb on ~rjarry/aerc
Let's template that as well!