Carlos Quintana
59957ec08b
chore: fix regex warnings on python 3.12 ( #2400 )
...
* deps: update some dependencies to fix warnings
* chore: move from sl.local to sl.lan for local development
* fix: mark string as regex
* chore: move facebook import to handler so its not global
* test: fix tests
* style: lint fixes
* test: move all .test and .local to .lan
* ci: do not use setup-python in lint
2025-02-26 15:41:50 +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
Carlos Quintana
d65994c3c6
fix: missing None check on alias contacts api ( #2288 )
2024-10-24 07:50:35 +00:00
Adrià Casajús
b59ca3e47c
Move more contact creation logic to a single function ( #2234 )
...
* Move more contact creation logic to a single function
* Reordered parameters
* Fix invalid arguments
2024-09-27 16:04:32 +02:00
Son Nguyen Kim
f69c9583fb
fix proton partner error when self host ( #1255 )
...
* fix proton partner error when self host
* fix test
* fix test
* remove a@b.c
2022-09-01 14:59:16 +02:00
Adrià Casajús
9066116b7e
Simplified method
2022-05-12 18:33:13 +02:00
Adrià Casajús
4d07bc9d31
Moved global flag to config
2022-05-12 18:30:46 +02:00
Adrià Casajús
caff70ea38
Set global config to enable/disable feature
2022-05-12 16:35:51 +02:00
Adrià Casajús
5dde39eb37
Prevent free users from creating reverse-alias
2022-05-12 13:20:05 +02:00
Son
a2c477a816
support "enabled" param in /api/v2/aliases
2022-04-28 17:24:35 +02:00
Son
7b7cb0b571
prevent disabled user from using the api
2022-04-27 16:24:38 +02:00
Son
58b332b7bc
add new parameter disabled in /GET /api/v2/aliases
2022-04-25 09:22:29 +02:00
Son
9a994ec98b
fix test
2022-04-18 11:17:10 +02:00
Son
a966665478
refactor test: no hardcode a@b.c, make sure each test has a different user
2022-04-15 16:59:44 +02:00
george
936d90a5f5
Fix deprecation warnings.
2022-02-04 13:49:38 +00:00
Son
4d1c4cfdff
support pinned parameter in /api/v2/aliases
2022-02-03 11:16:49 +01:00
Son
70cb0609d8
refactor
2022-02-03 11:16:49 +01:00
Son
9ff323c746
make sure to set custom_domain_id when creating a new alias
2022-01-06 15:29:37 +01:00
Son
31e39314d5
return "block_forward" for /api/aliases/{alias.id}/contacts
2021-11-02 15:55:16 +01:00
Son
bc4805b1fa
Add POST /api/contacts/:contact_id/toggle
2021-10-28 10:14:20 +02:00
Son
be7ae3021a
rename is_reply_email -> is_reverse_alias, make sure reverse-alias must end with EMAIL_DOMAIN
2021-10-19 12:14:16 +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 Nguyen Kim
638e8137ec
fix test
2021-09-10 17:10:05 +02:00
Son Nguyen Kim
183449e38b
fix test
2021-07-11 15:00:47 +02:00
Son Nguyen Kim
1e4746dfe5
fix test
2021-07-11 15:00:22 +02:00
Son Nguyen Kim
f97b18e60a
fill up EmailLog.alias_id when creating new EmailLog
2021-07-11 12:28:42 +02:00
Son NK
c87fe55898
POST /api/aliases/:alias_id/contacts: return 200 and existed=true
if contact is already added.
2021-03-17 20:29:34 +01:00
Son NK
78ddf16c87
make sure alias name does not contain a linebreak
2020-11-20 18:39:23 +01:00
Son NK
145fc9c67c
Add reverse_alias_address to GET /api/aliases/:alias_id/activities
2020-11-17 09:27:30 +01:00
Son NK
aada12f17e
return reverse_alias_address in POST /api/aliases/:alias_id/contacts and GET /api/aliases/:alias_id/contacts
2020-11-16 19:39:00 +01:00
Son NK
9154b4656d
refactor: create is_reply_email()
2020-11-16 19:22:19 +01:00
Son NK
f6568aca6a
Return pinned in GET /api/aliases/:alias_id, GET /api/v2/aliases
2020-11-15 19:01:11 +01:00
Son NK
ae05c164c9
Support pinned in PATCH /api/aliases/:alias_id
2020-11-15 18:46:27 +01:00
Son NK
751cc05534
check contact address in POST /aliases/<int:alias_id>/contacts
2020-11-03 11:10:32 +01:00
Son NK
ec1b7dd8b8
return latest_activity=null if there's no activity in GET /api/v2/aliases
2020-11-01 12:32:20 +01:00
Son NK
92ea8de374
fix test name
2020-11-01 12:29:15 +01:00
Son NK
d6d686c4c3
add argument commit= to create()
2020-09-28 17:40:30 +02:00
Son NK
2f00294ba3
replace pgp_enabled by disable_pgp
2020-08-06 14:22:28 +02:00
Son NK
b3ca7d1d5b
Return pgp_enabled in GET /api/v2/aliases
2020-08-04 20:11:59 +02:00
Son NK
03841693ba
Return support_pgp in GET /api/v2/aliases
2020-08-04 20:09:42 +02:00
Son NK
6280512adf
move get mailboxes to mailbox.py
2020-05-23 16:46:10 +02:00
Son NK
b167297808
Support disable_pgp in update alias endpoint
2020-05-16 20:51:07 +02:00
Son NK
90dae2e3c8
Support mailbox_ids in PUT /api/aliases/:alias_id
2020-05-10 20:09:54 +02:00
Son NK
165d986561
add mailboxes to GET /api/v2/aliases
2020-05-10 20:09:54 +02:00
Son NK
b95b758692
Optimize imports
2020-05-09 20:49:38 +02:00
Son NK
63af3297f7
return alias name in GET /api/v2/aliases
2020-04-26 10:38:58 +02:00
Son NK
7a2fc007e8
Accept "name" in PUT /api/aliases/:alias_id
2020-04-26 10:38:16 +02:00
Son NK
a422f33323
Add GET /api/mailboxes
2020-04-25 23:42:56 +02:00
Son NK
88ddca54c1
return mailbox in GET /api/v2/aliases
2020-04-25 23:42:56 +02:00
Son NK
489153a750
Support update mailbox_id in PUT /aliases/:aliasID
2020-04-25 13:49:40 +02:00