Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ------------------------------------------------------------------------
- # ~/.mutt/muttrc
- # ------------------------------------------------------------------------
- set mail_check_stats = yes
- set mail_check_stats_interval = 60
- set sidebar_folder_indent = yes
- set sidebar_short_path = yes
- set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
- folder-hook 'imap1' 'source ~/.mutt/account.1'
- folder-hook 'imap2' 'source ~/.mutt/account.2'
- # Default account
- source ~/.mutt/account.1
- account-hook 'imap1' 'set imap_user=$my_account2_user imap_pass=$my_account1_pass'
- account-hook 'imap2' 'set imap_user=$my_account1_user imap_pass=$my_account2_pass'
- macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.mutt/account.1<enter><change-folder>!<enter>'
- macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.mutt/account.2<enter><change-folder>!<enter>'
- # Changing (with c by default) is not contextual, i.e. it will not list the
- # folders of the current mailbox, but of the one used the last time the folders
- # changed. To make the behaviour more contextual, the trick is to press = or +
- # for current mailbox. So let's automate this with a macro:
- macro index 'c' '<change-folder>?<change-dir><home>^K=<enter>'
- # ------------------------------------------------------------------------
- # ~/.mutt/account.1
- # ------------------------------------------------------------------------
- set imap_user = "..."
- set folder = "imaps://$imap_user@..."
- set imap_pass = "..."
- set smtp_pass = "..."
- set smtp_url = "smtp://$imap_user@..."
- set spoolfile = +INBOX
- set record = +Sent
- set postponed = +Drafts
- set trash = +Trash
- unmailboxes *
- mailboxes +INBOX \
- +INBOX.subfolder1 \
- +INBOX.subfolder2 \
- +INBOX.subfolder3 \
- +Drafts \
- +Sent \
- +Trash \
- +Notes
- # ------------------------------------------------------------------------
- # ~/.mutt/account.2
- # ------------------------------------------------------------------------
- set imap_user = "..."
- set folder = "imaps://$imap_user@..."
- set imap_pass = "..."
- set smtp_pass = "..."
- set smtp_url = "smtp://$imap_user@..."
- set spoolfile = +INBOX
- set record = +Sent
- set postponed = +Drafts
- set trash = +Trash
- unmailboxes *
- mailboxes +INBOX \
- +Drafts \
- +Sent \
- +Trash \
- +Archive \
- +Some_other_folder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement