新篇: 配置邮件系统
install getmail
sudo apt-get install -y getmail
mkdir .getmail
Configure getmail
user= password=
# imapmail.company.com
server= port=993 cat > ~/.getmail/getmailrc << EOF [retriever] type = SimpleIMAPSSLRetriever server = $server port = $port username = "CCR\\$user" password = $password mailboxes = ("Inbox", "Conversation History", ) [destination] type = MDA_external path = /usr/bin/procmail [options] read_all = false verbose = 0 delete = false delivered_to = false received = false message_log = ~/.getmail/getmail.intel.log EOF
install procmail
cat > ~/.procmailrc << EOF # http://gushue.net/mutt/procmailrc # MAILDIR=\$HOME/Mail #DEFAULT=\$MAILDIR/INBOX #completely optional LOGFILE=$HOME/.getmail/procmail.log YEAR=`date +%Y` # ----- check for existance of year's directory ----- :0 ic * ? test ! -d \$YEAR | mkdir -p \$YEAR && chmod 0700 \$YEAR #:0hc #* \$^(Subject)\${URGMATCH} #| formail -x Subject | growlnotify --sticky --image $HOME/.mutt/misc/mutt-mine-icon.png :0: \$YEAR/Inbox/ EOF
REF: