Solution: How to get single list of mailboxes from two IMAP servers?
On Sun, Aug 03, 2008 17:56:25 PM +0200, Rado S wrote:
> =- Kyle Wheeler wrote on Sun 3.Aug'08 at 10:50:52 -0500 -=
>
> > >> I have the folders in both the accounts displayed
> > >> simultaneously in the folder tree all the time, and I can move
> > >> back and forth from any folder on remote_server to any folder
> > >> on local_server without any problem. I only have, of course, to
> > >> enter the password for each account the first time I access its
> > >> server. This is the functionality I want to replicate in mutt
> > >> and from reading this:
> > >
> > >It works.
> > >RTFM about all the imap_* vars, there are 2 related to automatically
> > >processing IMAP folders in "mailboxes" use.
> > >Something like imap_..._subscribed.
> > >
> > >Also see the wiki for help with imap: guide -> Imap.
> >
> > Really? That will display folders from multiple servers in the
> > same list?
>
> Really. :)
Thanks to Rado.
Yes, it's a bit heavy and counterintuitive (the first time it worked
but I couldn't figure out why, that is what I had done exactly which
had made the list appear), but works. Here's how, on Mutt 1.5.17:
This is what I started from:
set folder =imaps://remote_server/
mailboxes imaps://remote_server/folder_1
imap://marco@xxxxxxxxx/archive_folder imaps://remote_server/folder_2
imaps://remote_server/folder_3
then I added only this:
set imap_check_subscribed = yes
Now, if I hit "c" right after starting mutt, I'm prompted for the
passeord to remote_server. Then I get a list of ALL the folders on
remote server, not just those defined as mailboxes above. But if I hit
TAB, then yes, I get one list of all and only the four folders defined
as mailboxes. After this first time, to get back to that one list,
which is what I wanted, I had to press "c", TAB, TAB
If I comment the "set folder" command, instead of the prompt for the
remote server I get a listing of everything in my home directory which
may be a mailbox, then hitting TAB twice I get the mixed list again.
OK, so I have to map with a macro "<change-folder><tab><tab>" to
something, but that's not a problem. The only things that's missing is
to figure out if the browser can list the folders exactly in the
(mixed, server-wise) order they come after the mailboxes command (no,
sort_browser = unsorted doesn't work)
Suggestions, improvements, comments, are welcome, of course. :-)
Thanks again,
Marco
--
Your own civil rights and the quality of your life heavily depend on how
software is used *around* you: http://digifreedom.net/node/84