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


The following commit(s) were added to refs/heads/master by this push:
     new efdc4c4  this should be _doc for ES 7+
efdc4c4 is described below

commit efdc4c4a48b75d3f74d506264bb947c49aabada2
Author: Daniel Gruno <[email protected]>
AuthorDate: Tue Aug 18 11:27:38 2020 +0200

    this should be _doc for ES 7+
---
 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 f1e2a3a..54fee71 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -760,7 +760,7 @@ elif re.match(r"imaps?://", source):
                 {
                     "_op_type": "delete",
                     "_index": es.db_mbox,
-                    "_type": "mbox",
+                    "_type": "_doc",
                     "_id": _id,
                 }
             )

Reply via email to