Mutt Forwarding with Attachment – Macros for tagging all attachments

mutt

I am trying to do a macros to forward an email with its attachments. The macros should do these steps:
1 – Open attachments
2 – Tag all attachments
3 – Forward (;f)

I am trying to do it using this macro:

macro index,pager "F" "<view-attachments>ttttttttt;f"

But if the number of attachments is odd it doesn't tag the last one (every time you press "t" it tags but if it is already tagged it untags it). How to tag all of them?

Best Answer

mutt and neomutt has config option forward_attachments. Attachments will or won't be forwarded based on this settings. Or you will be asked with default yes/no preset.

There's no need for creating macro for this. Or is it?

Related Question