summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-04 20:58:40 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-04 20:58:40 +0100
commit63f7a24696ea77bad957d8e634ae908d58966c91 (patch)
tree1e951205f366ff0adc60deca6989b35dd35cea10
parent228efc00a3f7ed9329af9de9f5b9fe73f2633764 (diff)
downloadimap-folder-training-63f7a24696ea77bad957d8e634ae908d58966c91.tar.gz
Make a report about action, only where there is some action. :)
-rwxr-xr-xtrain_dspam_from_folder3
1 files changed, 2 insertions, 1 deletions
diff --git a/train_dspam_from_folder b/train_dspam_from_folder
index 06eb0af..2aed4b7 100755
--- a/train_dspam_from_folder
+++ b/train_dspam_from_folder
@@ -36,4 +36,5 @@ for msgId in messages:
client.expunge()
client.close()
client.logout()
-print "Processed %d spam messages." % processedCounter
+if processedCounter > 0:
+ print "Processed %d spam messages." % processedCounter