[neomutt-users] attach-file function in macro

David K. Trudgett david at trudgett.me
Wed Oct 20 06:31:49 CEST 2021


Hi Richard,

On Wed, Oct 20, 2021 at 01:15:21AM +0100, Richard Russon wrote:
> 
> > I ... have found that a macro doesn't work any more
> > macro compose K ':exec attach-file<enter>/path/to/the/file<enter>'
> 
> Oh.  That's a bug, sorry.
> I've create a fix in branch [devel/compose].
> 
>     https://github.com/neomutt/neomutt/pull/3080

Excellent! Thanks for the amazingly quick fix! I got the GitHub
notifications, too.

Sorry I didn't report the error message precisely right. The reason is
that my locale is not set to English, and I had to translate the error
message back to English.

> 
> Meanwhile, you could simplify your macro to:
> 
> macro compose K '<attach-file>/path/to/the/file<enter>'

Done. It was worth the effort just for that little tip. Thank you!

Cheers,
David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20211020/d29b0fd7/attachment.sig>


More information about the neomutt-users mailing list