From: W. Trevor King Date: Sun, 2 Sep 2012 13:03:33 +0000 (-0400) Subject: pg.py: default to continue_after_invalid_message=True when calling mailpipe. X-Git-Tag: v0.3~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ea43a771f4ed10d1c96e65d44939f1083c9e9114;p=pygrader.git 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`. --- 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