Re: Gmail/OAuth2

Trevor <[email protected]> Tue, 6 May 2025 13:35:02 -0600
Newsgroups gmane.mail.mahogany.user
Message-ID <[email protected]>
Hi again, I was able to get Mahogany working once more with Gmail!

It looks like the only thing that Google is shutting down is the "less secure apps" feature that allowed email clients to use POP3/IMAP with a username/password (because they're slowly forcing everyone who interfaces with them to move to OAuth). But, by using the "App Password" feature, I'm back to using Mahogany with both POP3 and IMAP (different accounts) without having to make any further changes or use OAuth.

https://support.google.com/accounts/answer/185833?sjid=779625348219224528-NC

Success! So, it means I can continue to use Mahogany ... and I have to say in the last few days I've found settings that I either didn't know were there, or had forgotten. The depth of features continues to impress me!

Thanks once more for Mahogany, I really appreciate your efforts. If I ever get time to look at development again, I'll be sure to get in touch.

Trevor

On Thu, 1 May 2025 15:35:03 +0200 Vadim Zeitlin wrote:
> On Thu, 1 May 2025 00:34:17 -0600 Trevor <[email protected]> wrote:
> 
> T> Hi! I'm still using Mahogany after all these years (since about 2004).
> 
>  Hi,
> 
>  Glad to hear that there are still some users of Mahogany left!
> 
> T> It's been a few years since I checked the website and mailing lists and
> T> it's great to see there's been some recent activity.
> 
>  I have to admit that I didn't do any serious work on Mahogany since years,
> if not decades, but I do fix things that bother me personally from time to
> time, as I still use it for handling all my email.
> 
> T> I've been using it for Gmail, via both POP3 and IMAP for various accounts.
> T> However, Gmail has finally dropped support for legacy applications that use
> T> only Username/Password credentials,
> 
>  It doesn't look like they already did:
> 
> $ openssl s_client -crlf -connect imap.gmail.com:993
> [...]
> * OK Gimap ready for requests from xxx.yyy.zzz.www g9mb50557697wmk
> c01 capability
> * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER
> c01 OK Thats all she wrote! g9mb50557697wmk
> c02 logout
> * BYE Logout Requested g9mb50557697wmk
> c02 OK Quoth the raven, nevermore... g9mb50557697wmk
> 
> Note the presence of AUTH=PLAIN, so at least right now it should still be
> possible to use Mahogany with GMail.
> 
> T> and it looks like I have to move to one that supports Oath2. As I also
> T> plan to move from Windows to Linux, Mahogany still fits the bill. Any
> T> plans on adding Oath2 to Mahogany? (or is it already there somewhere?)
> 
>  No, unfortunately not. Mahogany uses c-client library for dealing with all
> this stuff, which means that implementing this would need to be done at
> that level, which is more difficult for me than just modifying Mahogany
> itself. But OTOH it's not the only application using this library and it
> looks like Alpine (the successor to Pine) has already implemented it, see
> https://repo.or.cz/alpine.git/blob/HEAD:/imap/src/c-client/oauth2_aux.c and
> so perhaps we could just use their version.
> 
>  IOW this is not completely hopeless, but definitely requires some work. I
> might have a look at this, but no promises. For now I've created https://github.com/vadz/mahogany/issues/1 which you can monitor if you'd like to know when/if anything happens there.
> 
>  Best regards,
> VZ