“Emacs email”的版本间的差异
(→usage) |
|||
(未显示同一用户的6个中间版本) | |||
第1行: | 第1行: | ||
+ | [[category:emacs]] | ||
+ | |||
=wanderlust= | =wanderlust= | ||
+ | ==trouble== | ||
+ | 密码如何保存 | ||
+ | gmail 如何代理 相关端口 | ||
== ins== | == ins== | ||
<pre> | <pre> | ||
第25行: | 第30行: | ||
</pre> | </pre> | ||
− | |||
=on debian= | =on debian= | ||
第88行: | 第92行: | ||
− | == | + | |
+ | |||
+ | |||
+ | =usage= | ||
+ | <pre> | ||
+ | mew中常用命令和热键 | ||
+ | |||
+ | w 撰写新邮件 | ||
+ | |||
+ | a 回复邮件,不带引用 | ||
+ | |||
+ | A 回复邮件,带引用 | ||
+ | |||
+ | f 转发邮件 | ||
+ | |||
+ | r 重新发送邮件 | ||
+ | |||
+ | SPC或Enter 阅读邮件 | ||
+ | |||
+ | I 从邮件服务器下载完整的邮件(用于邮件较大的场合) | ||
+ | |||
+ | y 保存文件(可以保存信件全文、信件正文、附件) | ||
+ | |||
+ | M-o 邮件分类 | ||
+ | |||
+ | M-s 邮件排序 | ||
+ | |||
+ | d 删除邮件 | ||
+ | |||
+ | C-c C-l 转换当前邮件的编码格式 | ||
+ | |||
+ | C-c C-e 调用默认程序打开附件 | ||
+ | |||
+ | C-c C-a 加入地址薄 | ||
+ | |||
+ | C-u C-c C-a 比 C-c C-a 多加入昵称和名字 | ||
+ | |||
+ | C-c C-q 不保存退出 | ||
+ | |||
+ | C-c C-a 准备插入附件 | ||
+ | |||
+ | mew-attach-copy 用复制方式加入附件 | ||
+ | |||
+ | mew-attach-link 用链接方式加入附件 | ||
+ | |||
+ | mew-attach-delete 删除附件 | ||
+ | |||
+ | C-c C-c 发送邮件 | ||
+ | |||
+ | C-c RET 保存邮件到发送队列 | ||
+ | C 如果设置了多个邮箱,用 C 命令切换 | ||
+ | |||
+ | Q 退出Mew | ||
+ | |||
+ | 鼠标中键 在浏览器中打开邮件中的链接 | ||
+ | </pre> | ||
+ | |||
+ | https://www.emacswiki.org/emacs/WanderLust | ||
+ | |||
+ | https://www.emacswiki.org/emacs/CategoryMail | ||
+ | |||
+ | |||
+ | [https://www.cnblogs.com/pandachen/p/4049602.html 用Emacs收发邮件详细教程] | ||
+ | |||
+ | [https://blog.csdn.net/u010164190/article/details/77600933 Emacs收发email ] | ||
+ | |||
+ | = 配置给gmail 最终用法 = | ||
+ | EmacsWiki 加自有的文檔的基本够用了 | ||
+ | |||
+ | |||
+ | 我也是qq email 可用,gmail 看来暂时用thunderbird先 有空再搞 | ||
+ | |||
+ | Emacs的SSL总有奇怪的问题,比如开了代理之后就不能用HTTPS,我这里直接用WL收163可以,收Gmail就不行 | ||
+ | |||
+ | [https://emacs-china.org/t/wanderlust-gmail/10514 wanderlust 的 gmail 配置] | ||
+ | |||
+ | [https://emacs-china.org/t/topic/5622/15 目前还有办法在Emacs里收Gmail的邮件吗] | ||
+ | |||
+ | [https://emacs-china.org/t/emacs/9145/8 emacs 下比较好的邮件方案是什么] | ||
+ | |||
+ | [https://box.matto.nl/emacsgmail.html Emacs with Wanderlust and GMail ] | ||
+ | |||
+ | Gmail支持smtp转发和pop3接收. | ||
+ | POP3服务器地址: pop.gmail.com 端口:995 支持SSL | ||
+ | SMTP服务器地址: smtp.gmail.com 端口:465 或者 587 支持SSL(TSL) | ||
+ | |||
+ | 465端口是SSL/TLS通讯协议的 内容一开始就被保护起来了 是看不到原文的。 | ||
+ | 587端口是STARTTLS协议的 属于TLS通讯协议 只是他是在STARTTLS命令执行后才对之后的原文进行保护的。 | ||
+ | |||
+ | |||
+ | |||
+ | smtp imap gmail 是通的哦 | ||
+ | smtp.gmail.com 465 | ||
+ | |||
+ | imap.gmail.com 993 不通 | ||
+ | |||
+ | |||
+ | == stunnel4 == | ||
+ | 说到代理 这里有相关的 | ||
+ | [https://chriszheng.science/2017/08/02/Featured-Wanderlust-tutorial-for-Gmail-user/ 针对POP协议和Gmail用户的Wanderlust教程] | ||
+ | |||
+ | [https://chriszheng.science/2017/02/05/Iptables-port-forwarding-and-redirecting-rules-for-Gmail/ iptables or ss-tunnel 的端口转发对抗封锁 ] | ||
+ | |||
+ | [https://www.v2ex.com/t/427636 ss-tunnel 是做什么用的] | ||
+ | |||
+ | <pre> | ||
+ | ss-tunnel -l "995" -L "207.148.106.229:995" -u & ss-tunnel.exe -c /etc/shadowsocks/config.json -l "465" -L "64.233.176.108:465" -u & | ||
+ | |||
+ | |||
+ | |||
+ | ss-tunnel.exe -c /etc/shadowsocks/config.json -l "995" -L "64.233.176.108:995" -u & ss-tunnel.exe -c /etc/shadowsocks/config.json -l "465" -L "64.233.176.108:465" -u & | ||
+ | |||
+ | |||
+ | ss-tunnel -s 1.1.1.1 -p 8989 -m aes-256-cfb -k xxxx -b 127.0.0.1 -l 4321 -L 8.8.8.8:53 -u | ||
+ | 做了个隧道。 | ||
+ | |||
+ | 上面的命令是在本地开了个端口 4321,通过隧道连接到 1.1.1.1 的 8989 端口,把发往本地 4321 端口的请求转发到 8.8.8.8:53 dns 查询端口。 | ||
+ | |||
+ | 通 | ||
+ | |||
+ | telnet pop.gmail.com 995 | ||
+ | |||
+ | |||
+ | telnet pop.gmail.com 587 | ||
+ | |||
+ | |||
+ | http_proxy=http://127.0.0.1:7070; emacs | ||
+ | </pre> | ||
+ | ===配置stunnel4 === | ||
+ | <pre> | ||
+ | 、配置stunnel4 | ||
+ | |||
+ | 对于采用SSL/TLS连接的邮件服务器,需要配置stunnel来提供加密连接,例如:gmail | ||
+ | |||
+ | $sudo vim /etc/stunnel/stunnel.conf | ||
+ | |||
+ | ; Protocol version (all, SSLv2, SSLv3, TLSv1) | ||
+ | |||
+ | sslVersion = SSLv3 | ||
+ | |||
+ | ; Some security enhancements for UNIX systems - comment them out on Win32 | ||
+ | |||
+ | chroot = /var/lib/stunnel4/ | ||
+ | |||
+ | setuid = stunnel4 | ||
+ | |||
+ | setgid = stunnel4 | ||
+ | |||
+ | ; PID is created inside the chroot jail | ||
+ | |||
+ | pid = /stunnel4.pid | ||
+ | |||
+ | ; Some performance tunings | ||
+ | |||
+ | socket = l:TCP_NODELAY=1 | ||
+ | |||
+ | socket = r:TCP_NODELAY=1 | ||
+ | |||
+ | ;compression = rle | ||
+ | |||
+ | ; Some debugging stuff useful for troubleshooting | ||
+ | |||
+ | debug = 7 | ||
+ | |||
+ | output = /var/log/stunnel4/stunnel.log | ||
+ | |||
+ | ; Use it for client mode | ||
+ | client = yes | ||
+ | |||
+ | ; Service-level configuration | ||
+ | |||
+ | [pop3s] | ||
+ | |||
+ | accept = 995 | ||
+ | |||
+ | connect = 110 | ||
+ | |||
+ | |||
+ | |||
+ | [imaps] | ||
+ | |||
+ | accept = 993 | ||
+ | |||
+ | connect = 143 | ||
+ | |||
+ | |||
+ | |||
+ | [ssmtp] | ||
+ | |||
+ | accept = 465 | ||
+ | |||
+ | connect = 25 | ||
+ | |||
+ | ;; | ||
+ | |||
+ | ;; gmail seting | ||
+ | |||
+ | ;; | ||
+ | |||
+ | [gmail-pops] | ||
+ | |||
+ | accept = 9959 | ||
+ | |||
+ | connect = imap.gmail.com:995 | ||
+ | |||
+ | |||
+ | |||
+ | [gmail-imaps] | ||
+ | |||
+ | accept = 9939 | ||
+ | |||
+ | connect = imap.gmail.com:993 | ||
+ | |||
+ | |||
+ | |||
+ | [gmail-ssmtp] | ||
+ | |||
+ | accept = 4659 | ||
+ | connect = imap.gmail.com:465 | ||
+ | |||
+ | |||
+ | </pre> | ||
+ | |||
+ | =进阶= | ||
+ | 要进一步学习 看 | ||
+ | https://github.com/emacs-china/hello-emacs/blob/master/Emacs%E4%B8%AD%E7%9A%84%E9%82%AE%E4%BB%B6%E5%AE%A2%E6%88%B7%E7%AB%AF--WanderLust.org | ||
+ | |||
+ | https://www.emacswiki.org/emacs/WanderLust | ||
+ | |||
+ | |||
+ | |||
+ | https://medium.com/@enzuru/emacs-26-wanderlust-and-modern-gmail-authentication-36e1ae61471f | ||
=see also= | =see also= | ||
第98行: | 第333行: | ||
[http://linzhichu.github.io/computers/2016/10/06/emacs-as-email-client-using-mu4e 通过mu4e用Emacs作为邮件客户端] | [http://linzhichu.github.io/computers/2016/10/06/emacs-as-email-client-using-mu4e 通过mu4e用Emacs作为邮件客户端] | ||
+ | |||
+ | https://wanderlust.github.io/wl-docs/wl.html | ||
+ | |||
+ | |||
+ | [https://github.com/LdBeth/Emacs-for-Noobs/blob/master/WanderLust.org LdBeth大神写的Wanderlust教程] | ||
+ | |||
+ | |||
+ | [https://blog.csdn.net/csfreebird/article/category/2592601 Emacs Email] | ||
+ | |||
+ | |||
+ | |||
+ | [https://chriszheng.science/2017/08/02/Featured-Wanderlust-tutorial-for-Gmail-user/ 针对POP协议和Gmail用户的Wanderlust教程] | ||
+ | |||
+ | |||
+ | |||
+ | [https://blog.csdn.net/u010164190/article/details/77600933 Emacs收发email] | ||
+ | |||
+ | |||
+ | [https://blog.csdn.net/wdkirchhoff/article/details/52741522 使用Emacs发送邮件] | ||
+ | |||
+ | |||
+ | [https://www.emacswiki.org/emacs/GnusGmail GnusGmail] | ||
+ | |||
+ | [https://www.phodal.com/blog/emacs-gmail-configure/ Emacs Gmail gnus 配置] | ||
+ | |||
+ | [https://blog.csdn.net/fduffyyg/article/details/84138393 Emacs 新闻组 之三 收发Gmail gnus] | ||
+ | |||
+ | |||
+ | [https://blog.csdn.net/csfreebird/article/details/52885206 emacs terminal] |
2019年11月7日 (四) 03:21的版本
目录
wanderlust
trouble
密码如何保存 gmail 如何代理 相关端口
ins
四个模式键:C—-Ctrl;M—-Alt;s—-Super(Win);S—-Shift 也可以使用命令M-x list-packages获取插件列表,使用C-s找到 软件名例如叫 elpy 来安装 #开始安装 M-x list-packages,M-x list-packages RET wanderlust RET #软件包安装 Alt+x list-packages 可以先用C-s向下搜索 autopair 找到后 回来后 按i再按x就下载到本地了。然后打开emacs的配置文件init.el,在里面添加下面: 常用快捷键 i - 选择要安装的包 d - 选择要删除的包 U - 升级已安装的包 x - 执行操作 d - 选择要删除的包
on debian
** 今天在 vps debian 试一下 apt install wl-beta vi .emacs.d/init.el ;;evan (if (boundp 'mail-user-agent) (setq mail-user-agent 'wl-user-agent)) (if (fboundp 'define-mail-user-agent) (define-mail-user-agent 'wl-user-agent 'wl-user-agent-compose 'wl-draft-send 'wl-draft-kill 'mail-send-hook)) ;;evan
* 配置给 qq emial or 126 先试用一下wanderlust
成功
cat ~/.folders %inbox:88/[email protected]:993! "QQ Mail" cat ~/.wl (setq wl-smtp-connection-type 'starttls wl-smtp-posting-port 587 wl-smtp-authenticate-type "plain" wl-smtp-posting-user "88" wl-smtp-posting-server "smtp.qq.com" wl-local-domain "qq.com" wl-message-id-domain "smtp.qq.com") vi .emacs.d/init.el ;;evan (if (boundp 'mail-user-agent) (setq mail-user-agent 'wl-user-agent)) (if (fboundp 'define-mail-user-agent) (define-mail-user-agent 'wl-user-agent 'wl-user-agent-compose 'wl-draft-send 'wl-draft-kill 'mail-send-hook)) ;;evan alt +x wl 进入 成功 要求输入的是授权码
usage
mew中常用命令和热键 w 撰写新邮件 a 回复邮件,不带引用 A 回复邮件,带引用 f 转发邮件 r 重新发送邮件 SPC或Enter 阅读邮件 I 从邮件服务器下载完整的邮件(用于邮件较大的场合) y 保存文件(可以保存信件全文、信件正文、附件) M-o 邮件分类 M-s 邮件排序 d 删除邮件 C-c C-l 转换当前邮件的编码格式 C-c C-e 调用默认程序打开附件 C-c C-a 加入地址薄 C-u C-c C-a 比 C-c C-a 多加入昵称和名字 C-c C-q 不保存退出 C-c C-a 准备插入附件 mew-attach-copy 用复制方式加入附件 mew-attach-link 用链接方式加入附件 mew-attach-delete 删除附件 C-c C-c 发送邮件 C-c RET 保存邮件到发送队列 C 如果设置了多个邮箱,用 C 命令切换 Q 退出Mew 鼠标中键 在浏览器中打开邮件中的链接
https://www.emacswiki.org/emacs/WanderLust
https://www.emacswiki.org/emacs/CategoryMail
配置给gmail 最终用法
EmacsWiki 加自有的文檔的基本够用了
我也是qq email 可用,gmail 看来暂时用thunderbird先 有空再搞
Emacs的SSL总有奇怪的问题,比如开了代理之后就不能用HTTPS,我这里直接用WL收163可以,收Gmail就不行
Emacs with Wanderlust and GMail
Gmail支持smtp转发和pop3接收. POP3服务器地址: pop.gmail.com 端口:995 支持SSL SMTP服务器地址: smtp.gmail.com 端口:465 或者 587 支持SSL(TSL)
465端口是SSL/TLS通讯协议的 内容一开始就被保护起来了 是看不到原文的。 587端口是STARTTLS协议的 属于TLS通讯协议 只是他是在STARTTLS命令执行后才对之后的原文进行保护的。
smtp imap gmail 是通的哦 smtp.gmail.com 465
imap.gmail.com 993 不通
stunnel4
说到代理 这里有相关的 针对POP协议和Gmail用户的Wanderlust教程
iptables or ss-tunnel 的端口转发对抗封锁
ss-tunnel -l "995" -L "207.148.106.229:995" -u & ss-tunnel.exe -c /etc/shadowsocks/config.json -l "465" -L "64.233.176.108:465" -u & ss-tunnel.exe -c /etc/shadowsocks/config.json -l "995" -L "64.233.176.108:995" -u & ss-tunnel.exe -c /etc/shadowsocks/config.json -l "465" -L "64.233.176.108:465" -u & ss-tunnel -s 1.1.1.1 -p 8989 -m aes-256-cfb -k xxxx -b 127.0.0.1 -l 4321 -L 8.8.8.8:53 -u 做了个隧道。 上面的命令是在本地开了个端口 4321,通过隧道连接到 1.1.1.1 的 8989 端口,把发往本地 4321 端口的请求转发到 8.8.8.8:53 dns 查询端口。 通 telnet pop.gmail.com 995 telnet pop.gmail.com 587 http_proxy=http://127.0.0.1:7070; emacs
配置stunnel4
、配置stunnel4 对于采用SSL/TLS连接的邮件服务器,需要配置stunnel来提供加密连接,例如:gmail $sudo vim /etc/stunnel/stunnel.conf ; Protocol version (all, SSLv2, SSLv3, TLSv1) sslVersion = SSLv3 ; Some security enhancements for UNIX systems - comment them out on Win32 chroot = /var/lib/stunnel4/ setuid = stunnel4 setgid = stunnel4 ; PID is created inside the chroot jail pid = /stunnel4.pid ; Some performance tunings socket = l:TCP_NODELAY=1 socket = r:TCP_NODELAY=1 ;compression = rle ; Some debugging stuff useful for troubleshooting debug = 7 output = /var/log/stunnel4/stunnel.log ; Use it for client mode client = yes ; Service-level configuration [pop3s] accept = 995 connect = 110 [imaps] accept = 993 connect = 143 [ssmtp] accept = 465 connect = 25 ;; ;; gmail seting ;; [gmail-pops] accept = 9959 connect = imap.gmail.com:995 [gmail-imaps] accept = 9939 connect = imap.gmail.com:993 [gmail-ssmtp] accept = 4659 connect = imap.gmail.com:465
进阶
https://www.emacswiki.org/emacs/WanderLust
https://medium.com/@enzuru/emacs-26-wanderlust-and-modern-gmail-authentication-36e1ae61471f
see also
https://wanderlust.github.io/wl-docs/wl.html