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 2021/09/27 13:42:59 UTC

[incubator-ponymail-foal] branch master updated: Fix mapping name instead, to avoid test fail

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 a2a664f  Fix mapping name instead, to avoid test fail
a2a664f is described below

commit a2a664f5faee64689cae9be96a59597e0ce701e5
Author: Sebb <se...@apache.org>
AuthorDate: Mon Sep 27 14:42:51 2021 +0100

    Fix mapping name instead, to avoid test fail
---
 tools/archiver.py   | 2 +-
 tools/mappings.yaml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/archiver.py b/tools/archiver.py
index 40b6a4b..0858381 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -604,7 +604,7 @@ class Archiver(object):  # N.B. Also used by import-mbox.py
                 "references": msg_metadata["references"],
                 "in-reply-to": irt,
                 "body": body.unflow() if body else "",
-                "html_as_source": body and body.html_as_source or False,
+                "html_source_only": body and body.html_as_source or False,
                 "attachments": attachments,
                 "forum": (lid or "").strip("<>").replace(".", "@", 1),
                 "size": len(raw_msg),
diff --git a/tools/mappings.yaml b/tools/mappings.yaml
index fd3d299..4bb4978 100644
--- a/tools/mappings.yaml
+++ b/tools/mappings.yaml
@@ -73,7 +73,7 @@ mbox:
       type: keyword
     gravatar:
       type: text
-    html_as_source:
+    html_source_only:
       type: boolean
     in-reply-to:
       type: keyword