Set a realname in a macro
Rene Kita
mail at rkta.de
Wed Feb 11 19:34:40 UTC 2026
On Fri, Feb 06, 2026 at 09:55:12AM +0000, Piet wrote:
> Dear Mutt-Users,
>
> to switch between own email-addresses to send e-mail via mutt/msmtp,
>
> I use the macro:
>
> macro compose .c <edit-from><kill-line>foo at bar.de<enter>
>
> The sent mail does not have a real name of the sender address in the
> header.
>
> Is it possible to set a realname in this macro?
>
> Thank you!
>
>
> Kind regards
>
> Piet
I usually use my_hdr to set the From: and also have reverse_name set, so
this is untested. But you should be able to set a real name by using
macro compose .c <edit-from><kill-line>Foo Bar\<foo at bar.de\><enter>
I'm not sure about the escaped <>, though.
For the rare case where I need to adjust the From: I have also have
edit_headers set.
More information about the Mutt-users
mailing list