Adam Sherman <[EMAIL PROTECTED]> wrote on Tue, 08 Feb 2000:
> Is it possible to have multiple-personalities with Mutt?

Yes, kind of.  You can set arbitratry Mutt settings based on the
recipient address (or your mail folder, if you prefer that) with
send-hooks (folder-hooks for folders).  These settings include
changing your From: address with "my_hdr From: Me <my@address>"
and setting the signature with "set signature=~/.a_signature_file".


For example, I have these settings in my .muttrc:

# PROFILE: Default
# Load defaults
# ~/.mutt/profile-default
send-hook .       source ~/.mutt/profile-default

# PROFILE: Lists
# For those mailing lists which require the subscriber address as sender
# ~/.mutt/profile-lists
send-hook '~C "mutt-(users|dev)@(mutt\.org|gbnet\.net)"' source ~/.mutt/profile-lists


.mutt/profile-default contains:
set signature="randsig.sh .sig-body|"
set locale=en_US
set attribution="%n <%a> wrote on %{%a, %d %b %Y}:"
# Set defaults (From and Organization, no Reply-To)
my_hdr From: \"Mikko Hänninen\" <[EMAIL PROTECTED]>
my_hdr Organization: None
unmy_hdr Reply-To


.mutt/profile-lists contains:
# Set for those mailing lists which require the subscriber address as sender
my_hdr From: \"Mikko Hänninen\" <[EMAIL PROTECTED]>
my_hdr Reply-To: [EMAIL PROTECTED]


You wouldn't really need to have separate muttrc-files for these
"profiles" (as I called them), you could just have the commands after
the send-hook command directly, instead of the source command like I
had.


Hope this helps,
Mikko
(thinking that someone should really write this up in the FAQ too...)
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
"It's just a shadow of the people we should be"  -- Big Country

Reply via email to