Commit Graph

50 Commits

Author SHA1 Message Date
Son Nguyen Kim
b487b01442
Fix format (#1554)
* after deleting an alias, user should stay on the same page

* fix email indentation
2023-01-25 13:16:29 +01:00
Adrià Casajús
81eb56e213
Tranfer aliases to a new mailbox when deleting mailboxes (#1534)
* Set up npm clean install instead of npm install in order to keep the version of npm packages 🎨

* Add option to transfer the alias to a new mailbox when a mailbox is deleted

* Moved alias transfer to job

* Lint

* Update forms

* Revert dockerfile change

Co-authored-by: ewen <ewen.coppens@a1.digital>
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2023-01-17 11:55:34 +01:00
Adrià Casajús
0284719dbb
Fix: Remove * from a param (typo) (#1498)
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-12-19 11:45:04 +01:00
Adrià Casajús
9378b8a17d
Fix: Return email in the get_communication_email always and search for the alias when needed (#1497)
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-12-19 09:23:53 +01:00
Adrià Casajús
73c0429cad
Fix: Set oneclick link for unsubscribe of the newsletter for tx emails (#1465)
* Feat: Add unsub oneclick to the base transactional email template

* Format

* Removed unused

* Format

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-12-13 16:59:14 +01:00
Adrià Casajús
88dd07e48d
Feature: Use new job status to retry killed jobs (#1130)
* Feature: Use new job status to retry killed jobs

* Set attermpts and time via config

* Update timing condition

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-07-01 11:14:53 +02:00
Adrià Casajús
5fa41d6ccf
Add state management to job (#1113)
* Add state management to job

* Add migration

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-06-28 09:22:48 +02:00
Adrià Casajús
fbb59a1531
Send welcome mail to proton created users (#1099)
* Send welcome mail to proton created users

* Skip import

* Use new logo

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-06-20 11:36:16 +02:00
Adrià Casajús
3d3d408a8f
Fix: logic failed the onboarding-1 job (#1085)
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-06-14 09:00:52 +02:00
Adrià Casajús
e688f04d6b
Send full user report asynchronously on request (#1029)
* Send full user report asynchronously

* Fix test

* Filter some fields before exporting

* Fix: Domain -> CustomDomain

* format settings html

* not include RefusedEmail as they are not usable by user and are automatically deleted

* send the export to the user email

* change email and setting wording

* fix user can only export data once

* remove alias export section

* remove unused import

* fix flake8

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
Co-authored-by: Son <nguyenkims@users.noreply.github.com>
2022-06-07 10:45:04 +02:00
Son
08c7aa8b98 ignore smtp errors for onboarding emails 2022-01-03 10:01:56 +01:00
Son
335a89f912 enable email sending retry in job runner 2021-12-28 16:43:26 +01:00
Son
d8a23ba9d3 fix email template 2021-11-15 11:55:22 +01: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
ced31edda2 flake8 2021-10-13 11:52:41 +02:00
Son
cfe88b5df2 use job system to delete domain 2021-10-13 11:43:44 +02:00
Son
fbabe6fb44 use job system for deleting mailbox 2021-10-13 11:40:15 +02:00
Son
eb0e327402 remove "with app.app_context():" 2021-10-12 14:47:01 +02:00
Son
372466ab06 do not use flask-sqlalchemy
- add __tablename__ for all models
- use sa and orm instead of db
- rollback all changes in tests
- remove session in @app.teardown_appcontext
2021-10-12 14:36:47 +02:00
Son
b602f7e746 update send from alias video 2021-10-11 17:08:48 +02:00
Son Nguyen Kim
5ac78f2694 reformat 2021-09-08 11:29:55 +02:00
Son NK
bdec7ff5e4 use info level for case user is deleted in the meantime 2021-05-24 11:10:17 +02:00
Son NK
7946879308 schedule account deletion 2021-04-23 11:50:26 +02:00
Son NK
ac216e7a08 use create_light_app in job runner 2021-03-29 10:56:42 +02:00
Sylvia van Os
e02d95216f Remove unused imports and var assignments 2021-03-13 15:46:12 +01:00
Sylvia van Os
44ae20816a WIP: Import test 2021-03-10 23:08:33 +01:00
Sylvia van Os
1915c8d09d Export and import mailbox info with alias 2021-03-09 21:09:58 +01:00
Son NK
e9adb3270d use sanitize_email instead of .lower().strip().replace(" ", "") 2021-01-11 12:29:40 +01:00
Renaud Boyer
1fa64941c9 linitng 2020-12-06 11:25:41 +01:00
Son NK
85a1d67c6f put browser extension onboarding email to the welcome email 2020-10-22 11:46:15 +02:00
Son NK
677f150fef add unsubscribe header to com emails 2020-10-22 10:44:05 +02:00
Son NK
c8e92af4d3 improve onboarding emails wordings 2020-09-30 11:53:07 +02:00
Son NK
85beb774c7 fix onboarding email 2020-09-12 15:51:43 +02:00
Son NK
09380915fb use user first alias to for onboarding emails 2020-09-12 14:33:27 +02:00
Son NK
d14f6cf7fb Ignore wrong formatted row 2020-09-11 16:51:04 +02:00
Son NK
f664243e42 add batch-import page 2020-09-10 20:14:55 +02:00
Son NK
bde6f661e4 change onboarding email order 2020-09-09 22:16:10 +02:00
Son NK
85332a5fb5 improve onboarding email subjects 2020-09-09 22:14:06 +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
58ca77e2ae Add browser extension onboarding email 2020-04-02 23:26:17 +02:00
Son NK
0acde29443 mailbox is move to 2nd onboarding, pgp 3rd onboarding 2020-03-24 21:23:26 +01:00
Son NK
9e04081186 send mailbox onboarding email 2020-03-24 21:19:45 +01:00
Son NK
c02b8298fc send pgp onboarding email to user on 2nd day 2020-03-24 21:01:38 +01:00
Son NK
929e965f23 rename onboarding-1 to onboarding/send-from-alias 2020-03-24 20:55:50 +01:00
Son NK
ca70d26285 black format 2020-03-05 11:00:58 +01:00
Son NK
9e2121825d take into account user deleting their account in the meantime 2020-02-15 17:10:49 +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
f5a2eb387b take into account user.notification setting in onboarding email 2020-02-04 14:36:43 +07:00
Son NK
0f4e803639 WIP send user onboarding email 1day after the account creation 2020-02-03 13:28:08 +07:00
Son NK
61229200a5 create job runner 2020-02-03 13:11:11 +07:00