Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Anti-censorship
BridgeDB
Commits
43e1c994
Unverified
Commit
43e1c994
authored
Jul 07, 2014
by
Isis Lovecruft
Browse files
Add EMAIL_BLACKLIST and EMAIL_FUZZY_MATCH settings to test/email_helpers.py.
parent
feea1567
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/bridgedb/test/email_helpers.py
View file @
43e1c994
...
...
@@ -38,6 +38,8 @@ EMAIL_DOMAIN_RULES = {
}
EMAIL_DOMAINS
=
[
"gmail.com"
,
"example.com"
,
"localhost"
]
EMAIL_WHITELIST
=
{
'white@list.ed'
:
'ABCD1234ABCD1234ABCD1234ABCD1234ABCD1234'
}
EMAIL_BLACKLIST
=
[
'feidanchaoren'
]
EMAIL_FUZZY_MATCH
=
4
EMAIL_USERNAME
=
"bridges"
EMAIL_SMTP_HOST
=
"127.0.0.1"
EMAIL_SMTP_PORT
=
25
...
...
@@ -56,6 +58,8 @@ EMAIL_DOMAIN_MAP = %s
EMAIL_DOMAIN_RULES = %s
EMAIL_DOMAINS = %s
EMAIL_WHITELIST = %s
EMAIL_BLACKLIST = %s
EMAIL_FUZZY_MATCH = %s
EMAIL_USERNAME = %s
EMAIL_SMTP_HOST = %s
EMAIL_SMTP_PORT = %s
...
...
@@ -72,6 +76,8 @@ EMAIL_PORT = %s
repr
(
EMAIL_DOMAIN_RULES
),
repr
(
EMAIL_DOMAINS
),
repr
(
EMAIL_WHITELIST
),
repr
(
EMAIL_BLACKLIST
),
repr
(
EMAIL_FUZZY_MATCH
),
repr
(
EMAIL_USERNAME
),
repr
(
EMAIL_SMTP_HOST
),
repr
(
EMAIL_SMTP_PORT
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment