Commit graph

2973 commits

Author SHA1 Message Date
Son NK
4b8a2a1851 add tests for sign_data 2020-11-03 13:30:13 +01:00
Son NK
c1b8f717b5 improve DNS page 2020-11-03 13:12:22 +01:00
Son NK
4b6368b378 make sure only verified mailbox can be used as default 2020-11-03 12:43:01 +01:00
Son NK
19ac657c1c add GET /api/v2/mailboxes 2020-11-03 12:14:13 +01:00
Son NK
5ee74c74b6 do not use url_for() in api tests 2020-11-03 12:07:48 +01:00
Son NK
273537e7ae use same mailbox format for "POST /api/mailboxes" and "GET /api/mailboxes" 2020-11-03 11:22:01 +01:00
Son NK
a989545505 make sure alias contact address is valid 2020-11-03 11:13:43 +01:00
Son NK
04a418e655 fix contact name always converted to lowercase 2020-11-03 11:11:55 +01:00
Son NK
9fafddd603 use is_valid_email instead of regex 2020-11-03 11:11:09 +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
72a34e28be add is_valid_email() 2020-11-03 11:09:37 +01:00
Son NK
fe6e9fa435 install py3-validate-email 2020-11-03 10:50:47 +01:00
Son NK
a890557c7f Use check_alias_prefix() to check alias prefix 2020-11-03 10:39:08 +01:00
snyk-bot
42237c9539
fix: upgrade @sentry/browser from 5.25.0 to 5.26.0
Snyk has created this PR to upgrade @sentry/browser from 5.25.0 to 5.26.0.

See this package in npm:
https://www.npmjs.com/package/@sentry/browser

See this project in Snyk:
https://app.snyk.io/org/nguyenkims/project/72f25afd-ac84-4504-a9bd-dc5ead29b930?utm_source=github&utm_medium=upgrade-pr
2020-11-03 03:23:45 +00:00
Son NK
8d0e243c83 sign PGP forwarded email if PGP_SENDER_PRIVATE_KEY 2020-11-02 19:09:57 +01:00
Son NK
3f150e5944 add new param PGP_SENDER_PRIVATE_KEY_PATH 2020-11-02 19:06:47 +01:00
Son NK
63788125da save bounce email sent to an alias when 2020-11-02 15:10:03 +01:00
Son NK
c41c36acaa set "date" header in forward phase if needed 2020-11-02 14:53:22 +01:00
Son NK
38877598cf fix handle_reply: do not delete _MIME_HEADERS headers, add Date header 2020-11-02 14:51:37 +01:00
Son Nguyen Kim
d2f2053738
Merge pull request #321 from simple-login/snyk-upgrade-ded98394f6af903837d29c0e8b52b575
[Snyk] Upgrade bootbox from 5.4.0 to 5.5.1
2020-11-01 20:56:40 +01:00
Son NK
756e8080ab handle case msg.get_payload(decode=True) is None 2020-11-01 18:38:21 +01:00
Son NK
1d0aa0f900 fix doc 2020-11-01 18:13:50 +01:00
Son NK
7337110110 Remove all headers in reply phase 2020-11-01 18:12:09 +01:00
Son NK
593e81705b Handle case Content-Type and Mime-Version are missing in prepare_pgp_message 2020-11-01 18:06:28 +01:00
Son NK
53e57eee42 clone orig message in prepare_pgp_message 2020-11-01 18:06:05 +01:00
Son NK
7ca74eaa6f replace-reverse-alias and pgp encryption before modifying message header in reply phase 2020-11-01 18:02:43 +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
38ca2341bc fix mailbox query in get_alias_infos_with_pagination_v3 2020-11-01 12:24:19 +01:00
Son NK
e49169b887 Reset default random alias domain setting if user is not premium 2020-11-01 09:37:09 +01:00
Son NK
fef6edf619 use warning for domain DNS fails 2020-11-01 09:32:41 +01:00
snyk-bot
6df616c4b4
fix: upgrade bootbox from 5.4.0 to 5.5.1
Snyk has created this PR to upgrade bootbox from 5.4.0 to 5.5.1.

See this package in npm:
https://www.npmjs.com/package/bootbox

See this project in Snyk:
https://app.snyk.io/org/nguyenkims/project/72f25afd-ac84-4504-a9bd-dc5ead29b930?utm_source=github&utm_medium=upgrade-pr
2020-11-01 03:25:19 +00:00
Son NK
28563b9653 fix duplicated display 2020-10-30 13:05:45 +01:00
Son NK
c076c7c7f3 PATCH /api/setting 2020-10-28 17:47:26 +01:00
Son NK
12f7485cb1 Add GET /api/setting/domains 2020-10-28 17:30:57 +01:00
Son NK
77bf9537d0 Add GET /api/setting 2020-10-28 17:23:58 +01:00
Son NK
91534d3cf2 Add PATCH /api/user_info 2020-10-28 17:12:21 +01:00
Son NK
3f40e3c1cf return profile_picture_url in GET /user_info 2020-10-28 17:11:33 +01:00
Son NK
0307793666 use pgpy as fallback for gpg 2020-10-28 17:07:53 +01:00
Son NK
6c816d51d6 fix load_public_key_and_check, remove IncorrectPassphrasePGPException 2020-10-28 12:21:42 +01:00
Son NK
5a190ed840 use pgpy if python-gnupg fails 2020-10-28 12:21:24 +01:00
Son NK
9210459a72 add pgpy
- add pgpy to poetry
- add test PGP keys to local_data
- add encrypt_file_with_pgpy()
- use randomly pgpy
2020-10-28 11:50:14 +01:00
Son NK
71be3b27f7 redirect user to dashboard when setup is done 2020-10-28 10:49:50 +01:00
Son NK
a2254cfdf8 remove pgp debugging code 2020-10-27 20:27:34 +01:00
Son NK
1abebe8067 improve how to use reverse-alias 2020-10-27 18:59:59 +01:00
Son NK
aa1cac521b Set X-SimpleLogin-Envelope-From header in forward phase 2020-10-27 11:03:56 +01:00
Son NK
8f6550f992 update contact.mail_from and contact.from_header if needed 2020-10-27 10:40:54 +01:00
Son Nguyen Kim
5681f061b5
Merge pull request #318 from simple-login/snyk-upgrade-6b9d3fe637a4e3f1a1817e388bb7b454
[Snyk] Upgrade @sentry/browser from 5.24.2 to 5.25.0
2020-10-27 09:02:23 +01:00
snyk-bot
a8d4ef73a2
fix: upgrade @sentry/browser from 5.24.2 to 5.25.0
Snyk has created this PR to upgrade @sentry/browser from 5.24.2 to 5.25.0.

See this package in npm:
https://www.npmjs.com/package/@sentry/browser

See this project in Snyk:
https://app.snyk.io/org/nguyenkims/project/72f25afd-ac84-4504-a9bd-dc5ead29b930?utm_source=github&utm_medium=upgrade-pr
2020-10-27 03:23:50 +00:00
Son NK
dec956c84d handle case user is None 2020-10-26 12:01:59 +01:00