Skip to content

Instantly share code, notes, and snippets.

@gahr
Last active October 10, 2020 21:09
Show Gist options
  • Save gahr/870e866fa9c6bf7e6818cca39b304a40 to your computer and use it in GitHub Desktop.
Save gahr/870e866fa9c6bf7e6818cca39b304a40 to your computer and use it in GitHub Desktop.
################################################################################
# imap.cfg
source ./imap_gmail.cfg
macro index <F6> "<enter-command>unmailboxes *<enter><enter-command>source ~/.config/neomutt/imap_fastmail.cfg<enter><sync-mailbox>"
macro index <F7> "<enter-command>unmailboxes *<enter><enter-command>source ~/.config/neomutt/imap_gmail.cfg<enter><sync-mailbox>"
macro index <F8> "<enter-command>unmailboxes *<enter><enter-command>source ~/.config/neomutt/imap_hotmail.cfg<enter><sync-mailbox>"
set imap_check_subscribed = yes
set imap_authenticators = plain
set my_imap_done = true
################################################################################
# imap_fastmail.cfg
set my_imap = imaps://[email protected]/
set imap_pass = $my_fastmail_pass
set folder = "$my_imap"
set spoolfile = +INBOX
set postponed = +Drafts
set record = +Sent
set trash = +Trash
set move = no
set smtp_authenticators = plain
set smtp_url = smtps://[email protected]
set smtp_pass = $my_fastmail_pass
source ./imap_post.cfg
################################################################################
# imap_gmail.cfg
set my_imap = imaps://[email protected]/
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
set smtp_authenticators = plain
set smtp_url = smtps://[email protected]
set smtp_pass = $my_gmail_pass
source ./imap_post.cfg
################################################################################
# imap_hotmail.cfg
set my_imap = imaps://[email protected]
set imap_pass = $my_hotmail_pass
set folder = "$my_imap"
set spoolfile = +INBOX
set postponed = +Drafts
set record = +Sent
set trash = +Trash
set move = no
set smtp_authenticators = plain
set smtp_url = smtps://[email protected]
set smtp_pass = $my_hotmail_pass
source ./imap_post.cfg
################################################################################
# imap_post.cfg
ifdef my_imap_done "push <change-folder>$my_imap<enter>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment