On Mon, Jul 21, 2025 at 6:05 AM Aditya Garg <gargaditya08@xxxxxxxx> 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/ > Signed-off-by: Aditya Garg <gargaditya08@xxxxxxxx> > --- > @@ -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. > 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/