On Tue, Dec 29, 2009 at 02:20:44AM +0000, chombee wrote:
> On Mon, Dec 21, 2009 at 10:45:34AM +0100, Joost Kremers wrote:
> > i have three IMAP accounts and simply run three mutt instances within 
> > screen. my
> > ~/.screenrc contains (something similar to) the following lines:
> > 
> > ====================================================
> > 
> > screen -t "Local" mutt -F .muttrc-local
> > screen -t "Account 1" mutt -F .muttrc-1
> > screen -t "Account 2" mutt -F .muttrc-2
> > screen -t "Account 3" mutt -F .muttrc-3
> > 
> > select 1 
> > 
> > ====================================================
> > 
> > each ~/.muttrc-* contains just the settings for the specific account and 
> > then it
> > sources ~/.muttrc, which contains general settings.
> 
> That sounds very similar to what I did with my muttrc files. I've setup
> a screenrc like yours, we'll see how it goes.

This seems to be an alright solution. It keeps the muttrc files nice and
simple (no hooks). It's nice to be able to launch all three mutt
instances (and offlineimap also) with a single 'screen' command. On the
downside, you can't see when there is new mail for an account without
switching to the screen for that account. I know about screen's
'monitor' function but you would only notice the notifications from this
if you were using the screen window at the time, they aren't persistent.
Still, at times when I have only one window or terminal to run in I'll
probably keep using screen in this way.

When I have a desktop window manager available I started doing something
similar. Just have a script (bound to a keyboard shortcut maybe) that
launches all three instances of mutt plus offlineimap in different
windows on a workspace. Since you can see all the windows at once you
can see when any one of them has new mail, you just have to switch to
their workspace to take a look.

For some reason I want mutt to be able to do what Thunderbird 3 does. It
automatically creates a smart "Inbox" which combines all the inboxes of
my different email accounts and shows them as one, giving me one place
to watch for incoming mail. But the above works well enough too.

Reply via email to