diff options
author | justdave%syndicomm.com <> | 2001-04-08 01:36:45 +0200 |
---|---|---|
committer | justdave%syndicomm.com <> | 2001-04-08 01:36:45 +0200 |
commit | d041005e48ba7a02432b792a4861567d58bd2b2f (patch) | |
tree | c81c7503bfcf614d4b6f290ccc2bc08c54b4162d /processmail | |
parent | d8a6bd5269a854434f72a3a497eceaf4198a1c1c (diff) | |
download | bugzilla-d041005e48ba7a02432b792a4861567d58bd2b2f.tar.gz bugzilla-d041005e48ba7a02432b792a4861567d58bd2b2f.tar.xz |
Fix for bug 71912: changes email pref for "If I'm removed from that capacity" to "If I'm added to or removed from that capacity", so you can still get mail when someone adds you to a CC. Patch by <jake@acutex.net> r= justdave
Diffstat (limited to 'processmail')
-rwxr-xr-x | processmail | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/processmail b/processmail index c9e006d4e..6dc376879 100755 --- a/processmail +++ b/processmail @@ -679,6 +679,21 @@ sub getEmailAttributes ($@) { } elsif ( $fieldName eq 'CC') { push (@flags, 'CC'); } + + # These next few lines are for finding out who's been added + # to the Owner, QA, CC, etc. fields. It does not effect + # the @flags array at all, but is run here because it does + # effect filtering later and we're already in the loop. + if ($fieldName eq 'Owner') { + push (@{$force{'Owner'}}, $new); + } elsif ($fieldName eq 'QAContact') { + push (@{$force{'QAContact'}}, $new); + } elsif ($fieldName eq 'CC') { + my @oldVal = split (/,/, $old); + my @newVal = split (/,/, $new); + my @added = filterExcludeList(\@newVal, \@oldVal); + push (@{$force{'CClist'}}, @added); + } } if ( $commentField =~ /Created an attachment \(/ ) { @@ -831,8 +846,12 @@ sub filterEmailGroup ($$$) { pop(@filteredList); } - # check to see if the person was removed from this email - # group. + # check to see if the person was added to or removed from + # this email group. + # Note: This was originally written as only removed from + # and was rewritten to be Added/Removed, but for simplicity + # sake, the name "Removeme" wasn't changed. + # http://bugzilla.mozilla.org/show_bug.cgi?id=71912 if ( grep ($_ eq $person, @{$force{$emailGroup}} ) ) { |