diff options
author | Eric Wong <e@80x24.org> | 2015-08-25 09:04:50 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-25 09:06:02 +0000 |
commit | b17c9c9944a28bc00b83b9d5aa841f514e4abfd6 (patch) | |
tree | b0e67831d02a2e8d5e05cc2865e43fae5c2fad38 /lib | |
parent | 72c0f7c71ff28de9755dc4aee8b6ce6f0e4f2ed7 (diff) | |
download | public-inbox-b17c9c9944a28bc00b83b9d5aa841f514e4abfd6.tar.gz |
part_type still contains the filename, unfortunately, so PGP signatures were truly stripped. Oh well, nobody cares to verify PGP signatures anyways.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/Filter.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Filter.pm b/lib/PublicInbox/Filter.pm index 49ba5cb2..bcc57c45 100644 --- a/lib/PublicInbox/Filter.pm +++ b/lib/PublicInbox/Filter.pm @@ -144,7 +144,7 @@ sub strip_multipart { push @keep, $part; } elsif ($part_type eq '' || - $part_type =~ m!\Aapplication/octet-stream\z!i) { + $part_type =~ m!\bapplication/octet-stream\b!i) { # unfortunately, some mailers don't set correct types, # let messages of unknown type through but do not # change the sender-specified type @@ -153,7 +153,7 @@ sub strip_multipart { } else { $rejected++; } - } elsif ($part_type =~ m!\Aapplication/pgp-signature\z!i) { + } elsif ($part_type =~ m!\bapplication/pgp-signature\b!i) { # PGP signatures are not huge, we may keep them. # They can only be valid if it's the last element, # so we keep them iff the message is unmodified: |