On Thu, Jul 17, 2008 at 12:27:46PM -0400, Jorge Luis wrote: > I'm trying to set up mutt so that I can use it with two different email > accounts. Right now I'm using screen and two instances of mutt, but I'm > looking for a more elegant solution. I'm on the trail of one now, but > it has some bugs. > > I have the following in my .muttrc: > > set status_format="[EMAIL PROTECTED]: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? > Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Pos > t:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---" > [...] I have two accounts, using a slightly different approach I found somewhere - in a mailbox, I use F10 or F11 to switch profiles (default and lfs).
In .muttrc I have the following (not sure that the index macros actually work) - # profiles for multiple identities # default so that I always start there source ~/.mutt/profile.default # macros to invoke a profile macro index <F10> ":source ~/.mutt/profile.default\n" # "Load default profile" macro pager <F10> ":source ~/.mutt/profile.default\n" # "Load default profile" macro index <F11> ":source ~/.mutt/profile.lfs\n" # "Load profile: LFS" macro pager <F11> ":source ~/.mutt/profile.lfs\n" # "Load profile: LFS" And then in the profiles I set From and put the profile name on the status line, so in ~/.mutt/profile.default I have # Customized headers unmy_hdr * # remove all extra headers first. my_hdr From: Ken Moffat <[EMAIL PROTECTED]> # Include the profile name in the status line (one long line) set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b? %?l? %l?]---(%s/%S)-default-%>-(%P)---" And the other profile changes the From: and the profile name in the status from 'default'. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce