Mutt Configuration
Mutt is linux command line mail utility. Configure your outlook365 account.
#Copy these contents in ~/.muttrc
set folder="imaps://outlook.office365.com/"
set spoolfile= +INBOX
mailboxes
#My settings
alternative_order text/calendar text/plain text/*
auto_view text/calendar text/html
set imap_check_subscribed="yes"
set imap_list_subscribed="yes"
set timeout=60
set mail_check=90
set imap_keepalive=180
set imap_user=<yourmail>@company.com
set imap_pass="your_password"
set imap_idle
unset mark_old
set ssl_use_sslv3=yes
# SMTP config
set realname = "Your Name"
set hostname="company.com" # my DNS domain
set use_from=yes
set from=<your mail>@company.com
set envelope_from=yes
set mbox_type = mboxmutt
#Add patch bindinging
macro index \Ch "<enter-command>unset wait_key<enter><enter-command>set pipe_decode<enter><tag-prefix><pipe-entry>from-mutt<enter><enter-command>unset pipe_decode<enter><enter-command>set wait_key<enter>" "output git patches"
Add below contents in ~/bin/from-mutt
#!/bin/bash
PATCH_FILE=`mktemp --tmpdir="$HOME/tmp" mutt-patch.XXXXXX`
cat > $PATCH_FILE
MAILBOX=`cat $PATCH_FILE | formail -c -xSubject: | tr "'" "." | sed -e '{ s@\[@@g; s@\]@@g; s@[*()" \t]@_@g; s@[/:]@-@g; s@^ \+@@; s@\.\.@.@g; s@-_@_@g; s@__@_@g; s@\.$@@; }' | cut -c 1-70`.patch
mv "$PATCH_FILE" "$HOME/incoming/$MAILBOX"
Last updated