Skip to content

Commit 04d2fbf

Browse files
committed
总结成功了一会的neomutt..之后再接着折腾吧
1 parent 7a5143b commit 04d2fbf

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

tools.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
## Terminal
88
[[./tools/terminal]] -- some nice tools
99
tldr -- 终端百科
10+
neomutt -- 终端的mail client
1011

1112
## git
1213
[[./tools/git]] -- test merge and rebase

tools/neomutt.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# neomutt
2+
3+
# neomutt折腾记录
4+
第三方的软件想要获取gmail的信息,现在不能像以前一样使用不安全的认证方式了,只能通过oauth2的方式
5+
6+
## 遇到的问题
7+
- 家里的manjaro上,neomutt总是连接imap失败 超时,
8+
- google申请api的那个凭证也总是不对
9+
- 使用oauth2.py的脚本总是报错
10+
下面说下几个问题的解决办法
11+
12+
### google api credentials 总是弄不对
13+
1. 凭证一开始 欢迎界面的页面 不配置那些链接总是过不去,实际上那些链接都不需要,再次修改配置时直接去掉也通过了
14+
2. 需要选择 桌面应用
15+
3. 需要添加测试账号
16+
17+
### 使用oauth2.py的脚本总是报错
18+
1. 总是返回json的解析失败,打印出来确实多了很多没用字符,实在不知道为啥,暂时使用字符串提取了json的内容
19+
2. 使用neomutt时,调用refresh token的接口 也是同样的问题
20+
现在使用response[4:-7]
21+
response为
22+
1bf
23+
{
24+
// 真正的json
25+
}
26+
0
27+
28+
29+
# refs
30+
[凭证的申请流程](https://www.jianshu.com/p/89022852d340)

0 commit comments

Comments
 (0)