Hi all.

I want to user muttrc file to set my From: and Reply-To headers based
on the maildir i'm reading. I'm using vmailmgr, so i have several
virtual users maildirs under ~/users/ dir. Now i have a shell script to
set some environments variables that rewrites my headers and then run mutt
with -f option, but i want to avoid this, setting my headers from
muttrc. How can i do it? I'd tried the following lines, but it didn't
work; i change to folder ~/users/qmail with c key, but the headers
still are From: Eduardo Gargiulo <[EMAIL PROTECTED]>

-------------------------------------------------------------------
folder-hook . my_hdr From: Eduardo Gargiulo <[EMAIL PROTECTED]>
folder-hook . my_hdr Reply-To: Eduardo Gargiulo <[EMAIL PROTECTED]>
folder-hook . set signature=~/.signature
folder-hook . set hostname="ingdesi.net"

folder-hook ~/users/qmail/. set folder=~/users/qmail
folder-hook ~/users/qmail/. my_hdr From: qmail user <[EMAIL PROTECTED]>
folder-hook ~/users/qmail/. set hostname="ar.homelinux.org"

folder-hook ~/users/lug/. set folder=~/users/lug
folder-hook ~/users/lug/. my_hdr From: lug user <[EMAIL PROTECTED]>
folder-hook ~/users/lug/. set hostname="ar.dyndns.biz"
-------------------------------------------------------------------

~ejg

Attachment: msg25669/pgp00000.pgp
Description: PGP signature

Reply via email to