From: Pavel Roskin <proski@gnu.org>
To: Catalin Marinas <catalin.marinas@gmail.com>
Cc: git@vger.kernel.org, Karl Wiberg <kha@treskal.com>,
Alex Chiang <achiang@hp.com>
Subject: Re: [StGit PATCH] mail: Ask for the SMTP credentials before sending the messages
Date: Fri, 12 Feb 2010 17:56:51 -0500 [thread overview]
Message-ID: <1266015411.25535.21.camel@mj> (raw)
In-Reply-To: <20100212161150.12036.62592.stgit@pc1117.cambridge.arm.com>
On Fri, 2010-02-12 at 16:11 +0000, Catalin Marinas wrote:
> The original implementation was asking for the SMTP password on every
> patch sent. This patch only asks the password once before sending or
> even editing the cover message and patches.
I don't have time to investigate at the moment, but "make test" fails in
t1900-mail.sh on the "proposed" branch, which includes this patch:
*** t1900-mail.sh ***
* ok 1: Initialize the StGIT repository
* ok 2: Put all the patches in an mbox
* ok 3: Import the mbox and compare
* FAIL 4: Put all the patches in an mbox with patch attachments
stg mail --to="Inge Ström <inge@example.com>" -a -m \
-t ../../templates/mailattch.tmpl > mbox1
* FAIL 5: Import the mbox containing patch attachments and compare
t1=$(git cat-file -p $(stg id) | grep ^tree)
stg pop -a &&
stg import -M mbox1 &&
t2=$(git cat-file -p $(stg id) | grep ^tree) &&
[ "$t1" = "$t2" ]
* FAIL 6: Check the To:, Cc: and Bcc: headers
stg mail --to=a@a --cc="b@b, c@c" --bcc=d@d $(stg top) -m \
-t ../../templates/patchmail.tmpl > mbox &&
test "$(cat mbox | grep -e "^To:")" = "To: a@a" &&
test "$(cat mbox | grep -e "^Cc:")" = "Cc: b@b, c@c" &&
test "$(cat mbox | grep -e "^Bcc:")" = "Bcc: d@d"
* FAIL 7: Check the --auto option
stg edit --sign &&
stg mail --to=a@a --cc="b@b, c@c" --bcc=d@d --auto $(stg top) -m \
-t ../../templates/patchmail.tmpl > mbox &&
test "$(cat mbox | grep -e "^To:")" = "To: a@a" &&
test "$(cat mbox | grep -e "^Cc:")" = \
"Cc: C O Mitter <committer@example.com>, b@b, c@c" &&
test "$(cat mbox | grep -e "^Bcc:")" = "Bcc: d@d"
* FAIL 8: Check the e-mail address duplicates
stg mail --to="a@a, b b <b@b>" --cc="b@b, c@c" \
--bcc="c@c, d@d, committer@example.com" --auto $(stg top) -m \
-t ../../templates/patchmail.tmpl > mbox &&
test "$(cat mbox | grep -e "^To:")" = "To: b b <b@b>, a@a" &&
test "$(cat mbox | grep -e "^Cc:")" = "Cc: c@c" &&
test "$(cat mbox | grep -e "^Bcc:")" = "Bcc: committer@example.com, d@d"
* failed 5 among 8 test(s)
make[1]: *** [t1900-mail.sh] Error 1
make[1]: Leaving directory `/home/proski/src/stgit/t'
make: *** [test] Error 2
--
Regards,
Pavel Roskin
next prev parent reply other threads:[~2010-02-12 22:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-12 16:11 [StGit PATCH] mail: Ask for the SMTP credentials before sending the messages Catalin Marinas
2010-02-12 22:42 ` Pavel Roskin
2010-02-12 22:56 ` Pavel Roskin [this message]
2010-03-01 15:46 ` Catalin Marinas
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=1266015411.25535.21.camel@mj \
--to=proski@gnu.org \
--cc=achiang@hp.com \
--cc=catalin.marinas@gmail.com \
--cc=git@vger.kernel.org \
--cc=kha@treskal.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).