Hi, I did it in this way: I create one,two or more profiles (one file for each) inside besides some various mutt parameters the ones for sending mail by msmtp
e.g. profile.1 --------------------------------------------------------------------- # Mein Profil # important variables - adjust them if necessary # ---------------------------------------------- set realname="Andreas Kalex" set use_from=no # I use msmtp, so read man msmtp or the manpage of your program to send # mails. set sendmail="/usr/bin/msmtp -a gmx" # Customized headers # ---------------------------------------------- unmy_hdr * # remove all extra headers first. my_hdr From: Andreas Kalex <[email protected]> my_hdr Reply-To: Andreas Kalex <[email protected]> # my_hdr X-Mailer: Mutt http://www.mutt.org/ my_hdr X-Mailer: Mutt `mutt -v | grep '^Mutt [0-9]' | awk '{print $2}'` ( `uname -m` `uname -sr` ) # my_hdr X-OS: ( `uname -m` `uname -sr` ) # how to cite the author # ---------------------------------------------- set attribution="* %n <%a> wrote on %(%d.%m.%Y at %H:%M):" # signature # ---------------------------------------------- set sig_on_top=yes set signature=.signature # Standardschl<FC>ssel festlegen Meine GnuPG ID # ---------------------------------------------- set [email protected] --------------------------------------------------------------------- and call them by macros, defined in my macro-file # macros to invoke a profile macro index <F6> ":source ~/.mutt/profile.1\n" "Load default profile" macro index <F7> ":source ~/.mutt/profile.2\n" "Load default profile" macro index <F8> ":source ~/.mutt/profile.3\n" "Load profile: personal" it works for me. -- Gruss Andreas * Cristopher Thomas <[email protected]> wrote on 29.08.2009 at 00:00: > I have two separate email accounts, and I need to be able to send mail > from each of them. Is there a way to set up the two accounts and then > specify which I will be sending from at some point in the > composition/sending process?
