Thread (12 messages) 12 messages, 2 authors, 2025-08-12

Re: [PATCH v2] send-email: add ability to send a copy of sent emails to an IMAP folder

From: Eric Sunshine <hidden>
Date: 2025-07-21 16:34:40

On Mon, Jul 21, 2025 at 6:05 AM Aditya Garg [off-list ref] wrote:
Some email providers like Apple iCloud Mail do not support sending a copy
of sent emails to the "Sent" folder if SMTP server is used. As a
workaround, various email clients like Thunderbird which rely on SMTP,
use IMAP to send a copy of sent emails to the "Sent" folder. Something
similar can be done if sending emails via `git send-email`, by using
the `git imap-send` command to send a copy of the sent email to an IMAP
folder specified by the user.

Add this functionality to `git send-email` by introducing a new
configuration variable `sendemail.imapfolder` and command line option
`--imap-folder` which specifies the IMAP folder to send a copy of the
sent emails to. If specified, a copy of the sent emails will be sent
by piping the emails to `git imap-send` command, after the all emails are
sent via SMTP and the SMTP server has been closed.
s/the all/all/
quoted hunk ↗ jump to hunk
Signed-off-by: Aditya Garg <redacted>
---
@@ -299,6 +299,18 @@ must be used for each option.
+This feature requires setting up `git imap-send`. See linkgit:git-imap-send[1]
+to get instructions for the same.
Perhaps:

  This feature requires setting up `git imap-send`. See linkgit:git-imap-send[1]
  for instructions.
quoted hunk ↗ jump to hunk
diff --git a/git-send-email.perl b/git-send-email.perl
@@ -73,6 +73,8 @@ sub usage {
+    --imap-folder           <str>  * IMAP folder where a copy of the emails should be sent.
+                                     Make sure `git imap-send` is setup to use this feature.
s/setup/set up/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help