component email gateway: convert autocrypt header:
Autocrypt header must be transmitted in both directions to allow opportunistic end-to-end encryption with this protocol. Moved email validation regex to `tools/common/regex.py`, as it can be used in other locations. rel 456
This commit is contained in:
parent
5681435532
commit
2a0f4e28f8
1 changed files with 11 additions and 4 deletions
|
|
@ -31,6 +31,8 @@ RE_TEXT_URL = re.compile(r"[^a-zA-Z0-9,_]+")
|
|||
TEXT_MAX_LEN = 60
|
||||
# min lenght is currently deactivated
|
||||
TEXT_WORD_MIN_LENGHT = 0
|
||||
# basic email validation
|
||||
RE_EMAIL = re.compile(r"[^@]+@[^@]+\.[^@]+")
|
||||
|
||||
|
||||
def re_join(exps):
|
||||
|
|
|
|||
Loading…
Reference in a new issue