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-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 544c9c3 Timestamps hinder comparisons
544c9c3 is described below
commit 544c9c373b201c5417baefc111961448256e0459
Author: Sebb <[email protected]>
AuthorDate: Sat Nov 27 18:00:51 2021 +0000
Timestamps hinder comparisons
---
tools/import-mbox.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index dcf2bc5..51f0dde 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -380,6 +380,9 @@ class SlurpThread(Thread):
if args.dry:
if dumpfile:
import json as JSON
+ # drop fields with timestamps
+ del(json['_notes'])
+ del(json['_archived_at'])
JSON.dump(json, dumpfile, indent=2,
sort_keys=True, ensure_ascii=False)
dumpfile.write(",\n")
continue