From ea43a771f4ed10d1c96e65d44939f1083c9e9114 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 2 Sep 2012 09:03:33 -0400 Subject: [PATCH] pg.py: default to continue_after_invalid_message=True when calling mailpipe. This lets us process a whole mailbox without dying on every invalid message. Consider an unfiltered, general-purpose mailbox with lots of unrelated emails, which can be successfully parsed with `continue_after_invalid_message`. --- bin/pg.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/pg.py b/bin/pg.py index 077b3e3..edfe016 100755 --- a/bin/pg.py +++ b/bin/pg.py @@ -210,6 +210,9 @@ if __name__ == '__main__': if hasattr(args, attr): kwargs[attr] = getattr(args, attr) + if args.func == _mailpipe: + kwargs['continue_after_invalid_message'] = True + if 'use_color' in func_args: kwargs['use_color'] = args.color -- 2.26.2