[mhonarc] fix bug: no need to check for archivepath, output function already does that



commit 4825135f9709bfd86e19bce150253c1234fa4ae6
Author: Olav Vitters <olav vitters nl>
Date:   Wed Feb 13 18:21:12 2013 +0100

    fix bug: no need to check for archivepath, output function already does that

 archive.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/archive.py b/archive.py
index 9fb2899..8f85171 100755
--- a/archive.py
+++ b/archive.py
@@ -228,7 +228,7 @@ class Archiver:
                 archivepath = self.handle_message(msg, newmsgs, archivepath)
 
             # End of file: output existing newmsgs, if any
-            if newmsgs.tell() and archivepath:
+            if newmsgs.tell():
                 self.output(newmsgs, archivepath)
 
         # If archivepath is set, likely a message has been archived


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]