pulb / mailnag

An extensible mail notification daemon
GNU General Public License v2.0
253 stars 32 forks source link

Oauth2 authentication #175

Open cdhassell opened 6 years ago

cdhassell commented 6 years ago

Google is now pushing users to enable oauth2 authentication in email clients to improve security, so I am trying that out. I turned on oauth2 in thunderbird and that works well. However there appears to be no way to enable oauth2 in mailnag, so it cannot update from gmail. Can this be fixed?

elguavas commented 5 years ago

hi there, i was about to add a ticket asking for oauth authentication myself, but cdhassell beat me to it. ;)

it would be really great if you were able to add this feature to mailnag.

ps thanks a bunch for all your work on mailnag!! :)

leonmoro commented 1 year ago

Hello. Great applet. Thanks, but... I join the request to implement Oauth2 support in Mailnag

leonmoro commented 1 year ago

Hi all. I think that the required functionality is already in Mailnag, only from a slightly different angle. I created a 'password for mail app' in my mail account settings, with this password Mailnag checks mail from Yandex just fine. Mailnag left the authorization settings as before, i.e. not OAuth2

leonmoro commented 1 year ago

Are your mail app/s OAuth2 enabled? If so, did this require a change After you made the change to the "password" for Mailnag?

@Coding-Coolie

I am using Linux Mint 22 Cinnamon. Thunderbird is not running. Mailnag shows an alert with a link to open the mail and triggers (in my case) the opening of a file with the notification text (so that the operator will definitely notice).

I had to turn on two-factor authentication to enable 'application passwords' in both Gmail and Yandex. And then for the mailer on each device, create a separate password by logging into my account again. Perhaps one password would have worked on different devices, I don’t know. If you're already signed in with two-factor authentication, you won't need to change the Thunderbird settings. Only create 'mail app password' for Mailnag

leonmoro commented 1 year ago

@Coding-Coolie I understand you, and maybe it will be, but I can't help, I'm not a programmer at all :)