Commit graph

4994 commits

Author SHA1 Message Date
Carlos Quintana
1d2777c5a4
fix: add type check on create custom alias api (#2385) 2025-02-07 11:29:52 +01:00
Adrià Casajús
da93431df8
Clear new_email on verified email change (#2383) 2025-02-06 10:27:35 +01:00
Adrià Casajús
e17ae4210b
Proper check of mx domains (#2382)
* Proper check of mx domains

* Moved proton servers to config

* Added function

* Make sure we have a global dns

* Typo
2025-02-05 14:28:08 +01:00
Carlos Quintana
ffb070cd19
chore: offer version in newrelic events (#2380)
* chore: offer version in newrelic events

* chore: send version event on startup and on other services
2025-02-05 10:09:52 +00:00
Adrià Casajús
8d8ca3312a
Send event on account unlink (#2379)
* Send event on account unlink

* Move unlink to its own module
2025-02-05 09:44:42 +00:00
Adrià Casajús
b0a94acaba
Handle the case for duplicate new_email (#2378) 2025-02-04 15:35:14 +00:00
Adrià Casajús
298788fafa
Require user to be logged in for email change verification 2025-02-04 10:03:31 +01:00
Carlos Quintana
ed1662a485
chore: more index work (#2377) 2025-02-03 17:09:52 +01:00
Adrià Casajús
91e614ab50
Do not allow lifetime coupons for lifetime partneri (#2376) 2025-02-03 11:20:12 +01:00
Adrià Casajús
a609b3b312
Multi domain check (#2372)
* Accept partner and sl domains

* fix

* Fix html

* properly calculate mx_domains

* Improve custom domain admin template

* reformat
2025-01-31 16:36:35 +00:00
Carlos Quintana
bb6300944d
fix: remove duplicate EmailLog index (#2371) 2025-01-31 13:47:18 +00:00
Carlos Quintana
ff79fa020f
feat: index cleanup and add missing ones (#2369)
* feat: index cleanup and add missing ones

* chore: remove case in favour of greatest in query

* fix: do not remove mailbox->user index

* Fix test due to random ordering

* Create rollback

* Bad syntax

* fix order also

* test: fix ordering

* fix: ordering on mailboxes

---------

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2025-01-31 10:50:33 +01:00
Carlos Quintana
6f7070cae2
feat: add request_id in log (#2367)
* feat: add request_id in log

* fix: top-level import
2025-01-29 07:21:34 +00:00
Adrià Casajús
3168cbd785
Manage parse_address error 2025-01-28 12:09:36 +01:00
Adrià Casajús
e0f51453bb
Fix unsub parsing 2025-01-28 10:24:16 +01:00
Adrià Casajús
4865f0c281
Fix: allow reply-contact to be none 2025-01-27 12:51:29 +01:00
Adrià Casajús
2198784462
Hide the full connect with proton section 2025-01-27 12:35:30 +01:00
Adrià Casajús
aeee88f2c8
Prevent accounts created from partner directly to unlink 2025-01-24 14:45:27 +01:00
Adrià Casajús
c14d7e2098
Handle multiple emails in reply-to header (#2365) 2025-01-24 10:20:50 +00:00
Adrià Casajús
f4b56788d7
Extract mailbox email change into an util (#2366)
* Extract mailbox email change into an util

* Update validation mailbox

* Add tests

* extract mailbox cancel

* Use simple field
2025-01-24 10:16:04 +00:00
Adrià Casajús
f232a2af89
Refactor coupon management and send proper events (#2363)
* Refactor coupon management and send proper events

* Refactor coupon management and send proper events

* Add missing case

* Updated with comments

* Use model table names

* renamed tablename to table

* Use sqlalchemy
2025-01-23 12:36:13 +01:00
Adrià Casajús
f86197a526
Add missing rollback (#2364) 2025-01-21 14:57:42 +00:00
Adrià Casajús
2918251161
Set uv as package manager (#2361) 2025-01-20 17:12:12 +01:00
Adrià Casajús
f02ea25bab
Run actions on v* tags 2025-01-20 11:41:46 +01:00
Adrià Casajús
7c392a4893
Run actions on push tags 2025-01-20 11:38:28 +01:00
Adrià Casajús
49c5d73498
Update yacron 2025-01-17 15:43:46 +01:00
Adrià Casajús
3dd313c773
Remove poetry.lock and set boto3 back to 1.35 2025-01-17 12:22:07 +01:00
Adrià Casajús
c757aa16f2
Align requirements.lock 2025-01-16 19:04:51 +01:00
Carlos Quintana
030f4fd1f4
build: specify rye artifacts 2025-01-16 16:51:13 +01:00
Adrià Casajús
59f44901b4
Align lock file as much as we can with the old versions (#2360)
* Align lock file as much as we can with the old versions

* Removed poetry lock

* Updated only minors

* Updated only minors
2025-01-16 15:43:19 +01:00
Carlos Quintana
20056a1ae0
feat: use rye as project manager (#2359)
* feat: use rye as project manager

* chore: change poetry to rye for scripts

* ci: avoid duplicate executions

* Remove unused check and rename check

* removed unused parallel tasks

* Remove strategy altogether

---------

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2025-01-16 14:07:55 +01:00
Adrià Casajús
864b5d13ff
Two fixes (#2357)
* Preserve the flags when creating the user from the partner and do not deliver if user is pending deletion

* Fix test
2025-01-15 15:50:28 +00:00
Adrià Casajús
0ccbbd711f
Add custom domain admin page (#2348)
* Add custom domain admin page

* Add domain search
2024-12-20 10:02:35 +01:00
Adrià Casajús
5ff2c7ecc9
update cron schedule 2024-12-04 14:48:27 +01:00
Carlos Quintana
b52340c50c
fix: api crashes (#2338)
* fix: api crashes

* Update app/api/views/alias.py

Co-authored-by: Adrià Casajús <acasajus@users.noreply.github.com>

---------

Co-authored-by: Adrià Casajús <acasajus@users.noreply.github.com>
2024-12-02 09:52:20 +01:00
Adrià Casajús
3b0b5f464e
Fix old name in plan decoding 2024-11-29 14:47:00 +01:00
Adrià Casajús
6b2127353f
Catch proper exception (#2337) 2024-11-29 12:12:22 +01:00
Son Nguyen Kim
29b3be30d6
Update plan name and URL (#2336)
* Update plan name and URL

* show lifetime deal on pricing page

* prettify

---------

Co-authored-by: Son NK <son@simplelogin.io>
2024-11-29 12:00:56 +01:00
Adrià Casajús
2387d30caa
Sanitize the mailbox email before creating it 2024-11-28 17:29:44 +01:00
Adrià Casajús
24987649a9
Add test 2024-11-28 12:32:42 +01:00
Adrià Casajús
062675207c
Allow to select wether we want to send the deletion email when deleting a mailbox (#2335) 2024-11-28 11:31:11 +00:00
Adrià Casajús
0f8408b99c
Add support for more Received header formats to extract the queue id (#2333) 2024-11-28 11:11:53 +00:00
Adrià Casajús
14137326e9
Allow to use header from if domain is aligned with envelope (#2332)
* Use the mail_from when receiving a mail to the reverse alias if the domain is aligned with the VERP email

* Extracted function to a different file
2024-11-27 15:43:45 +00:00
Adrià Casajús
665c01d710
Add lifetime in partner subscriptions (#2331)
* Add lifetime in partner subscriptions

* Add lifetime display

* Fixed change
2024-11-27 11:05:03 +00:00
aki0m
8ff2cbe16e
Remove potential offensive words (#2325)
* Remove potential offensive words

* remove more offencive

---------

Co-authored-by: Son Nguyen Kim <son.nguyen@proton.ch>
2024-11-22 16:19:44 +00:00
Adrià Casajús
53c09febf0
Upate crontab to make sure hibp and domain checks are running (#2327) 2024-11-18 12:21:23 +01:00
Carlos Quintana
f1b2edf822
fix: add missing ValueError handling (#2326) 2024-11-18 09:48:04 +01:00
Carlos Quintana
71723251ec
chore: add missing indices for fk constraints (#2324) 2024-11-15 14:56:15 +01:00
Carlos Quintana
2150db3af7
chore: remove ungodly word from prefixes (#2323) 2024-11-15 11:33:58 +01:00
Carlos Quintana
8320cc04da
fix: add more missing indices for mailbox delete (#2321) 2024-11-14 09:33:16 +00:00