|
|
第1行: |
第1行: |
− | [[category:emacs]]
| |
| | | |
− | =wanderlust= | + | =info= |
− | ==trouble==
| + | old 2.60.3 |
− | 密码如何保存
| |
− | gmail 如何代理 相关端口
| |
| | | |
− | <pre>
| + | new image: jenkins/jenkins:2.60.3-alpine |
− | 密码 一开始还以为不可以呢 后来就好了 哈哈 202008
| |
− | | |
− | ‘M-x elmo-passwd-alist-save’ lets you save your passwords to ~/.elmo/passwd, so that you don’t have to enter them every time. ‘m p’ on a folder gives the folder a nice pet name (which you can choose, of course). ‘s’ on a folder syncs it (checks for updates on the server). ‘q’ exits the current view and asks if changes should be performed.
| |
− | </pre>
| |
− | https://www.emacswiki.org/emacs/WanderLust
| |
− | | |
− | == ins==
| |
− | <pre>
| |
− | 四个模式键: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 - 选择要删除的包
| |
− | | |
− | </pre>
| |
− | | |
− | =on debian=
| |
− | <pre>
| |
− | | |
− | ** 今天在 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
| |
− | | |
− | </pre>
| |
− | | |
− | =* 配置给 qq emial or 126 先试用一下wanderlust=
| |
− | 成功
| |
− | <pre>
| |
− | | |
− | #前面是你的帐号
| |
− | cat ~/.folders
| |
− | | |
| | | |
− | cat ~/.wl
| + | =backup= |
− | (setq wl-smtp-connection-type 'starttls
| + | 在老的机器上备份 |
− | wl-smtp-posting-port 587
| + | 系统管理-->ThinBackup--> |
− | 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 进入 成功 要求输入的是授权码
| + | Backup directory /var/jenkins_home/backups |
| | | |
− | </pre>
| + | =还原= |
− | | |
− | [https://chriszheng.science/2017/08/02/Featured-Wanderlust-tutorial-for-Gmail-user/ 针对POP协议和Gmail用户的Wanderlust教程]
| |
− | | |
− | 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#%E5%BC%80%E5%A7%8B
| |
− | | |
− | =usage= | |
| <pre> | | <pre> |
− | mew中常用命令和热键
| + | 在新的机器上 也先点击还原 并设置目录如上 |
− | | |
− | w 撰写新邮件
| |
− | | |
− | a 回复邮件,不带引用
| |
− | | |
− | A 回复邮件,带引用
| |
− | | |
− | f 转发邮件
| |
− | | |
− | r 重新发送邮件
| |
− | | |
− | SPC或Enter 阅读邮件
| |
− | | |
− | I 从邮件服务器下载完整的邮件(用于邮件较大的场合)
| |
− | | |
− | y 保存文件(可以保存信件全文、信件正文、附件)
| |
− | | |
− | M-o 邮件分类
| |
− | | |
− | M-s 邮件排序
| |
| | | |
− | d 删除邮件
| + | 然后把老机器的这个目录的备份文件 覆盖到这个新目录(rsync -avz) |
| + | 目录有可能如下 FULL-2020-08-31_09-32/ |
| | | |
− | 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 不保存退出
| + | docker-compose restart jenkins |
| | | |
− | C-c C-a 准备插入附件
| + | 修改几个 xml文件 为1.0 按提示来 |
| + | vim slave02/2020-08-27_15-01-36/history.xml |
| | | |
− | mew-attach-copy 用复制方式加入附件
| + | vim nodes/slave03/2020-08-27_15-01-42/history.xml |
| | | |
− | mew-attach-link 用链接方式加入附件
| |
| | | |
− | mew-attach-delete 删除附件
| + | docker-compose restart jenkins |
| | | |
− | C-c C-c 发送邮件
| + | 进入新jenkins 并用原来的用户就可以登录了 |
| | | |
− | C-c RET 保存邮件到发送队列
| + | 注意 |
− | C 如果设置了多个邮箱,用 C 命令切换
| + | 恢复后 jenkins 的ssh key 密码 要重新输入的 不然 不行 |
| | | |
− | Q 退出Mew
| |
− |
| |
− | 鼠标中键 在浏览器中打开邮件中的链接
| |
| </pre> | | </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=
| |
− | [https://www.djcbsoftware.nl/code/mu/mu4e.html mu4e.html]
| |
− |
| |
− | [https://github.com/LdBeth/Emacs-for-Noobs/blob/master/WanderLust.org WanderLust]
| |
− |
| |
− | [http://emacser.com/mew.htm 用Mew收发邮件]
| |
− |
| |
− | [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]
| |