2012/8/15 Marcelo Laia <marcelol...@gmail.com>: > Hi, > > How I would change the current profile on the fly? >
I solved the problem! I use folder-hook ~/.mutt/folder-hooks folder-hook . source ~/.mutt/defaults folder-hook GMail/* source ~/.mutt/gmail.muttrc folder-hook Yahoo/* source ~/.mutt/yahoo.muttrc folder-hook UFVJM/* source ~/.mutt/ufvjm.muttrc ~/.mutt/gmail.muttrc color status red default set from = "myaddr...@gmail.com" set sendmail = "/home/me/bin/scripts/mymsmpt.gmail" set mbox = "+GMail/Inbox" unset record set postponed = "+GMail/Rascunhos" ##### Reset any headers that may have been set in other folder-hooks unmy_hdr From: unmy_hdr Reply-To: unmy_hdr Fcc: unmy_hdr Return-Receipt-To: unmy_hdr Organization: unmy_hdr X-URL: ##### Now set the headers. my_hdr From: My Name <myaddr...@gmail.com> my_hdr Reply-To: My Name <myaddr...@gmail.com> my_hdr Organization: (My ' Org) my_hdr X-URL: http://www.nononono.com/ macro index E "<change-folder>+GMail/Inbox<enter><limit>~B " "search everything" macro index,pager D "<save-message>+GMail/Lixeira<enter>" "move message to the trash" ~/.mutt/muttrc (...) source ~/.mutt/folder-hooks (...) # Send hooks to make replies get the appropriate From field unhook send-hook #send-hook . "source ~/.mutt/profile.gmail\n" send-hook ^(offlineimap-proj...@lists.alioth.debian.org|debian-u...@lists.debian.org) 'set mime_forward signature="~/.mutt/sig.list"' send-hook ^('(.*)@ufvjm\.edu\.br') "source ~/.mutt/profile.ufvjm\n" (...) I see that save-hook and folder-hook not work together. If I set a default save-hook, it override folder-hook. Any suggestion is very welcome! -- O__ --- Marcelo