Re: change my_hdr in compose menu
Hi,
I solved it myself...
On Sun, Oct 03, 2004 at 02:24:06PM +0200, Alexander Rose wrote:
> I am trying to change my From header when changing my smtp account:
>
> macro compose "\e2" ':set sendmail="/sw/bin/msmtp -a xyz@xxxxxx"<enter>:set
> compose_format="xyz@xxxxxx -- Mutt: Compose [Approx. msg size: %l Atts:
> %a]%>-"<enter>:unmy_hdr "From"<enter>:my_hdr "From: xyz <xyz@xxxxxx>"<enter>'
> 'use xyz@xxxxxxxxxxxxxx'
>
> This does not work, it doesn't change my From header.
>
This works for me:
macro compose "\e2" ':set sendmail="/sw/bin/msmtp -a xyz@xxxxxx"<enter>:set
compose_format="xyz@xxxxxx -- Mutt: Compose [Approx. msg size: %l Atts:
%a]%>-"<enter>:push "\ef\cuXYZ <xyz@xxxxxx>\n" <enter>:my_hdr From: XYZ
<xyz@xxxxxx><enter>' 'use xyz@xxxxxxxxxxxxxx'
The "my_hdr From:" part is still necesary, to get the right from header
after sending (or postponing, aborting) the message and start a new.
Alexander