首页 > 代码库 > 打造终端下mutt收发邮件环境(fbterm,fetchmail,msmtp,procmail,mutt)
打造终端下mutt收发邮件环境(fbterm,fetchmail,msmtp,procmail,mutt)
实现mutt下收发邮件须要安装,mutt,fbterm,fetchmail,msmtp,procmail
下面是各配置文件。在home文件夹下,隐私信息有马赛克...
.muttrc : 当中Mail是我建立的邮件文件夹,还有比較舒适的界面配置
[html] view plaincopy
- 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 xiaojunyu5201314@163.com
.fetchmailrc : 第一个凝视是设置后台执行。自己主动检測邮件的
[html] view plaincopy
- #set daemon 600
- poll pop.163.com
- protocol POP3
- user "xiaojunyu5201314@163.com"
- password "xxxx"
- mda "/usr/bin/procmail -d %T"
[html] view plaincopy
- VERBOSE=yes
- MAILDIR=/home/xiaojunyu/Mail/inbox
- DEFAULT=/home/xiaojunyu/Mail/inbox/xiaojunyu
- LOGFILE=$MAILDIR/.procmail.log
- :0:
- *^T0mutt-user
- mutt
.msmtprc : 这个是发邮件的
[html] view plaincopy
- account default
- host smtp.163.com
- from xiaojunyu5201314@163.com
- auth plain
- user xiaojunyu5201314@163.com
- password xxxx
- logfile /home/xiaojunyu/.msmtp.log
基本这个格式即可了。mutt是能够设置非常多快捷键的。能够自己去摸索..
打造终端下mutt收发邮件环境(fbterm,fetchmail,msmtp,procmail,mutt)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。