--
Gruss, Benedikt
> How can I use 2 offline imap accounts in mutt?
Could you explain what an "offline imap account" is please.
To use multiple IMAP accounts I would just put them all in a mailboxes
command in my .muttrc
Ian
--
Ian Gregory
http://www.zenatode.org.uk/ian/
OK, so OfflineIMAP is a program which keeps a local Maildir in sync with
a remote IMAP account. As far as Mutt is concerned you are reading a
Maildir, so you are not actually using Mutt's IMAP support at all right?
Are you asking about using OfflineIMAP to sync a Maildir with two IMAP
accounts, or how to use Mutt to read two Maildirs? Sorry, I am not
familiar with OfflineIMAP so I am probably not the best person to answer
your question - I hope someone else here can help.
Yes you can, please see [1]. However as Ian noted, this has nothing to
do with Mutt since all mutt sees are the maildir folders
Offlinelineimap will create with working.
Mariano
A really easy solution is to have two, mostly identical .muttrc files,
one for each account, and then alias them in your .bashrc file. So for
example, create
.muttrc-ACCOUNT-ONE
.muttrc-ACCOUNT-TWO
And then in .bashrc, use
alias muttone="mutt -F .muttrc-ACCOUNT-ONE"
alias mutttwo="mutt -F .muttrc-ACCOUNT-TWO"
That's what I do. There may be a more elegant solution, but this one is
good enough.
> A really easy solution is to have two, mostly identical .muttrc files,
> one for each account, and then alias them in your .bashrc file. So for
> example, create
> .muttrc-ACCOUNT-ONE
> .muttrc-ACCOUNT-TWO
>
> And then in .bashrc, use
>
> alias muttone="mutt -F .muttrc-ACCOUNT-ONE"
> alias mutttwo="mutt -F .muttrc-ACCOUNT-TWO"
>
> That's what I do. There may be a more elegant solution, but this one is
> good enough.
The more elegent solution is just to put all your IMAP accounts in a
"mailboxes" command in a single .muttrc file. If you want to use
different outgoing SMTP servers depending on your From: address then you
can configure that in your MTA (I use msmtp).
However, the OP is not actually accessing IMAP accounts from within
mutt, he is using mutt to read a Maildir which is synced to one or more
IMAP accounts using a separate program called OfflineIMAP.
What most people with multiple IMAP accounts do: use folder-hooks to
simulate accounts and set $smtp_url to use mutt's internal SMTP support
(if recent enough). This way, you can change anything you like within
the same mutt session (i.e. the language in the attribution, your
signature, you get the idea).
Rocco
Rocco do you have any examples of how to do this ? Thanks. :)