Re: [PATCH v2] send-email: add ability to send a copy of sent emails to an IMAP folder
From: Aditya Garg <hidden>
Date: 2025-07-23 09:48:51
On 21/07/25 10:04 pm, Eric Sunshine wrote:
On Mon, Jul 21, 2025 at 6:05 AM Aditya Garg [off-list ref] wrote:quoted
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
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
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/
Will apply these suggestions in v4. BTW Eric, is it the issue with Outlook marking your emails as spam everytime inspite of adding you to safe senders list, or something is wrong with your domain config?