当我尝试使用mutt登录gmail时,它会闪烁一个带有URL的快速Webalert,该信息类似于accounts.gmail.com之类。我看不到或复制它太快了。然后说登录失败。
然后我从Gmail收到一封电子邮件,内容为:
Google Account: sign-in attempt blocked
Hi Adam,
We recently blocked a sign-in attempt to your Google Account [a...@gmail.com].
Sign in attempt details
Date & Time: Wednesday, December 10, 2014 11:55:21 PM UTC
Location: Utah, USA
If this wasn't you
Please review your Account Activity page at https://security.google.com/settings/security/activity to see if anything looks suspicious. Whoever tried to sign in to your account knows your password; we recommend that you change it right away.
If this was you
You can switch to an app made by Google such as Gmail to access your account (recommended) or change your settings at https://www.google.com/settings/security/lesssecureapps so that your account is no longer protected by modern security standards.
To learn more, see https://support.google.com/accounts/answer/6010255.
Sincerely,
The Google Accounts team
我可以转到该链接并启用“访问较不安全的应用程序”,然后可以正常登录,但是是否可以使用mutt登录而不必在Gmail中打开此不安全的选项?
更新:
我在Mac OS X Yosemite上运行mutt -v时,在编译选项中确实包含+ USE_SSL_OPENSSL我没有使用google两步验证我没有使用应用程序专用密码这是我收到的消息当我尝试登录时得到:
Reading imaps://imap.gmail.com:993/INBOX...
Looking up imap.gmail.com...
Connecting to imap.gmail.com...
TLSv1.2 connection using TLSv1/SSLv3 (ECDHE-RSA-AES128-GCM-SHA256)
Logging in...
[WEBALERT https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbsm0P......
我找到了这个答案,但是没有用:https : //stackoverflow.com/a/25209735/1665818