Gonzih / feeds2imap.clj

Pull RSS/Atom feeds to your IMAP folders with Clojure on JVM.
http://feeds2imap.gonzih.me/
MIT License
31 stars 6 forks source link

Cannot push to gmail account #13

Closed yatesco closed 9 years ago

yatesco commented 9 years ago

I have configured imap.clj but I consistently get the following error:

coliny@colin:~/feeds2imap.clj$ ~/bin/lein run pull
Found 0 items in cache.
Found 1 folders in urls.
Fetching http://planet.clojure.in/atom.xml
Found 1 folder(s) with 10 new item(s) in total.
Connecting to imap host.
Exception in pull #<AuthenticationFailedException javax.mail.AuthenticationFailedException: Lookup failed h4mb172158012wjn>

The h4mb172158012wjn changes on every run. Imap is:

{:host "imap.gmail.com"     ; imap host
 :port 993                  ; imap port
 :username "my-username-without@gmail.com"       ; imap username
 :password "my-password"       ; imap password
 :to "my-username@gmail.com"         ; address to put in to the "to" email field
 :from "rss@bot.com"}       ; plain address to put in to the "from" email field
vitalyster commented 9 years ago

check "suspicious sign-in" in google account?

yatesco commented 9 years ago

Thanks for the tip - I needed to allow 'insecure' apps to login - all working fine now - thanks.