Mail those more than six months inactive users of your Mastodon server and delete them from your database if they don't reply after 30 days of receiving this warning email.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
mailing/mailing.py

21 lines
461 B

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from inactives import Inactives
# main
if __name__ == '__main__':
inactives = Inactives()
inactives_ids = inactives.id()
inactives.delete(inactives_ids)
account_ids, account_emails, account_last_sign_in_ats = inactives.get_inactives()
account_usernames = inactives.usernames(account_ids)
inactives.mailing(account_ids, account_emails, account_usernames, account_last_sign_in_ats)