打造终端下mutt收发邮件环境(fbterm,fetchmail,msmtp,procmail,mutt)
Posted yfceshi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了打造终端下mutt收发邮件环境(fbterm,fetchmail,msmtp,procmail,mutt)相关的知识,希望对你有一定的参考价值。
实现mutt下收发邮件须要安装,mutt,fbterm,fetchmail,msmtp,procmail
下面是各配置文件。在home文件夹下,隐私信息有马赛克...
.muttrc : 当中Mail是我建立的邮件文件夹,还有比較舒适的界面配置
- set editor="vim"
- set mbox="/home/xiaojunyu/Mail/inbox"
- set spoolfile="/home/xiaojunyu/Mail/inbox/xiaojunyu"
- set postponed="/home/xiaojunyu/Mail/postponed"
- set record="/home/xiaojunyu/Mail/send"
- set check_new=yes
- set timeout=600
- set sendmail="/usr/bin/msmtp"
- set envelope_from=yes
- set use_from=yes
- set realname="xiaojunyu"
- set from=xiaojunyu5201314@163.com
- set charset="UTF-8"
- set send_charset="us-ascii:iso-8859-1:GB2312:UTF-8"
- set rfc2047_parameters=yes
- #界面颜色
- color index yellow default ~p
- color index white default ~P
- color index brightyellow default ~N
- color index brightgreen default "~N ~p"
- color normal white black
- color attachment brightyellow black
- color hdrdefault cyan black
- color indicator black cyan
- color markers brightred black
- color quoted green black
- color signature cyan black
- color status black white
- color tilde blue black
- color tree red black
- color header brightgreen black ^From:
- color header brightcyan black ^To:
- color header brightcyan black ^Reply-To:
- color header brightcyan black ^Cc:
- color header brightgreen black ^Subject:
- color header brightyellow black ^Sender:
- color index brightyellow black ~N
- auto_view text/html
- macro index G "!fetchmail -v<enter>"
- macro index <esc>1 <change-folder>+inbox/xiaojunyu<enter>
- macro index <esc>2 <change-folder>+send<enter>
- alias xiaojunyu [email protected]
.fetchmailrc : 第一个凝视是设置后台执行。自己主动检測邮件的
- #set daemon 600
- poll pop.163.com
- protocol POP3
- user "[email protected]"
- password "xxxx"
- mda "/usr/bin/procmail -d %T"
- VERBOSE=yes
- MAILDIR=/home/xiaojunyu/Mail/inbox
- DEFAULT=/home/xiaojunyu/Mail/inbox/xiaojunyu
- LOGFILE=$MAILDIR/.procmail.log
- :0:
- *^T0mutt-user
- mutt
.msmtprc : 这个是发邮件的
- account default
- host smtp.163.com
- from [email protected]
- auth plain
- user [email protected]
- password xxxx
- logfile /home/xiaojunyu/.msmtp.log
基本这个格式即可了。mutt是能够设置非常多快捷键的。能够自己去摸索..
以上是关于打造终端下mutt收发邮件环境(fbterm,fetchmail,msmtp,procmail,mutt)的主要内容,如果未能解决你的问题,请参考以下文章
Ubuntu使用mutt收发回复邮件(mutt+msmtp+fetchmail+procmail