git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Kevin P. Fleming" <kpfleming@digium.com>
To: "Kevin P. Fleming" <kpfleming@digium.com>
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [PATCH] post-receive-email: ensure sent messages are not empty
Date: Tue, 07 Sep 2010 14:04:31 -0500	[thread overview]
Message-ID: <4C868CBF.6040903@digium.com> (raw)
In-Reply-To: <1283886126-4005-1-git-send-email-kpfleming@digium.com>

On 09/07/2010 02:02 PM, Kevin P. Fleming wrote:
> Changes the logic in the script to determine whether an email message
> will be sent before invoking the send_mail() function; otherwise, if
> the logic determines that a message will not be sent, send_mail() will
> cause an empty email to be sent. In addition, ensures that if multiple
> refs are updated and a message cannot be sent for one of them,
> the others are still processed normally.
> 
> Signed-off-by: Kevin P. Fleming <kpfleming@digium.com>

Just bringing this one back to the list again, since Junio's preparing
for a freeze for 1.7.3. Allowing post-receive-email to generate an empty
email message can be quite problematic, depending on the MTA in use on
the system where the script is run... in our case, it caused the MTA to
generate bounce messages which were then delivered to the admin of our
corporate MTA, who had no clue what was causing them since they had no
content.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kfleming@digium.com
Check us out at www.digium.com & www.asterisk.org

       reply	other threads:[~2010-09-07 19:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1283886126-4005-1-git-send-email-kpfleming@digium.com>
2010-09-07 19:04 ` Kevin P. Fleming [this message]
2010-09-10 16:09 [PATCH] post-receive-email: ensure sent messages are not empty Kevin P. Fleming
  -- strict thread matches above, loose matches on Subject: below --
2010-08-02 20:28 Kevin P. Fleming
2010-08-02 22:00 ` Junio C Hamano
2010-08-02 22:17   ` Kevin P. Fleming

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=4C868CBF.6040903@digium.com \
    --to=kpfleming@digium.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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).