]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
email-test-patchset: fix pcfg_reply_to_all
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 13 Feb 2014 22:28:19 +0000 (14:28 -0800)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 14 Feb 2014 13:21:48 +0000 (15:21 +0200)
Through the course of several refactors, one of the patches
accidentallly broke reply_to_all functionality. In the older code, we
did a negative check, and if reply_to_all was not set, we would then
unset $to in order to prevent the compose_email function/code from
adding any Cc addresses.

However, one of the refactors missed this negative check, assumed it was
positive, and then changed the semantics so that reply_to_all = 0
caused reply behavior rather than otherwise.

This patch corrects the given commit by making it check for 1, instead
of not 1.

Artem: amend an weird comment while on it

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Fixes: 092f2ca246 "(email-test-patchset: further improve readability)"
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
email/aiaiai-email-test-patchset

index beb3e9649452b03b43ebd359e7e24298f80d039a..0028d3e68eac0c1d12486e70106453c414b7a518 100755 (executable)
@@ -320,8 +320,8 @@ if [ -z "$pcfg_name" ]; then
 fi
 
 # Create the Cc list for replies that we'll be sending
-if [ "$pcfg_reply_to_all" != "1" ]; then
-       # Replies all the patch recipients will be CCed
+if [ "$pcfg_reply_to_all" = "1" ]; then
+       # All the patch recipients will be CCed
        reply_cc="$(merge_addresses "$to" "$cc")"
        reply_cc="$(merge_addresses "$reply_cc" "$pcfg_always_cc")"
        reply_cc=$(strip_address "$reply_cc" "$cfg_ownmail")