summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalrmstaleaccounts2
1 files changed, 1 insertions, 1 deletions
diff --git a/localrmstaleaccounts b/localrmstaleaccounts
index a726c6b..88efd28 100755
--- a/localrmstaleaccounts
+++ b/localrmstaleaccounts
@@ -75,7 +75,7 @@ for user in "$@"; do
warn "Skipping user $user: target in /etc/aliases"
elif find -- /var/lib/radicale/collections/collection-root -maxdepth 1 -type d -name "$user" -not -empty | grep -q '^'; then
warn "Skipping user $user: Uses Radicale"
- elif doveadm search -u "$user" MAILBOX INBOX SAVEDBEFORE 52weeks NEW | grep -q . && ! doveadm search -u "$user" MAILBOX INBOX SAVEDSINCE 52weeks \( NOT NEW \); then
+ elif doveadm search -u "$user" MAILBOX INBOX SAVEDBEFORE 52weeks NEW | grep -q . && ! doveadm search -u "$user" MAILBOX INBOX SAVEDSINCE 52weeks \( NOT NEW \) | grep -q .; then
remove_account "$user" "new mail in INBOX untouched for a year, and none touched more recently"
else
info "Skipping user $user"