Email工作流

#Linux

Install

Fetchmail

~/.fetchmailrc

poll smtp-mail.outlook.com proto imap
    username "user@outlook.com"
    password "xxxxxxxxxxx"
    options ssl keep
    mda "/usr/bin/maildrop";

poll smtp-mail.outlook.com proto imap
    username "user@outlook.com"
    password "xxxxxxxxxxx"
    options ssl keep
    folder JUNK
    mda "/usr/bin/maildrop";

permission:

chmod 600 .fetchmailrc

Msmtp

~/.msmtprc

account outlook
tls on
auth on
host smtp-mail.outlook.com
port 587
user user@outlook.com
from user@outlook.com
password xxxxxxxx
logfile /home/lactiflora/.msmtp.log

Link sendmail to msmtp

Mutt

.muttrc

set from="~user <user@outlook.com>"
set folder=~/mail
set sort_aux=last-date-received       
set sort=threads
set sort_re

Commmands:

Git

git send-email --to=dest@example.org <format-patch options>

Scripts

hmail

#!/bin/bash

cat > /tmp/hmail.html
firefox /tmp/hmail.html

shcat

#!/bin/bash

cat $@ | tr '\n' ' '

Usage:

bash -c "mutt $(shcat /path/to/maillist)"