[PATCH v5 0/6] imap-send: make it usable again and add OAuth2.0 support
- From
Aditya Garg <gargaditya08@live.com>
- Date
- May 25, 2025, 18:54 UTC
- Message-ID
- <20250525185447.29982-1-gargaditya08@live.com>
- In-Reply-To
- <PN3PR01MB9597C5BC8528C0E068DDDA18B899A@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM>
This patch series does the following things: Firstly it basically makes the imap-send command usable again since it was broken because of not being able to correctly parse the config file.
Further it adds support for OAuth2.0 and PLAIN authentication to git imap-send.
Last, it does some minor improvements including adding the ability to specify the folder using the command line and set a default between curl and openssl using the config.
P.S.: I am surprised this thing even exists xD.
v2: - Added support for OAuth2.0 with curl.
- Fixed the memory leak in case auth_cram_md5 fails.
v3: - Improve wording in first patch
- Change misleading message if OAuth2.0 is used without OpenSSL
v4: - Add PLAIN authentication mechanism for OpenSSL
- Improved wording in the first patch a bit more
v5: - Add ability to specify destination folder using the command line
- Add ability to set a default between curl and openssl using the configAditya Garg (6):
imap-send: fix bug causing cfg->folder being set to NULL
imap-send: add support for OAuth2.0 authentication
imap-send: add PLAIN authentication method to OpenSSL
imap-send: fix memory leak in case auth_cram_md5 fails
imap-send: enable specifying the folder using the command line
imap-send: enable user to choose between libcurl and openssl using the
configDocumentation/config/imap.adoc | 17 +- Documentation/git-imap-send.adoc | 55 +++++- imap-send.c | 277 +++++++++++++++++++++++++++++-- 3 files changed, 326 insertions(+), 23 deletions(-)
-- 2.43.0