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

Re: [PATCH] post-receive-email: ensure sent messages are not empty

From
KFKevin P. Fleming <kpfleming@digium.com>
Date
Sep 7, 2010, 19:04 UTC
Message-ID
<4C868CBF.6040903@digium.com>
In-Reply-To
<1283886126-4005-1-git-send-email-kpfleming@digium.com>
On 09/07/2010 02:02 PM, Kevin P. Fleming wrote:
Show 8 quoted lines
> 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
Message 1 of 1 in “Re: [PATCH] post-receive-email: ensure sent messages are not empty”
  1. Kevin P. FlemingSep 7, 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.