File tree 2 files changed +31
-0
lines changed
2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 7
7
## Terminal
8
8
[[ ./tools/terminal]] -- some nice tools
9
9
tldr -- 终端百科
10
+ neomutt -- 终端的mail client
10
11
11
12
## git
12
13
[[ ./tools/git]] -- test merge and rebase
Original file line number Diff line number Diff line change
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 )
You can’t perform that action at this time.
0 commit comments