]> git.ipfire.org Git - thirdparty/git.git/commit
send-email: enable copying emails to an IMAP folder without actually sending them
authorAditya Garg <gargaditya08@live.com>
Tue, 12 Aug 2025 06:44:36 +0000 (06:44 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Aug 2025 15:59:36 +0000 (08:59 -0700)
commitf33b2207da792b45354e9af8948745a169f75651
tree1ed6d434b1a42bfda69246ad36e000ad180068eb
parent04133f5bc4f3dc7c847f4ba50e02486bcc117d94
send-email: enable copying emails to an IMAP folder without actually sending them

`git imap-send` was built on the idea of copying emails to an IMAP folder
like drafts, and sending them later using an email client. Currently
the only way to do it is by piping output of `git format-patch` to IMAP
send.

Add another way to do it by using `git send-email` with the
`--use-imap-only` or `sendmail.useImapOnly` option. This allows users to
use the advanced features of `git send-email` like tweaking Cc: list
programmatically, compose the cover letter, etc. and then send the well
formatted emails to an IMAP folder using `git imap-send`.

While at it, use `` instead of '' for --smtp-encryption ssl in help
section of `git send-email`.

Signed-off-by: Aditya Garg <gargaditya08@live.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/sendemail.adoc
Documentation/git-send-email.adoc
git-send-email.perl