I use folder-hook to access multiple imap mails. But only one mail is to be loaded with directories.
If you need to have multiple full-featured imap mailbox folders or filtering, consider some IMAP converter to treat them with procmail.
Here is what that part of muttrc looks like:
## main gmail defaults
set imap_user = "mail_1@gmail.com"
set imap_pass = "XXXXXX"
set smtp_url = "smtp://mail_1@smtp.gmail.com:587/"
set smtp_pass = "XXXXXX"
set from = "mail_1@gmail.com"
set realname = "Mea Culpa"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set record="+[Gmail]/Sent Mail"
set postponed="+[Gmail]/Drafts"## all gmails
mailboxes 'imaps://mail_1@gmail.com@imap.gmail.com:993/INBOX' \
'imaps://mail_2@gmail.com@imap.gmail.com:993/INBOX'#folder-hook . 'unset imap_user; unset imap_pass; unset tunnel'
folder-hook imaps://mail_1@gmail.com@imap.gmail.com:993 ' \
set from="mail_1@gmail.com" \
realname = "mail_1" \
imap_user="mail_1@gmail.com" \
imap_pass="XXXXXX" \
smtp_url="smtp://mail_1@smtp.gmail.com:587" \
smtp_pass = "XXXXXX" \
spoolfile = "+INBOX" \
record="+[Gmail]/Sent Mail" \
postponed="+[Gmail]/Drafts"'
folder-hook imaps://mail_2@gmail.com@imap.gmail.com:993 ' \
set from="mail_2@gmail.com" \
realname = "mail_2" \
imap_user="mail_2@gmail.com" \
imap_pass="XXXXXX" \
smtp_url="smtp://mail_2@smtp.gmail.com:587" \
smtp_pass = "XXXXXX" \
spoolfile = "+INBOX" \
record="+[Gmail]/Sent Mail" \
postponed="+[Gmail]/Drafts"'
...
0 comments:
Post a Comment