Skip to content

Instantly share code, notes, and snippets.

@icuninghame
Forked from yangxuan8282/muttrc
Last active August 4, 2024 08:21
Show Gist options
  • Select an option

  • Save icuninghame/ae7dd24d26906df354d8016ce21de950 to your computer and use it in GitHub Desktop.

Select an option

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 username@outlook.com -f, then edit ~/.config/accounts/username@outlook.com to follow this template:
# vim: filetype=neomuttrc
# muttrc file for account username@outlook.com
set ssl_starttls=yes
set ssl_force_tls=yes
set realname = "name"
set from = "username@outlook.com"
set sendmail = "msmtp -a username@outlook.com"
alias me username <username@outlook.com>
set folder = "$HOME/.local/share/mail/username@outlook.com"
set header_cache = $HOME/.cache/mutt-wizard/username@outlook.com/headers
set message_cachedir = $HOME/.cache/mutt-wizard/username@outlook.com/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 username@outlook.com<enter>" "run mbsync to sync username@outlook.com"
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 username@outlook.com<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 username@outlook.com<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