ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: Fix indentation
Date Mon, 07 Nov 2016 02:23:48 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master bade1677e -> 28de320f6


Fix indentation

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/28de320f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/28de320f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/28de320f

Branch: refs/heads/master
Commit: 28de320f61fa6f057f720816930bb9874c72c924
Parents: bade167
Author: Sebb <sebb@apache.org>
Authored: Mon Nov 7 02:23:30 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Mon Nov 7 02:23:30 2016 +0000

----------------------------------------------------------------------
 tools/archiver.py    |  4 ++--
 tools/import-mbox.py | 14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/28de320f/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index 18ac3d2..fc6b1af 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -144,8 +144,8 @@ class Archiver(object):
         global config, auth
         self.html = parseHTML
         if parseHTML:
-           import html2text
-           self.html2text = html2text.html2text
+            import html2text
+            self.html2text = html2text.html2text
         self.dbname = config.get("elasticsearch", "dbname")
         ssl = config.get("elasticsearch", "ssl", fallback="false").lower() == 'true'
         self.consistency = config.get('elasticsearch', 'write', fallback='quorum')

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/28de320f/tools/import-mbox.py
----------------------------------------------------------------------
diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 7ccdcea..0a19f62 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -555,13 +555,13 @@ elif re.match(r"imaps?://", source):
                 if match:
                     uid = match.group(1)
                 else:
-                     match = mid_re.match(line)
-                     if match:
-                         try:
-                             mail[match.group(1).decode('utf-8')] = uid
-                             uid = None
-                         except ValueError:
-                             pass
+                    match = mid_re.match(line)
+                    if match:
+                        try:
+                            mail[match.group(1).decode('utf-8')] = uid
+                            uid = None
+                        except ValueError:
+                            pass
 
     # delete items from elasticsearch that are not present in imap
 


Mime
View raw message