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 2022/01/30 13:14:39 UTC
[incubator-ponymail-foal] branch master updated: source property 'permalinks' is never used
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 52608d1 source property 'permalinks' is never used
52608d1 is described below
commit 52608d1ebcacea1089b723467885e486850b727f
Author: Sebb <se...@apache.org>
AuthorDate: Sun Jan 30 13:14:26 2022 +0000
source property 'permalinks' is never used
This fixes #225
---
tools/archiver.py | 1 -
tools/import-mbox.py | 1 -
tools/mappings.yaml | 2 --
3 files changed, 4 deletions(-)
diff --git a/tools/archiver.py b/tools/archiver.py
index f012ea3..85d71e6 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -725,7 +725,6 @@ class Archiver(object): # N.B. Also used by import-mbox.py
id=ojson["dbid"],
body={
"message-id": msg_metadata["message-id"],
- "permalinks": [ojson["mid"]], # TODO: is this correct?
"source": mbox_source(raw_message),
},
)
diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index a31a6df..cca79ce 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -393,7 +393,6 @@ class SlurpThread(Thread):
try: # temporary hack to try and find an encoding issue
# needs to be replaced by proper exception handling
json_source = {
- "permalinks": json["permalinks"],
"mid": json["dbid"], # this is only needed for bulk_insert to set up the _id
"message-id": json["message-id"],
"source": archiver.mbox_source(message_raw),
diff --git a/tools/mappings.yaml b/tools/mappings.yaml
index bdad108..4cd9538 100644
--- a/tools/mappings.yaml
+++ b/tools/mappings.yaml
@@ -155,8 +155,6 @@ source:
type: boolean
message-id:
type: keyword
- permalinks:
- type: keyword
source:
type: binary
auditlog: