about summary refs log tree commit homepage
path: root/script
diff options
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
parentfbcb7de93884b7915ea17906d112e1e8cb0dd490 (diff)
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')
2 files changed, 4 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";
diff --git a/script/public-inbox-mda b/script/public-inbox-mda
index 6ac0e8c4..bb78c4e6 100755
--- a/script/public-inbox-mda
+++ b/script/public-inbox-mda
@@ -9,6 +9,8 @@ my $usage = 'public-inbox-mda < rfc2822_message';
 use Email::Filter;
 use Email::MIME;
+use Email::MIME::ContentType;
+$Email::MIME::ContentType::STRICT_PARAMS = 0; # user input is imperfect
 use File::Path::Expand qw/expand_filename/;
 use IPC::Run qw(run);
 use PublicInbox::MDA;