From: Junio C Hamano <gitster@pobox.com>
To: Aditya Garg <gargaditya08@live.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>,
Eric Sunshine <sunshine@sunshineco.com>,
Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>,
Ben Knoble <ben.knoble@gmail.com>,
"brian m. carlson" <sandals@crustytoothpaste.net>
Subject: Re: [PATCH v2] send-email: add ability to send a copy of sent emails to an IMAP folder
Date: Mon, 21 Jul 2025 22:09:01 -0700 [thread overview]
Message-ID: <xmqq4iv4x15e.fsf@gitster.g> (raw)
In-Reply-To: <PN3PR01MB95976A7BE0F9A54E836FA2F5B85CA@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM> (Aditya Garg's message of "Tue, 22 Jul 2025 09:07:26 +0530")
Aditya Garg <gargaditya08@live.com> writes:
> Or maybe you mean, ONLY send via imap and don't use SMTP? Like
> this users can use their email clients to send emails?
Exactly. You sold this feature as "have send-email send the
message, and keep an extra copy you sent in your Sent imap folder".
I pointed out that "have send-email do everything it would normally
do before it talks to MSA or talk SMTP to send messages out, and
instead drive imap-send to store these messages in a folder like
imap-send users have used the program so far---as the user will send
the messages out of their draft folder as was traditionally done by
any imap-send users, send-email will *not* send anything out itself"
as a possible different way send-email may want to use imap-send.
These are two very different use cases. We could organize things
this way:
A1. When imap-folder is specified, that IMAP folder will get an extra
copy, in addition to what send-email sends out;
A2. When yet another new option, --send-email-no-send, is
specified, send-email would not send any messages out. Even
when this option is in effect, if --imap-folder is specified,
that IMAP folder will get an extra copy, in addition to what
send-email would send out (which is nothing).
Or alternatively, we can have two very different operation modes
that both involve imap-send:
B1. When --imap-sent-folder is specified, that IMAP folder will get
an extra copy, in addition to what send-email sent out via its
usual route (like by invoking MSA or talking SMTP)
B2. When --imap-outgo-folder is specified, that IMAP folder will
get the outgo copy, later to be sent by the user (just like a
user of imap-send would usually use), and send-email would not
send out anything by its usual route.
I thought the latter would be easier to explain to end-users, which
is why "sent" or "fcc" or something like that should be in the name
of the option when operating in the mode the patch implements.
This brings up a yet another possibility. Invoking imap-send can be
a new third way send-email uses to send out the messages, in addition
to existing (1) invoking a local "/usr/lib/sendmail" program, or (2)
talking SMTP to smarthost. That would be very easy to explain the
operating mode B2 to users of send-email or users of imap-send, but
it would be a bit awkward to find where B1 conceptually fits.
next prev parent reply other threads:[~2025-07-22 5:09 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-20 9:25 [PATCH] send-email: add ability to send a copy of sent emails to an IMAP folder Aditya Garg
2025-07-21 10:05 ` [PATCH v2] " Aditya Garg
2025-07-21 16:34 ` Eric Sunshine
2025-07-23 9:48 ` Aditya Garg
2025-07-21 19:13 ` Junio C Hamano
2025-07-22 0:19 ` brian m. carlson
2025-07-22 3:40 ` Aditya Garg
2025-07-22 3:37 ` Aditya Garg
2025-07-22 5:09 ` Junio C Hamano [this message]
2025-07-22 6:14 ` Aditya Garg
2025-07-22 11:24 ` Aditya Garg
2025-07-22 15:36 ` Junio C Hamano
2025-07-22 16:31 ` Aditya Garg
2025-07-22 16:36 ` Aditya Garg
2025-07-22 17:23 ` Junio C Hamano
2025-07-22 17:26 ` Aditya Garg
2025-07-22 13:24 ` Junio C Hamano
2025-07-22 13:26 ` Aditya Garg
2025-07-22 11:14 ` [PATCH v3] " Aditya Garg
2025-07-23 9:05 ` Aditya Garg
2025-07-23 10:33 ` [PATCH v4 0/2] send-email: integrate with git imap-send Aditya Garg
2025-07-23 10:33 ` [PATCH v4 1/2] send-email: add ability to send a copy of sent emails to an IMAP folder Aditya Garg
2025-07-23 10:33 ` [PATCH v4 2/2] send-email: enable copying emails to IMAP folder without actually sending them Aditya Garg
2025-08-11 21:52 ` Junio C Hamano
2025-08-12 5:08 ` Aditya Garg
2025-08-12 6:27 ` Aditya Garg
2025-08-12 14:15 ` Junio C Hamano
2025-08-12 6:51 ` Aditya Garg
2025-08-12 6:44 ` [PATCH v5 0/2] send-email: integrate with git imap-send Aditya Garg
2025-08-12 6:44 ` [PATCH v5 1/2] send-email: add ability to send a copy of sent emails to an IMAP folder Aditya Garg
2025-08-12 6:44 ` [PATCH v5 2/2] send-email: enable copying emails to an IMAP folder without actually sending them Aditya Garg
2025-08-12 16:00 ` [PATCH v5 0/2] send-email: integrate with git imap-send Junio C Hamano
2025-08-15 3:38 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqq4iv4x15e.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=ben.knoble@gmail.com \
--cc=gargaditya08@live.com \
--cc=git@vger.kernel.org \
--cc=kristofferhaugsbakk@fastmail.com \
--cc=sandals@crustytoothpaste.net \
--cc=sunshine@sunshineco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).