Eduardo --

...and then Eduardo Gargiulo said...
% 
% Hi all.

Hello!


% 
% 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

Piece of cake.


% virtual users maildirs under ~/users/ dir. Now i have a shell script to

That sounds interesting...  What is it?


% 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

Yeah; you don't need that.


% 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"

For one thing, you can combine all of this into a single folder-hook
which, although longer, might be easier to maintain:

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


% 
% folder-hook ~/users/qmail/. set folder=~/users/qmail

If you're going to set these, don't forget to set your default folder in
your default folder-hook as well.


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

Leave off the /. on the end and you might even try it without the ~/ on
the front.  Something like

  folder-hook users/qmail 'set hostname=ar.homelinux.org ; my_hdr ...'

should work.


HTH & HAND

:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg25670/pgp00000.pgp
Description: PGP signature

Reply via email to