You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2020/08/27 23:27:53 UTC
[incubator-ponymail] branch master updated: Tidy output (message-id
can have LF)
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git
The following commit(s) were added to refs/heads/master by this push:
new 47189bb Tidy output (message-id can have LF)
47189bb is described below
commit 47189bbcdbc5a2a9e36c5f778704444377820f7c
Author: Sebb <se...@apache.org>
AuthorDate: Fri Aug 28 00:27:43 2020 +0100
Tidy output (message-id can have LF)
---
tools/import-mbox.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index b2246d1..7bc3a4c 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -291,7 +291,7 @@ class SlurpThread(Thread):
jas.append(json_source)
if args.verbose and verbose_logger:
# TODO optionally show other fields (e.g. From_ line)
- verbose_logger.info("MID:%(mid)s MSGID:%(message-id)s" , json)
+ verbose_logger.info("MID:%s MSGID:%s" % (json['mid'], json['message-id'].strip()))
if contents:
if not args.dry:
for key in contents: