summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-03-02 12:21:43 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-03-02 12:21:43 (GMT)
commit232680a8beeb6a3af38259b4e4467a34971356cf (patch)
treec523ca33b1f79dfd715687440007757f93ae1430 /libexec
parentddd94f239257e1799ee88dcab3927cc93750b4be (diff)
downloadsite-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-xlibexec/filter-github-emails4
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;