multiple IMAP accounts, sidebar

2007-04-27 Thread Brian S. Lewis
I have several IMAP accounts on the same server, imap://localhost:14300 (SSH 
tunneled). I want to be able to see all the new 
mail in one spot, so I use the sidebar patch.

It seems problematic to use account-hook or folder-hook because all of the 
accounts are on the same host. I set up stuff like
127.0.0.1 m1 m2 m3 m4 m5
in /etc/hosts to facilitate doing stuff like
mailboxes imap://m1:14300/INBOX
account-hook imap://m1:14300/ 'set imap_user=u1 imap_pass=p1'
folder-hook imap://m1:14300 'set spoolfile=imap://m1:14300/INBOX 
folder=imap://m1:14300/'
etc.

If I do that for each account, my sidebar looks like
INBOX
INBOX
INBOX
INBOX
all indistinguishable. Not too useful.

If I leave /INBOX off of the mailboxes directive, I get a more meaningful 
folder name in the sidebar, but I need meaningful 
names for all the various folders. I could hack by creating lots of /etc/hosts 
127.0.0.1 aliases and lots of folder-hooks, but 
sheesh.

It's just seeming ridiculously difficult to do this. Someone, please save me. 
Thanks.


Re: multiple IMAP accounts, sidebar

2007-04-27 Thread Derek Martin
On Fri, Apr 27, 2007 at 05:25:41AM -0500, Brian S. Lewis wrote:
 I have several IMAP accounts on the same server,
 imap://localhost:14300 (SSH tunneled). I want to be able to see all
 the new mail in one spot, so I use the sidebar patch.

Why multiple accounts on the same server?  Hmmm...  That's probably
not a useful question.  

Do you have (at least some) control over the server?  If so, then the
best thing to do is alias the different e-mail addresses all to one
user on the server, and then use procmail to filter mail to different
addresses into different folders.  

That's what I do.  I have multiple domains on the same mail server,
and numerous accounts in each domain, and they are all just aliases to
the same user.  Procmail filters them into various folders, either
based on who they were sent by, or which of my accounts they were
sent to.  You can then use folder hooks to make sure you reply with
the right address...

-- 
Derek D. Martinhttp://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail.  Sorry for the inconvenience.  Thank the spammers.



pgpNG08YB2GSi.pgp
Description: PGP signature