Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###################################################################################################
- ### Main imap.cfg file
- ###
- # Source default account to be loaded when NeoMutt starts
- source ./imap_acc1.cfg
- # Macros to switch between accounts
- macro index <F5> ":unmailboxes *<enter>:source ~/.config/neomutt/imap_acc1.cfg<enter>"
- macro index <F6> ":unmailboxes *<enter>:source ~/.config/neomutt/imap_acc2.cfg<enter>"
- macro index <F7> ":unmailboxes *<enter>:source ~/.config/neomutt/imap_acc3.cfg<enter>"
- # Common IMAP configuration
- set imap_check_subscribed = yes
- set imap_authenticators = plain
- # Mark this file as sourced
- set my_imap_done = true
- ###################################################################################################
- ### imap_acc1.cfg
- ###
- # This is used by the IMAP post-config file
- set my_imap = imaps://example.com
- # Account-specific configuration
- set imap_user = foo
- set imap_pass = bar
- set folder = "$my_imap"
- set spoolfile = +INBOX
- set postponed = +Drafts
- set record = +Sent
- set trash = +Trash
- set move = no
- # Source post-config file
- source ./imap_post.cfg
- ###################################################################################################
- ### imap_acc2.cfg
- ###
- # This is used by the IMAP post-config file
- set my_imap = imaps://gmail.com
- # Account-specific configuration
- set imap_user = my_gmail_user
- set imap_pass = my_gmail_pass
- set folder = "$my_imap"
- set spoolfile = +INBOX
- set postponed = +[GMail]/Drafts
- set record = "+[GMail]/Sent Mail"
- set trash = +[GMail]/Trash
- set move = no
- # Source post-config file
- source ./imap_post.cfg
- ###################################################################################################
- ### imap_acc3.cfg
- ###
- # This is used by the IMAP post-config file
- set my_imap = imaps://fastmail.com
- # Account-specific configuration
- set imap_user = fastuser
- set imap_pass = fastpass
- set folder = "$my_imap"
- set spoolfile = +INBOX
- set postponed = +Drafts
- set record = +Sent
- set trash = +Trash
- set move = no
- # Source post-config file
- source ./imap_post.cfg
- ###################################################################################################
- ### imap_post.cfg
- ###
- # Change folder to the newly selected account, if we're not just starting up
- ifdef my_imap_done "push <change-folder>$my_imap<enter>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement