Commit Graph

52 Commits

Author SHA1 Message Date
Son NK
3d638f1a97 extract monitoring to its own file 2020-08-15 19:55:56 +02:00
Son NK
4bbb07c3ce add monitoring cronjob that monitors how many emails in Postfix queues 2020-08-15 13:16:51 +02:00
Son NK
8db2ddcd5b Add nb_apple_premium, take into account canceled subscription in nb_premium 2020-08-07 10:06:00 +02:00
Son NK
6437ee46e0 use LOG.exception instead of LOG.error to provide stacktrace 2020-07-17 12:59:07 +02:00
Son NK
28da78e75f sanity_check: alert when too many checks fail on a mailbox 2020-06-28 11:18:06 +02:00
Son NK
84381e9635 reduce memory use in cron by using yield_per() 2020-06-12 23:50:21 +02:00
Son NK
b79933ba4c sleep between mailbox check 2020-06-12 00:09:53 +02:00
Son NK
987b413e3d check if user and mailbox email address are lowercase in sanity_check 2020-06-11 23:36:06 +02:00
Son NK
df47ea1983 do not disable mailbox in sanity_check 2020-06-11 23:35:44 +02:00
Son NK
bee648b6b5 update changelog 2020-06-10 09:19:52 +02:00
Son NK
a255c2652e fix the email 2020-06-09 18:58:42 +02:00
Son NK
befbb0c0c0 Add sanity_check that disables invalid mailbox and all of its aliases 2020-06-09 17:12:34 +02:00
Son NK
c8f1244d81 optimize cron job 2020-05-15 15:31:58 +02:00
Son NK
8ae51998f5 take into account MacApp 2020-04-29 15:50:06 +02:00
Son NK
618d308c22 improve cron stats job 2020-04-23 22:11:43 +02:00
Son NK
b33ec7d025 fix reformatting 2020-04-19 11:20:44 +02:00
Son NK
71d53d16da add poll_apple_subscription(), call it everyday 2020-04-19 11:18:27 +02:00
Son NK
f7f1e7f358 replace user.next_bill_date() by sub.next_bill_date.strftime("%Y-%m-%d") 2020-04-19 10:54:05 +02:00
Son NK
f7e5ab1e34 reaname 2020-04-04 19:21:31 +02:00
Son NK
2041b0aabd Handle the case where path can be None in cron 2020-04-02 21:30:36 +02:00
Son NK
126aa8824c Add nb bounced and spam to stats 2020-03-30 22:11:19 +02:00
Son NK
2d90d35647 rename gen_email_id -> alias_id 2020-03-17 12:01:18 +01:00
Son NK
4f281bdbbb rename GenEmail -> Alias, gen_email to alias whenever possible 2020-03-17 11:51:40 +01:00
Son NK
bea870ef8b rename ForwardEmailLog to EmailLog 2020-03-17 11:10:50 +01:00
Son NK
f2d630e597 rename forward_id to contact_id 2020-03-17 11:05:53 +01:00
Son NK
17974de746 rename ForwardEmail to Contact 2020-03-17 10:56:59 +01:00
Son NK
45d560fd70 fix 2020-03-15 12:14:43 +01:00
Son NK
e21e27eefa Hide download for deleted refused emails 2020-03-15 11:14:58 +01:00
Son NK
71a9fc38a9 Add cronjob to delete refused emails 2020-03-15 11:11:16 +01:00
Son NK
52f364d73b notify user with premium plan ending soon 2020-03-05 09:35:20 +01:00
Son NK
c1bd2f83e3 Remind user that their manual sub is ending soon. 2020-02-23 17:01:23 +07:00
Son NK
4ad44dbcdf only send trial-end email to user who is in trial
i.e. users who:
1. has lifetime licence or active subscription and
2. is in trial period
2020-02-15 16:29:44 +07:00
Son NK
c00fdd6cfb fix: not sending trial ending for user having lifetime licence 2020-02-10 21:43:59 +07:00
Son NK
e4bec95b4e do not send trial ending soon or onboarding to unactivated user 2020-02-05 21:21:56 +07:00
Son NK
6e4e737af0 add more logging 2020-02-04 14:27:12 +07:00
Son NK
868762bf9f support --job argument in cron: stats, notify_trial_end 2020-02-03 13:47:25 +07:00
Son NK
8da4557325 send trial ending reminder when trial ends in 2-3 days 2020-01-30 14:19:09 +07:00
Son NK
845f69431b add some stats directly to email subject when sending stats 2019-12-22 16:28:13 +00:00
Son NK
f8293bc618 make ADMIN_EMAIL optional 2019-12-16 19:36:59 +02:00
Son NK
88cef1b90d add new param IGNORED_EMAILS and use it in cronjob 2019-12-15 18:55:18 +02:00
Son NK
6414cdaccf remove late_payment() from cronjob 2019-12-15 18:55:18 +02:00
Son NK
e5079e48da remove can_create_new_random_alias() 2019-12-15 18:55:18 +02:00
Son NK
ec62fad3a0 remove notify_admin, replace by general stats 2019-12-15 18:55:18 +02:00
Son NK
4e6922adad disable late_payment in cron job 2019-12-15 18:55:18 +02:00
Son NK
6d1d9b062d ignore internal users in cronjob 2019-12-15 18:55:17 +02:00
Son NK
7bedd40966 add user.can_use_custom_domain, user.can_use_api_key 2019-12-15 18:55:16 +02:00
Son NK
e4b84ff5e8 add demo.simplelogin to ignored 2019-12-15 18:55:16 +02:00
Son NK
bfa07110aa add son@sl to ignored emails 2019-12-15 18:55:16 +02:00
Son NK
423c90fb42 add stats to cronjob 2019-12-15 18:55:16 +02:00
Son NK
8cc7ad2225 fix '<' not supported between instances of 'datetime.date' and 'Arrow' 2019-12-15 18:55:14 +02:00