fix:script for cleanup stale entries
https://gitlab.e.foundation/e/infra/backlog/-/issues/4617
1) OCC used earlier to generate spam account(if already have this file no need to run this)
docker exec -u www-data dev01_nextcloud bash -lc \ '/var/www/html/occ email-recovery:spam-account-detection \> /tmp/spam-account-report-2025-09-29.txt 2\> &1'
2) Filter it and output it
docker exec -u www-data dev01_nextcloud bash -lc \ '/var/www/html/occ email-recovery:filter-legitimate-domains /tmp/spam-account-report-2025-09-29.txt' > filtered-spam.txt
Test cases:
- Verify that
filtered-spam-report.txtcontains only spam accounts. - Verify that all removed accounts are legitimate (i.e., none of the removed accounts are spam).
Edited by AVINASH GUSAIN