• 打造终端下mutt收发邮件环境(fbterm,fetchmail,msmtp,procmail,mutt)


    实现mutt下收发邮件须要安装,mutt,fbterm,fetchmail,msmtp,procmail

    下面是各配置文件。在home文件夹下,隐私信息有马赛克...

    .muttrc : 当中Mail是我建立的邮件文件夹,还有比較舒适的界面配置

    1. set editor="vim"  
    2. set mbox="/home/xiaojunyu/Mail/inbox"  
    3. set spoolfile="/home/xiaojunyu/Mail/inbox/xiaojunyu"  
    4. set postponed="/home/xiaojunyu/Mail/postponed"  
    5. set record="/home/xiaojunyu/Mail/send"  
    6. set check_new=yes  
    7. set timeout=600  
    8. set sendmail="/usr/bin/msmtp"  
    9. set envelope_from=yes  
    10. set use_from=yes  
    11. set realname="xiaojunyu"  
    12. set from=xiaojunyu5201314@163.com  
    13. set charset="UTF-8"  
    14. set send_charset="us-ascii:iso-8859-1:GB2312:UTF-8"  
    15. set rfc2047_parameters=yes  
    16.   
    17. #界面颜色  
    18. color index yellow default ~p  
    19. color index white default ~P  
    20. color index brightyellow default ~N  
    21. color index brightgreen default "~N ~p"  
    22. color normal white black  
    23. color attachment brightyellow black  
    24. color hdrdefault cyan black  
    25. color indicator black cyan  
    26. color markers brightred black  
    27. color quoted green black  
    28. color signature cyan black  
    29. color status black white  
    30. color tilde blue black  
    31. color tree red black  
    32. color header brightgreen black ^From:  
    33. color header brightcyan black ^To:  
    34.   
    35.   
    36. color header brightcyan black ^Reply-To:  
    37. color header brightcyan black ^Cc:  
    38. color header brightgreen black ^Subject:  
    39. color header brightyellow black ^Sender:  
    40. color index brightyellow black ~N  
    41.   
    42. auto_view text/html  
    43.   
    44. macro index G "!fetchmail -v<enter>"  
    45. macro index <esc><change-folder>+inbox/xiaojunyu<enter>  
    46. macro index <esc><change-folder>+send<enter>  
    47.   
    48. alias xiaojunyu xiaojunyu5201314@163.com  

    .fetchmailrc : 第一个凝视是设置后台执行。自己主动检測邮件的

    1. #set daemon 600  
    2. poll pop.163.com  
    3. protocol POP3  
    4. user "xiaojunyu5201314@163.com"  
    5. password "xxxx"  
    6. mda "/usr/bin/procmail -d %T"  


    .procmailrc :

    1. VERBOSE=yes  
    2. MAILDIR=/home/xiaojunyu/Mail/inbox  
    3. DEFAULT=/home/xiaojunyu/Mail/inbox/xiaojunyu  
    4. LOGFILE=$MAILDIR/.procmail.log  
    5. :0:  
    6. *^T0mutt-user  
    7. mutt  


    .msmtprc : 这个是发邮件的

    1. account default  
    2. host smtp.163.com  
    3. from xiaojunyu5201314@163.com  
    4. auth plain  
    5. user xiaojunyu5201314@163.com  
    6. password xxxx  
    7. logfile /home/xiaojunyu/.msmtp.log  

    基本这个格式即可了。mutt是能够设置非常多快捷键的。能够自己去摸索..
  • 相关阅读:
    C++小项目:directx11图形程序(七):modelclass
    C++小项目:directx11图形程序(六):cameraclass
    C++小项目:directx11图形程序(五):shadersclass
    C++小项目:directx11图形程序(四):d3dclass
    C++小项目:directx11图形程序(三):graphicsclass
    C++小项目:directx11图形程序(二):systemclass
    舞台上加载一外部SWF,舞台如何调用该swf内部方法呢?
    as3绘制抛物线
    Unity常用代码总结
    C# ref和out区别介绍
  • 原文地址:https://www.cnblogs.com/yfceshi/p/7093675.html
Copyright © 2020-2023  润新知