{ 'days': 150, 'size': 10 }
]
USER_EXCLUSION_LIST = ['lost+found']
-MAIL_FROM = 'dsa@debian.org'
+MAIL_FROM = 'debian-admin (via Cron) <bulk@admin.debian.org>'
MAIL_TO = '{username}@{hostname}.debian.org'
-MAIL_CC = ''
+MAIL_CC = 'debian-admin (bulk sink) <bulk@admin.debian.org>'
+MAIL_REPLYTO = 'debian-admin <dsa@debian.org>'
MAIL_SUBJECT = 'Please clean up ~{username} on {hostname}.debian.org'
MAIL_TEXT = u"""\
Hi {name},
Thanks,
Cron, on behalf of your catherders/admins
+
+PS: replies not required.
"""
class Error(Exception):
msg = email.mime.text.MIMEText(MAIL_TEXT.format(**kwargs), _charset='UTF-8')
msg['From'] = MAIL_FROM.format(**kwargs)
msg['To'] = MAIL_TO.format(**kwargs)
- msg['Cc'] = MAIL_CC.format(**kwargs)
+ if MAIL_CC != "": msg['Cc'] = MAIL_CC.format(**kwargs)
+ if MAIL_REPLYTO != "": msg['Reply-To'] = MAIL_REPLYTO.format(**kwargs)
msg['Subject'] = MAIL_SUBJECT.format(**kwargs)
msg['Precedence'] = "bulk"
msg['Auto-Submitted'] = "auto-generated by mail-big-homedirs"