]> git.ipfire.org Git - thirdparty/git.git/commit
send-email: enable copying emails to IMAP folder without actually sending them
authorAditya Garg <gargaditya08@live.com>
Wed, 23 Jul 2025 10:33:51 +0000 (16:03 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Aug 2025 18:25:52 +0000 (11:25 -0700)
commit480f67fa3c73dd8e326b09e3542adffa4dd6891d
treee064eb49e286282b553b4aad9d34bd1d35f31c9f
parent560be0632f80c04dcb25936fd50bd8c31eab6af3
send-email: enable copying emails to 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