diff options
author | Jonas Smedegaard <dr@jones.dk> | 2023-05-18 11:05:21 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2023-05-18 11:05:21 +0200 |
commit | b1d8f9c17c7aba20d79252d9f9961c5342327018 (patch) | |
tree | 3673955c98d8c72ee35fbbc7df94a15cd3e2a6c3 | |
parent | 7266b05db721af5eb9b7d6d4c77e29c5a5917d44 (diff) |
-rwxr-xr-x | localrmstaleaccounts | 2 |
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" |