You are not logged in.
Hello,
I have mutt running with a set of folder-hooks that change my "From:" address, depending on the mailbox I am working in. They appear to work fine, at first glance. If I change from the default mailbox (gmx/) to another (gmail/), the "From:" address changes from the default GMX account to my GMail account. However, If I return to my default mailbox (gmx/), the "From:" address remains as my GMail account and does not return to my GMX account, which the folder-hooks specify. This error does not occur with the copy of mutt running on my Mac OS X parition, which leads me to believe it is some sort of *nix or arch error.
Here is a copy of my ~/.mutt/folder-hooks file (the stars are not part of the actual file, but are meant to hide my addresses/identity):
folder-hook =gmx "send-hook . 'my_hdr From: Robert ** <r**@gmx.com>'"
folder-hook =gmail "send-hook . 'my_hdr From: Robert ** <r**50@gmail.com>'"
folder-hook =EMDS "send-hook . 'my_hdr From: Robert ** <r**50@gmail.com>'"
folder-hook =sunyopt "send-hook . 'my_hdr From: Robert ** <r**@gmx.com>'"
Thanks for any help,
Rob
Last edited by rennis250 (2010-10-27 22:35:36)
Offline
i'm not familiar with the sendhook . 'my_hdr... syntax. perhaps try the following? I use something similar (sourcing a separate file on folder-hooks) and it's working fine.
# set the Name part for all
set realname "Robert **"
# then set the from address with the hooks
folder-hook =gmx set from "<r**@gmx.com>"
folder-hook =gmail set from "<r**50@gmail.com>"
folder-hook =EMDS set from "<r**50@gmail.com>"
folder-hook =sunyopt set from "<r**@gmx.com>"
//github/
Offline
Hey brisbin,
I had to add an "=" sign in between realname/from and the assigned values, but that did the trick! Thanks a bunch. I thought you'd like to know that a part of my setup is based on your dual GMX/Gmail approach. Your articles on mutt and backups were very useful to me in the past.
Thanks,
Rob
Offline