[mhonarc] fix bug: process last message in mbox as well
- From: Olav Vitters <ovitters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mhonarc] fix bug: process last message in mbox as well
- Date: Wed, 13 Feb 2013 17:17:12 +0000 (UTC)
commit ea3401b63f523d36442abadccd4da04ccd3634ce
Author: Olav Vitters <olav vitters nl>
Date: Wed Feb 13 18:17:08 2013 +0100
fix bug: process last message in mbox as well
archive.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/archive.py b/archive.py
index 843b325..9fb2899 100755
--- a/archive.py
+++ b/archive.py
@@ -227,6 +227,10 @@ class Archiver:
if msg.tell():
archivepath = self.handle_message(msg, newmsgs, archivepath)
+ # End of file: output existing newmsgs, if any
+ if newmsgs.tell() and archivepath:
+ self.output(newmsgs, archivepath)
+
# If archivepath is set, likely a message has been archived
# in which case the index has to be updated
if archivepath:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]