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/08/15 06:15:50 UTC

[incubator-ponymail] branch master updated: Fix typo in HTML extraction

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.git


The following commit(s) were added to refs/heads/master by this push:
     new 47cc03b  Fix typo in HTML extraction
47cc03b is described below

commit 47cc03bb6e783e94b7ec37c625d54a9960483ed1
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sat Aug 15 08:15:44 2020 +0200

    Fix typo in HTML extraction
---
 tools/archiver.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/archiver.py b/tools/archiver.py
index a43b168..fa052b4 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -251,7 +251,7 @@ class Archiver(object): # N.B. Also used by import-mbox.py
                 if not body and part.get_content_type() == 'text/enriched':
                     body = part.get_payload(decode=True)
                 elif self.html and not firstHTML and part.get_content_type() == 'text/html':
-                    first_html = part.get_payload(decode=True)
+                    firstHTML = part.get_payload(decode=True)
             except Exception as err:
                 print(err)