Set a realname in a macro
Piet
plist at posteo.eu
Wed Feb 11 23:10:58 UTC 2026
Hi Rene,
thanks a lot!!!
macro compose .a <edit-from><kill-line>"foo
bar\<foo.bar at foobar.de\>"<enter>
does the trick! With this \ escape order.
Kind regards
Pietido
Am Mittwoch, dem 11.02.2026 um 20:34 +0100 schrieb Rene Kita:
> 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