You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/10 13:02:15 UTC

[incubator-ponymail-foal] 04/04: note what we imported it as

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 5bf34d083756303ec45f73afae08e0d655966c8f
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Thu Sep 10 15:02:01 2020 +0200

    note what we imported it as
---
 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 4bdab7b..02ccf55 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -312,7 +312,7 @@ class SlurpThread(Thread):
 
                     # Mark that we imported this email
                     json["notes"] = [x for x in json["notes"] if "ARCHIVE:" not in x]  # Pop archiver.py note
-                    json["notes"].append(["IMPORT: Email imported at %u" % time.time()])
+                    json["notes"].append(["IMPORT: Email imported as %s at %u" % (json["mid"], time.time())])
 
                     try:  # temporary hack to try and find an encoding issue
                         # needs to be replaced by proper exception handling