commit c890f5afe28d703dc0358aaf29debc22d1869657 Author: Lunar lunar@torproject.org Date: Sun Nov 2 15:50:34 2014 +0100
train-spam-filters: do perform deletions --- train-spam-filters/train_spam_filters | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/train-spam-filters/train_spam_filters b/train-spam-filters/train_spam_filters index c8f64dc..b2f89fe 100755 --- a/train-spam-filters/train_spam_filters +++ b/train-spam-filters/train_spam_filters @@ -82,7 +82,7 @@ def handle_message(path): msg_id = msg['Message-Id'] if not msg_id.startswith('<') or not msg_id.endswith('>'): log("%s: bad Message-Id, removing." % path) - print("os.unlink(" + path) + os.unlink(path) return msg_id = msg_id[1:-1] if is_ham(msg_id): @@ -97,7 +97,7 @@ def handle_message(path): limit = datetime.now() - timedelta(days=KEEP_FOR_MAX_DAYS) if mtime <= limit: log("%s: too old, removing." % path) - print("os.unlink(" + path) + os.unlink(path) return # well, it's not identified ham, not identified spam, and not too old # let's keep the message for now
tor-commits@lists.torproject.org