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 2016/11/08 20:02:02 UTC

incubator-ponymail git commit: Written, but never read

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 5294554ab -> 7d2e52775


Written, but never read

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

Branch: refs/heads/master
Commit: 7d2e52775d14a9b4f4a78326d1a3a63de60d9f0a
Parents: 5294554
Author: Sebb <se...@apache.org>
Authored: Tue Nov 8 20:01:51 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Tue Nov 8 20:01:51 2016 +0000

----------------------------------------------------------------------
 tools/import-mbox.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/7d2e5277/tools/import-mbox.py
----------------------------------------------------------------------
diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 1aa5156..43feb71 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -53,7 +53,7 @@ lists = [] # N.B. the entries in this list depend on the import type:
 # modMbox: [list-id, mbox]
 # piperMail: [filename, list-id]
 # imap(s): [uids, listname, imap4]
-# other: [filename, list-override[
+# other: [filename, list-override]
 start = time.time()
 quickmode = False
 private = False
@@ -147,7 +147,6 @@ class SlurpThread(Thread):
         ml = ""
         mboxfile = ""
         filename = ""
-        xlist_override = None
 
         archie = archiver.Archiver(parseHTML = parseHTML)
     
@@ -179,12 +178,10 @@ class SlurpThread(Thread):
                         msgbytes = imap4.uid('fetch', uid, '(RFC822)')[1][0][1]
                         yield email.message_from_bytes(msgbytes)
                 messages = mailgen(mla[0])
-                xlist_override = mla[1]
             elif filebased:
                 
                 tmpname = mla[0]
                 filename = mla[0]
-                xlist_override = mla[1]
                 if filename.find(".gz") != -1:
                     print("Decompressing %s..." % filename)
                     try:
@@ -208,7 +205,6 @@ class SlurpThread(Thread):
             else:
                 ml = mla[0]
                 mboxfile = mla[1]
-                xlist_override = list_override
                 print("Slurping %s/%s" % (ml, mboxfile))
                 m = re.match(r"(\d\d\d\d)(\d\d)", mboxfile)
                 EY = 1997