diff options
Diffstat (limited to 'libexec/filter-github-emails')
-rwxr-xr-x | libexec/filter-github-emails | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libexec/filter-github-emails b/libexec/filter-github-emails index 38c2168..9b86f7e 100755 --- a/libexec/filter-github-emails +++ b/libexec/filter-github-emails | |||
@@ -157,6 +157,12 @@ sub edit_header { | |||
157 | $header->header_set('To' => $recipient); | 157 | $header->header_set('To' => $recipient); |
158 | $header->header_set('X-MP-Content' => $description); | 158 | $header->header_set('X-MP-Content' => $description); |
159 | 159 | ||
160 | # Strip the [monitoring-plugins] tag. | ||
161 | my $subject = $header->header('Subject'); | ||
162 | $subject =~ s/^\[monitoring-plugins\] //; | ||
163 | $subject =~ s/^Re: \[monitoring-plugins\] /Re: /; | ||
164 | $header->header_set('Subject' => $subject); | ||
165 | |||
160 | return $header; | 166 | return $header; |
161 | } | 167 | } |
162 | 168 | ||