From 847519d6ceafa0a484fa68dccfa783b0f6262668 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 23 Feb 2022 21:53:37 +0200
Subject: [PATCH] Avoid rescanning unchanged mailboxes.

In the SpamAssassin learn script, avoid going over mailboxes that
haven't changed in 2 days (the learn job runs daily so it should cover
failures as well).
---
 spamd/spamd-learn | 1 +
 1 file changed, 1 insertion(+)

diff --git a/spamd/spamd-learn b/spamd/spamd-learn
index f8c9353..381deb6 100755
--- a/spamd/spamd-learn
+++ b/spamd/spamd-learn
@@ -8,6 +8,7 @@ do
     find "$user" \
         -maxdepth 1 \
         -type f \
+        -mtime -2 \
         \! -name Junk \
         \! -name Inbox \
         \! -name Sent \
-- 
GitLab