diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-03-02 12:21:43 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-03-02 12:21:43 (GMT) |
commit | 232680a8beeb6a3af38259b4e4467a34971356cf (patch) | |
tree | c523ca33b1f79dfd715687440007757f93ae1430 /libexec | |
parent | ddd94f239257e1799ee88dcab3927cc93750b4be (diff) | |
download | site-232680a8beeb6a3af38259b4e4467a34971356cf.tar.gz |
filter-github-emails: Don't create empty subject
This shouldn't happen in practice[tm], but if we receive the header
line "Subject: [monitoring-plugins] ", then we won't touch it anymore.
Diffstat (limited to 'libexec')
-rwxr-xr-x | libexec/filter-github-emails | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/filter-github-emails b/libexec/filter-github-emails index 326495d..5abf1b0 100755 --- a/libexec/filter-github-emails +++ b/libexec/filter-github-emails | |||
@@ -172,8 +172,8 @@ sub edit_header { | |||
172 | 172 | ||
173 | # Strip the [monitoring-plugins] tag. | 173 | # Strip the [monitoring-plugins] tag. |
174 | my $subject = $header->header('Subject'); | 174 | my $subject = $header->header('Subject'); |
175 | $subject =~ s/^\[monitoring-plugins\] //; | 175 | $subject =~ s/^\[monitoring-plugins\] (.+)/$1/; |
176 | $subject =~ s/^Re: \[monitoring-plugins\] /Re: /; | 176 | $subject =~ s/^Re: \[monitoring-plugins\] (.+)/Re: $1/; |
177 | $header->header_set('Subject' => $subject); | 177 | $header->header_set('Subject' => $subject); |
178 | 178 | ||
179 | return $header; | 179 | return $header; |