You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ponymail.apache.org by GitBox <gi...@apache.org> on 2021/10/31 11:13:15 UTC

[GitHub] [incubator-ponymail-foal] sebbASF commented on a change in pull request #119: Fix bug causing dedup to fail when importing mailboxes

sebbASF commented on a change in pull request #119:
URL: https://github.com/apache/incubator-ponymail-foal/pull/119#discussion_r739794810



##########
File path: tools/import-mbox.py
##########
@@ -327,7 +327,7 @@ def mailgen(_list):
                             }
                         },
                     )
-                    if res and res["hits"]["total"] > 0:
+                    if res and len(res["hits"]["total"]) > 0:

Review comment:
       Not sure the fix is correct: res["hits"]["total"] is a number, not an array.
   
   What is the error message?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ponymail.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org