Commit Graph

1535 Commits

Author SHA1 Message Date
Son NK
be510ea1d7 use utf-8 if unknown charset in get_header_unicode() 2020-11-18 10:02:10 +01:00
Son NK
6ed6218895 black 2020-11-17 09:27:45 +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
3d153f5203 make sure user can't choose "ra" as directory name 2020-11-16 19:18:33 +01:00
Son NK
1926408a13 Add dns_utils.get_ns() 2020-11-16 19:16:06 +01:00
Son NK
75ba1669e0 Create generate_reply_email() and refactor 2020-11-16 19:15:09 +01:00
Son NK
15a6d9630a Handle sender_format in PATCH /api/setting 2020-11-15 19:43:37 +01:00
Son NK
c794e73abd Add EnumE.has_name(), EnumE.get_value() 2020-11-15 19:43:01 +01:00
Son NK
f0f81930bc Return "sender_format" in GET /api/setting 2020-11-15 19:35:07 +01:00
Son NK
d8c9078708 Add EnumE.get_name() 2020-11-15 19:34:00 +01:00
Son NK
aee917a3ef Add GET /api/custom_domains/:custom_domain_id/trash 2020-11-15 19:24:54 +01:00
Son NK
de495b9afe return nb_alias in GET /api/custom_domains 2020-11-15 19:13:00 +01:00
Son NK
9d24b1b88a GET /api/custom_domains 2020-11-15 19:09:25 +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
f500a495b7 User can pin an alias 2020-11-15 18:46:43 +01:00
Son NK
ae05c164c9 Support pinned in PATCH /api/aliases/:alias_id 2020-11-15 18:46:27 +01:00
Son NK
6c7018dd33 Take into account pinned alias in get_alias_infos_with_pagination_v3 2020-11-15 18:42:29 +01:00
Son NK
abf50e302b Add Alias.pinned column 2020-11-15 18:38:07 +01:00
Son NK
08902bf784 small style refactor 2020-11-15 18:31:10 +01:00
Son NK
9cfb6d412a Add /api/v5/alias/options 2020-11-14 16:45:22 +01:00
Son NK
f452c79aec Add /v2/setting/domains 2020-11-14 16:37:36 +01:00
Son NK
f62c568dd0 Add Contact.invalid_email column 2020-11-14 15:54:06 +01:00
Son NK
3489e41fdb Add NOREPLY setting 2020-11-14 15:53:20 +01:00
Son NK
2c46d1db8e Add PGP_SIGNER and display if it's set 2020-11-14 13:00:14 +01:00
Son NK
a072d6c0cd only report the paddle error if it's not 147 2020-11-14 12:55:53 +01:00
Son NK
f16676e921 email.message_from_string can also throw LookupError when non-existent charset is set 2020-11-13 18:08:56 +01:00
Son NK
b4e5e3eecb user can choose a referral code 2020-11-13 16:18:09 +01:00
Son NK
25de8001e2 fix circular import 2020-11-12 17:56:03 +01:00
Son NK
1c061ceb59 Schedule domain deletion instead of deleting it immediately 2020-11-12 17:41:47 +01:00
Son NK
ec4d879836 change promotion to 1st year only 2020-11-10 22:37:58 +01:00
Son NK
5570300699 use 2 random words when creating random alias 2020-11-10 18:52:31 +01:00
Son NK
4e16eb7403 fix 2020-11-10 17:42:23 +01:00
Son NK
4666d21f63 email.message_from_string can also throw KeyError when 'content-transfer-encoding' is absent 2020-11-10 17:26:24 +01:00
Son NK
632a5bbbc8 handle UnicodeEncodeError in copy() and to_bytes() 2020-11-10 16:02:19 +01:00
Son NK
c3f73b25b2 decode the subject 2020-11-09 21:16:50 +01:00
Son NK
b2f9479bce failover when ascii encoding fails 2020-11-09 20:58:39 +01:00
Son NK
44c3ac1741 Replace 2.99 by 3, 29.99 by 30 2020-11-09 17:56:26 +01:00
Son NK
a35256d161 fix paddle 2020-11-09 17:34:58 +01:00
Son NK
2cc7cb6a37 use to_bytes instead of .as_bytes() 2020-11-09 17:02:10 +01:00
Son NK
15466903d1 Support OTHER_PADDLE_MONTHLY_PRODUCT_IDS, OTHER_PADDLE_YEARLY_PRODUCT_IDS config 2020-11-09 16:56:17 +01:00
Son NK
3f8e5d0a8b add more logging 2020-11-08 22:39:49 +01:00
Son NK
a9297078d3 fix dkim clipboard 2020-11-08 22:39:38 +01:00
Son NK
76389647bb add black friday coupon code 2020-11-08 16:31:24 +01:00
Son NK
4be182320e black 2020-11-07 13:00:58 +01:00
Son NK
e659680875 add_header() 2020-11-07 13:00:12 +01:00
Son NK
f57f29a97b Able to set a generic subject for PGP-enabled mailbox 2020-11-07 12:58:51 +01:00
Son NK
7cc57106de Add Mailbox.generic_subject column 2020-11-07 12:48:44 +01:00
Son NK
6c626520d3 handle_bounce_reply_phase 2020-11-04 12:32:15 +01:00
Son NK
f4f2db0f04 use the same error structure in apple endpoints 2020-11-03 16:13:10 +01:00
Son NK
6e0394d980 fix filter not working when alias has several mailboxes 2020-11-03 15:10:57 +01:00
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
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
a890557c7f Use check_alias_prefix() to check alias prefix 2020-11-03 10:39:08 +01: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
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
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
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
6c816d51d6 fix load_public_key_and_check, remove IncorrectPassphrasePGPException 2020-10-28 12:21:42 +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
6803d4bf42 fix import error 2020-10-26 10:32:56 +01:00
Son NK
b09bb42b2d handle case where highlight_alias_id is not a number 2020-10-26 10:31:38 +01:00
Son NK
f0b46c1887 use warning log for /alias/options 2020-10-26 10:31:19 +01:00
Son NK
477481c41e save the data for debugging when pgp fails 2020-10-24 19:03:19 +02:00
Son NK
83f3309149 use warning log for /v3/alias/options 2020-10-24 16:28:07 +02:00
Son NK
c140d3f842 improve reverse-alias instruction use 2020-10-24 16:23:47 +02:00
Son NK
9f50ab4cce Handle IntegrityError when creating new alias 2020-10-24 15:50:29 +02:00
Son NK
5da7953a64 handle the case a directory alias is created concurrently 2020-10-23 11:55:01 +02:00
Son NK
85a1d67c6f put browser extension onboarding email to the welcome email 2020-10-22 11:46:15 +02:00
Son NK
bc1eeb4f01 move TOTP to top 2020-10-22 11:09:37 +02:00
Son NK
677f150fef add unsubscribe header to com emails 2020-10-22 10:44:05 +02:00
Son NK
ea45ac119e Refactor: create Alias.unsubscribe_link 2020-10-22 10:37:02 +02:00
Son NK
4f7b30c204 Set user.paid_lifetime if paid coupon 2020-10-21 19:31:25 +02:00
Son NK
050c2feaeb Add LifetimeCoupon.paid column 2020-10-21 19:31:07 +02:00
Son NK
459f821036 fix name 2020-10-20 20:09:44 +02:00
Son NK
a001132497 improve wording 2020-10-20 18:07:21 +02:00
Son NK
14b86749df add more precision on what is account email 2020-10-20 18:02:52 +02:00
Son NK
6921ab05fd reorganise settings sections 2020-10-20 17:47:58 +02:00
Son NK
635182e1ef move lifetime case to first 2020-10-20 17:45:06 +02:00
Son NK
acce32fcc8 add doc 2020-10-20 17:42:05 +02:00
Son NK
32e25f5378 bring back alias/options v1,2,3 2020-10-20 17:31:43 +02:00
Son NK
828799010b Add CustomDomain.nb_failed_checks column 2020-10-20 16:50:01 +02:00
Son NK
8482a55df6 display whether a domain is premium 2020-10-20 16:44:22 +02:00
Son NK
03521b5a84 do not check alias_domain_prefix when DISABLE_ALIAS_SUFFIX is set 2020-10-20 16:42:05 +02:00
Son NK
886d3a761c delete /alias/options v1,v2,v3 2020-10-19 12:08:47 +02:00
Son NK
a2a4e50f27 remove potential duplicate in available_alias_domains 2020-10-15 17:02:54 +02:00
Son NK
1524bb4e4b black 2020-10-15 16:52:55 +02:00
Son NK
dbf0404aa9 rename public_domain -> sl_domain if applicable 2020-10-15 16:52:38 +02:00
Son NK
4a32db5b5d rename PublicDomain -> SLDomain 2020-10-15 16:51:07 +02:00
Son NK
0a4fc76b61 optimize import 2020-10-15 16:45:28 +02:00
Son NK
adff510359 use PublicDomain instead if ALIAS_DOMAINS 2020-10-15 16:45:08 +02:00
Son NK
521d8e51a5 small fix 2020-10-15 16:25:56 +02:00
Son NK
1fcf166c00 small refactor: add should_add_dkim_signature 2020-10-15 16:24:04 +02:00
Son NK
e79522b638 take into account Premium domains 2020-10-15 16:21:31 +02:00
Son NK
dcbd7baabc Add PublicDomain.premium_only column 2020-10-15 16:08:06 +02:00
Son NK
90163220cf rename email_domain_can_be_used_as_mailbox -> email_can_be_used_as_mailbox 2020-10-15 16:05:47 +02:00
Son NK
f56b0cddb2 use exception log for /alias/options endpoints 2020-10-15 16:02:04 +02:00
Son NK
cd15c64731 Add PREMIUM_ALIAS_DOMAINS config 2020-10-15 16:01:44 +02:00
Son NK
805e78cad1 rename email_belongs_to_alias_domains -> email_belongs_to_default_domains 2020-10-14 18:46:05 +02:00
Son NK
6557b7157f handle the Paddle 147 error 2020-10-12 17:37:04 +02:00
Son NK
8268568f08 add mailbox.disabled column. Disable a mailbox if it fails tests for 10 days consecutive. 2020-10-12 13:28:21 +02:00
Son Nguyen Kim
4e45a619cd
Merge pull request #302 from TheLastProject/feature/custom_domain_random_suffix
Support random suffix for personal domains
2020-10-11 18:06:06 +02:00
Sylvia van Os
9702037573 Reformat with Black 2020-10-09 23:00:10 +02:00
Sylvia van Os
26d0437009 Make prefix generation configurable per domain 2020-10-09 22:54:13 +02:00
Son NK
5486f54955 refactor verify_prefix 2020-10-09 22:08:29 +02:00
Son NK
8dbd3c1c68 more detailed error message when an alias can't be created 2020-10-09 11:48:52 +02:00
Sylvia van Os
6b085960cb Merge branch 'master' of https://github.com/simple-login/app into feature/custom_domain_random_suffix 2020-10-07 18:52:54 +02:00
Sylvia van Os
739fb50b04 Format with Black 2020-10-05 21:12:13 +02:00
Sylvia van Os
aeef9ccca9 Support random suffix for personal domains 2020-10-05 21:00:52 +02:00
Son Nguyen Kim
a4bcf59bfe
Merge pull request #297 from TheLastProject/feature/dedupe_email
Dedupe email address
2020-10-04 15:08:15 +02:00
Son NK
7e425c0338 disable login if user is disabled 2020-10-04 12:49:43 +02:00
Son NK
6c37a91c6d add User.disabled field 2020-10-04 12:49:43 +02:00
Son NK
e225bffc30 add backref for some models 2020-10-04 12:49:43 +02:00
Son Nguyen Kim
73e90e6892
Merge pull request #298 from TheLastProject/feature/autogenerated_icon
Show icon if address was autogenerated
2020-10-03 10:54:41 +02:00
Sylvia van Os
ff0eaa4bbf Show icon if address was autogenerated 2020-10-02 20:52:29 +02:00
Sylvia van Os
7be674c13b Reformat with Black 2020-10-01 21:51:50 +02:00
Sylvia van Os
d8ed1cbbc3 Dedupe email address 2020-10-01 21:35:11 +02:00
Son NK
cbdcab7d24 handle the ValueError in SpamAssassin 2020-09-30 17:24:03 +02:00
Son NK
770b15aba3 do not hardcode spamd user 2020-09-30 14:01:49 +02:00
Son NK
6a4622fca9 replace cx42 by spamd for SpamAssassin
get rid of "info: spamd: handle_user (userdir) unable to find user: 'cx42'" error
2020-09-30 12:47:39 +02:00
Son NK
772a2e7355 add "export alias" button 2020-09-30 12:20:18 +02:00
Son NK
8ed619687f ignore UnicodeDecodeError when parsing SpamAssassin response 2020-09-30 12:00:05 +02:00
Son NK
8517e7d356 refactor com emails: remove non-uses, move to the right location 2020-09-30 11:51:43 +02:00
Son Nguyen Kim
4e7aec7dce
Merge pull request #293 from TheLastProject/patch-1
Add dot after DKIM
2020-09-30 11:09:01 +02:00
Son NK
91e3cc5dcb able to set a different host than 127.0.0.1 and apply black format 2020-09-30 10:32:21 +02:00
Son NK
078368362c copy spamassassin client code from https://github.com/petermat/spamassassin_client 2020-09-30 10:29:52 +02:00
Sylvia van Os
b95c44e3db
Add dot after DKIM
To prevent the domain name being added after it
2020-09-29 19:17:56 +02:00
Son NK
e661f90ce7 do not hard exit when memory exceeds the threshold 2020-09-29 12:33:36 +02:00
Son NK
571e39bb30 user can add/remove authorized address 2020-09-28 21:09:20 +02:00
Son NK
0830bba218 Add AuthorizedAddress model 2020-09-28 17:40:54 +02:00
Son NK
d6d686c4c3 add argument commit= to create() 2020-09-28 17:40:30 +02:00