|
|
 | | From: | John J. Foster | | Subject: | Multiple IMAP accounts - folder-hooks - account-hooks | | Date: | Tue, 18 Jan 2005 16:42:10 +0000 (UTC) |
|
|
 | Good afternoon all, I've been working for a few days to combine 2 muttrc files into 1 so I don't have to exit mutt and restart with a different -F option in order to read a different IMAP server. The account and folder hooks work so far thanks to the archives of this group and google, except one minor problem. When I hit "c" to change folders, I get a listing of
INBOX. INBOX
Entering INBOX. shows me a directory listing of my IMAP-2 system. Entering INBOX takes me to the INBOX of my IMAP-2 system. What I want is to be able to see a directory listing of whichever IMAP server I last entered from the Mailboxes screen.
Is this possible?
Thanks, John
##### Where is my mail set spoolfile="imaps://IMAP-2/INBOX" set folder="imaps://IMAP-2/" set mbox="INBOX.Read"
set certificate_file=~/.certificates
##### Which mailboxes should be watched for new mail mailboxes \ imaps://IMAP-1/INBOX \ imaps://IMAP-2/INBOX
##### Set account options account-hook . 'unset imap_user; unset imap_pass; unset tunnel; unset folder;'
account-hook imaps://IMAP-1/ \ 'set imap_force_ssl=yes; \ set imap_user=username; \ set imap_pass=userpass'
account-hook imaps://IMAP-2/ \ 'set imap_force_ssl=yes; \ set imap_user=username; \ set imap_pass=userpass'
##### Set folder options set folder_format="%2C %t %2N %7d %f"
folder-hook imaps://IMAP-1/ \ 'set spoolfile=imaps://IMAP-1/INBOX; \ set folder="imaps://IMAP-1/"; \ set record="=Sent Items"; \ set from="John J. Foster "'
folder-hook imaps://IMAP-2/ \ 'set spoolfile=imaps://IMAP-2/INBOX; \ set folder="imaps://IMAP-2/"; \ set record="=Sent Items"; \ set from="John J. Foster "'
-- It is not unusual for those at the wrong end of the club to have a clearer picture of reality than those who wield it. Noam Chomsky
|
|
|