Re:Working with Git Patches in Apple Mail (2023)
by teeray on Sunday May 18, 2025 @11:08AM
(#44021946)
Maybe slightly O/T, but has anyone found a decent way to `git send-email` with email hosts that demand OAuth? (looking at you Outlook and Gmail)
[ Parent
| on HN ]
Re:Working with Git Patches in Apple Mail (2023)
by computerfriend on Sunday May 18, 2025 @11:31AM
(#44022102)
For Gmail, you can use https://github.com/google/gmail-oauth2-tools/tree/master/go/....
Re:Working with Git Patches in Apple Mail (2023)
by ravetcofx on Sunday May 18, 2025 @11:27AM
(#44022073)
Generating app passwords for those would work.
Re:Working with Git Patches in Apple Mail (2023)
by pm215 on Sunday May 18, 2025 @01:15PM
(#44022836)
Yeah, I use an app specific password with Gmail, like the setup suggested by https://git-send-email.io/#step-2
Exchange historically had a tendency to mangle emails sent through it (whitespace changes, line wrap, etc), which is obviously bad news for patchmails. I dunno if it's any better these days.
Re:Working with Git Patches in Apple Mail (2023)
by mathstuf on Sunday May 18, 2025 @01:09PM
(#44022786)
I use msmtp with a tool from the oauth2-tools repo to do the rotation token dance. Need to register your own app with Google though.
Re:Working with Git Patches in Apple Mail (2023)
by dmarinus on Sunday May 18, 2025 @01:27PM
(#44022921)
davmail supports smtp through outlook(365)
Re:Working with Git Patches in Apple Mail (2023)
by ndegruchy on Sunday May 18, 2025 @05:12PM
(#44024346)
Yeah, I used DAVMail with Emacs+MSMTP+MPOP+notmuch for ages. Works really well, the only occasional thing I had to do was reauthenticate the token, which pops up in a browser window.
Re:Working with Git Patches in Apple Mail (2023)
by ozarker on Sunday May 18, 2025 @01:45PM
(#44023062)
I think you could set up postfix to smtp forward to those services. So it could handle the oauth2 and you wouldn’t need to configure your client
Re:Working with Git Patches in Apple Mail (2023)
by p_wood on Sunday May 18, 2025 @03:59PM
(#44023934)
I use an app password but https://github.com/AdityaGarg8/git-credential-email apparently supports OAuth with Gmail, yahoo and outlook
Re:Working with Git Patches in Apple Mail (2023)
by arthurmorgan123 on Monday May 19, 2025 @11:54AM
(#44031153)
I tried this with Gmail and Outlook. Works flawlessly and also doesn't need to authenticate frequently. The Authen::SASL thing was a catch though.
git-send-email also has some quirks for Outlook which have been recently merged.