about summary refs log tree commit homepage
path: root/script/public-inbox-learn
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-05-30 02:10:36 +0000
committerEric Wong <e@80x24.org>2016-05-30 02:14:21 +0000
commit1cf14fe543ad6259003cdd1995a1c83a7a70b535 (patch)
treef64b3ba37623c9eceeb083df71182ffaef22663a /script/public-inbox-learn
parentfbcb7de93884b7915ea17906d112e1e8cb0dd490 (diff)
downloadpublic-inbox-1cf14fe543ad6259003cdd1995a1c83a7a70b535.tar.gz
User input is imperfect, do not pollute our mail logs with
warnings we cannot fix.  This is documented in the
Email::MIME::ContentType manpage so it should remain supported.
Diffstat (limited to 'script/public-inbox-learn')
-rwxr-xr-xscript/public-inbox-learn2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/public-inbox-learn b/script/public-inbox-learn
index c79f2479..bfbf0233 100755
--- a/script/public-inbox-learn
+++ b/script/public-inbox-learn
@@ -11,6 +11,8 @@ use PublicInbox::Config;
 use PublicInbox::Git;
 use PublicInbox::Import;
 use Email::MIME;
+use Email::MIME::ContentType;
+$Email::MIME::ContentType::STRICT_PARAMS = 0; # user input is imperfect
 use PublicInbox::Address;
 use IPC::Run qw/run/;
 my $train = shift or die "usage: $usage\n";