git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [StGit PATCH] mail: Ask for the SMTP credentials before sending the messages

From
PRPavel Roskin <proski@gnu.org>
Date
Feb 12, 2010, 22:56 UTC
Message-ID
<1266015411.25535.21.camel@mj>
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
Previous: Pavel RoskinNext: Catalin Marinas
Message 3 of 4 in “mail: Ask for the SMTP credentials before sending the messages”
  1. mail: Ask for the SMTP credentials before sending the messagesCatalin Marinas, Feb 12, 2010
  2. Pavel RoskinFeb 12, 2010
  3. Pavel RoskinFeb 12, 2010
  4. Catalin MarinasMar 1, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.