]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parsemail.sh: Always return a zero exit status
authorJeremy Kerr <jk@ozlabs.org>
Sun, 27 Mar 2016 04:53:03 +0000 (12:53 +0800)
committerStephen Finucane <stephen.finucane@intel.com>
Tue, 29 Mar 2016 08:54:09 +0000 (09:54 +0100)
commit0984b831c420a8a9836258918c47c9aa5e575fba
treec7720ef3d73ffb2f4311b4d5f95d12fa5a464fec
parent1b0c43ffa1a69e15eab557cfff1670c3183805d9
parsemail.sh: Always return a zero exit status

This reverts changes to parsemail.sh introduced by
cbe992d84fba57831d44afb3a21cdf83454018b2.

When parsemail is used as a delivery command from a mail server like
postfix (as it is intended to be), a non-zero exit code will cause a
bounce message to be returned to the user. From the postfix manual:

  When  the  command  fails, a limited amount of command output is
  mailed back to the  sender.   The  file  /usr/include/sysexits.h
  defines  the expected exit status codes.

For cases where patchwork is unavailable, we absolutely do not want to
start bouncing messages to all patch contributors.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Acked-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/bin/parsemail.sh