Skip to content

Instantly share code, notes, and snippets.

@icuninghame
Forked from yangxuan8282/muttrc
Last active August 4, 2024 08:21
Show Gist options
  • Save icuninghame/ae7dd24d26906df354d8016ce21de950 to your computer and use it in GitHub Desktop.
Save icuninghame/ae7dd24d26906df354d8016ce21de950 to your computer and use it in GitHub Desktop.
Hotmail/Outlook.com template account config for mutt-wizard. Force create the account with mw -y [email protected] -f, then edit ~/.config/accounts/[email protected] to follow this template:
# vim: filetype=neomuttrc
# muttrc file for account [email protected]
set ssl_starttls=yes
set ssl_force_tls=yes
set realname = "name"
set from = "[email protected]"
set sendmail = "msmtp -a [email protected]"
alias me username <[email protected]>
set folder = "$HOME/.local/share/mail/[email protected]"
set header_cache = $HOME/.cache/mutt-wizard/[email protected]/headers
set message_cachedir = $HOME/.cache/mutt-wizard/[email protected]/bodies
set mbox_type = Maildir
set hostname = "outlook.com"
source /usr/share/mutt-wizard/switch.muttrc
set spoolfile = +INBOX
set postponed = +Drafts
set trash = +Trash
set record = +Sent
macro index o "<shell-escape>mw -y [email protected]<enter>" "run mbsync to sync [email protected]"
macro index \eg "<enter-command>unset wait_key<enter><shell-escape>gpg --list-secret-keys; printf 'Enter email ID of user to publish: '; read eID; printf 'Enter fingerprint of GPG key to publish: '; read eFGPT; /usr/libexec/gpg-wks-client --create \$eFGPT \$eID | msmtp --read-envelope-from --read-recipients -a [email protected]<enter>" "publish GPG key to WKS provider"
macro index \eh "<pipe-message>/usr/libexec/gpg-wks-client --receive | msmtp --read-envelope-from --read-recipients -a [email protected]<enter>" "confirm GPG publication"
mailboxes "=INBOX" "=Drafts" "=Junk" "=Trash" "=Sent" "=Archive"
@sametaor
Copy link

sametaor commented Aug 4, 2024

Thanks a lot for this, was searching everywhere and finally found your fork from the upstream gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment