configurations/scripts/learnspam.py

7 lines
138 B
Python
Raw Permalink Normal View History

2021-05-01 15:13:49 -04:00
import os
home_directories = os.listdir("/home")
for user in home_directories:
os.system("sa-learn --spam /home/%s/mail/Junk" % user)