2

I am trying to configure emacs to fetch my mail from gmail and have got into some troubles. I am getting "NO" as answer from gmail server all the time. I have followed instructions offered at gnus manual, emacswiki and numerous other blogs and sites, but I don't seem to be able to get it to work. It should be fairly simple to set it up, but for some reason I dont' seem to be able. Here is my .gnus file:

(setq gnus-select-method
  '(nnimap "gmail"
       (nnimap-address "imap.gmail.com")
       (nnimap-server-port 993)
       (nnimap-stream ssl)))

Content of .authoinfo:

machine imap.gmail.com login "myuser@gmail.com" password "mypassword" port 993

Content of .profile file (as from emacswiki):

export EMAIL="mymail@gmail.com"
export NAME="myname"
export IMAPSERVER="imap.gmail.com"

I always get following error: Opening connection to imap.gmail.com via tls... nnimap (editedemail@gmail.com) open error: 'NO (ALERT) Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure).

I am using gnutls 3.4.4 on Arch Linux. Emacs is vanilla arch 24.5.1 version. By now I have seen pretty much every blog on the planet that touches Gnus and gmail even at the slightest and it really drives me mad :). Hope somebody can help me with the issue.

1 Answers1

1

I had the same problem. On the page: https://www.google.com/settings/security/lesssecureapps i turned on the option "Enable"