diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-03-04 20:58:40 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-03-04 20:58:40 +0100 |
commit | 63f7a24696ea77bad957d8e634ae908d58966c91 (patch) | |
tree | 1e951205f366ff0adc60deca6989b35dd35cea10 | |
parent | 228efc00a3f7ed9329af9de9f5b9fe73f2633764 (diff) | |
download | imap-folder-training-63f7a24696ea77bad957d8e634ae908d58966c91.tar.gz |
Make a report about action, only where there is some action. :)
-rwxr-xr-x | train_dspam_from_folder | 3 |
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 |