Commit Graph

174 Commits

Author SHA1 Message Date
Adrià Casajús 90d60217a4
Feat: Re-deliver mails (#1394)
* Feat: Send undelivered emails

* Add cron job

* Added to the crontab

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-11-02 15:51:14 +01:00
Son Nguyen Kim 2f769b38ad
Apple in app fix (#1369)
* error log if issue with apple sub

* use the right secret when polling apple sub
2022-10-25 19:45:53 +02:00
Son Nguyen Kim cea139b7d5
Improve handling when pgp key is invalid (#1264)
* remove unused email statuses

* add more logging

* use text_header if html_header not set

* improve email

* add a header about PGP failure when forward emails can't be encrypted

* remove unused email status
2022-09-02 11:47:04 +02:00
Son Nguyen Kim ae2cbf98e2
Handle invalid pgp key (#1260)
* check invalid mailbox pgp key

* check if public key is valid before trying with pgpy

* fix query

* remove unused code
2022-09-01 15:10:11 +02:00
Son Nguyen Kim 72256d935c
do not notify lifetime user about coinbase sub (#1254) 2022-08-30 22:41:08 +02:00
Son Nguyen Kim b299a305b5
Fix quarantine (#1241)
* add more logging

* fix quarantine email incorrect deleted_at
2022-08-18 14:47:05 +02:00
Adrià Casajús 3a75686898
Generate a web session from an api key (#1224)
* Create a token to exchange for a cookie

* Added Route to exchange token for cookie

* add missing migration



Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-08-10 18:48:32 +02:00
Son Nguyen Kim 6aeb710ca0
add nb_proton_user, nb_proton_premium to daily metric email (#1144) 2022-07-05 18:00:28 +02:00
Son Nguyen Kim 66a2152ea3
Compute Proton metrics (#1135)
* compute nb_proton_premium

* compute nb_proton_user
2022-07-04 11:40:29 +02:00
Adrià Casajús 99ce10a1bc
Send email to users with a subscription and a partner plan upgrade (#1101)
* Send email to users with a subscription and a partner plan upgrade

* Update double-subscription-partner.html

* Update double-subscription-partner.txt.jinja2

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
Co-authored-by: Son Nguyen Kim <nguyenkims@users.noreply.github.com>
2022-06-20 14:34:20 +02:00
Son 3d1a960702 fix duplicated stats 2022-02-28 10:43:30 +01:00
Son c947e7cbd5 improve cron job 2022-02-15 09:36:37 +01:00
Son cca23b753c Extract daily monitoring report from stats() 2022-02-04 15:45:21 +01:00
Son 94bbade62e refactor 2022-01-10 15:05:15 +01:00
Son b306abb689 use yield_per_query() in cron whenever possible 2022-01-06 18:52:14 +01:00
Son 01cc9fe388 optimize migrate_domain_trash: bulk create and delete, keep track of progress 2022-01-06 18:30:56 +01:00
Son 17e9798bfd do not use error level in migrate_domain_trash 2022-01-06 15:36:43 +01:00
Son 37bb7655d5 remove unused import 2022-01-06 15:30:33 +01:00
Son 55e3203512 refactor. Remove sleep when checking mailbox domain. 2022-01-06 15:13:59 +01:00
Son 3fb6dd4aeb check if there's an email that starts with "\u200f" (right-to-left mark (RLM)) in cron 2022-01-06 11:07:50 +01:00
Son 414f6a2463 handle case a custom domain is deleted in the meantime 2022-01-03 10:07:41 +01:00
Son f548e74e77 refactor 2022-01-03 10:06:56 +01:00
Son b9e2a79933 enable email sending retry in cron job 2021-12-28 16:42:01 +01:00
Son bd614278df increase bounce info length 2021-12-28 10:51:43 +01:00
Son 922fa4925e handle ObjectDeletedError 2021-12-28 10:21:26 +01:00
Son 32fffeaa6e handle case bounce info too verbose in daily report 2021-12-26 22:25:00 +01:00
Son 4f9bb59b58 don't notify user who already have an non-canceled Paddle subscription 2021-12-01 17:18:19 +01:00
Son d875b2e0e5 do not send renewal reminder for lifetime user 2021-11-28 12:35:03 +01:00
Son cd553608a5 fix 2021-11-23 14:35:37 +01:00
Son f049da8c9a Compare mx domains with priority order and not priority value 2021-11-23 14:31:53 +01:00
Son 04d6ab519b update the custom domain dns issue email template 2021-11-22 10:32:12 +01:00
Son fdfa286d3e allow contact email to be case sensitive 2021-11-18 16:44:04 +01:00
Son bccfcee780 add subdomain and directory stats to Metric 2021-11-17 17:43:59 +01:00
Son 38e7a64f4f improve daily report 2021-11-06 12:41:37 +01:00
Son 914696ef3b re-enable bounce report in daily report 2021-11-04 14:28:19 +01:00
Son d81e9fb75f fix manual subscription reminder sent for lifetime user 2021-11-02 15:47:31 +01:00
Son d27c19c33a rename file 2021-11-02 11:42:20 +01:00
Son 67a8e0f9cc rename file 2021-11-02 11:41:01 +01:00
Son 48918ba2c1 rename file 2021-11-02 11:40:02 +01:00
Son e62c5d1591 handle case user has taken a paid subscription in notify_manual_sub_end() 2021-10-31 19:03:49 +01:00
Son c0aa45fc6d black 2021-10-28 19:07:03 +02:00
Son 74d4aa9f8f comment out bounce report, alias creation report in daily report 2021-10-28 19:01:34 +02:00
Son 9d3711a98a improve cron report 2021-10-27 11:48:42 +02:00
Son 78ad9fbcc5 improve daily report 2021-10-26 13:03:57 +02:00
Son 286717dae3 use plaintext for report 2021-10-26 12:48:01 +02:00
Son a99ac24b72 cron, init app, job runner: wrap in an app context to benefit from app setup like database cleanup, sentry integration, etc 2021-10-26 10:52:28 +02:00
Son 6468f7c8a5 improve bounce report 2021-10-24 10:39:47 +02:00
Son ef5670b1cf add all bounce to daily report 2021-10-23 18:40:02 +02:00
Son 7bfdb821af compute and include nb_total_bounced_last_24h in email report 2021-10-15 10:47:07 +02:00
Son c132e3fbbc flake8 2021-10-12 15:03:16 +02:00