mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] alias name and forwards should only validate pattern_email
This commit is contained in:
parent
2f12ef0473
commit
5604b0463a
1 changed files with 4 additions and 6 deletions
|
@ -126,7 +126,7 @@ user:
|
||||||
ask: ask_email
|
ask: ask_email
|
||||||
required: True
|
required: True
|
||||||
pattern: &pattern_email
|
pattern: &pattern_email
|
||||||
- !!str ^[\w.-]+@([^\W_A-Z]+([-]*[^\W_A-Z]+)*\.)+([^\W\d_]{2,})$
|
- !!str ".*@.+"
|
||||||
- "pattern_email"
|
- "pattern_email"
|
||||||
-p:
|
-p:
|
||||||
full: --password
|
full: --password
|
||||||
|
@ -261,9 +261,7 @@ alias:
|
||||||
extra:
|
extra:
|
||||||
ask: ask_alias_mailforward
|
ask: ask_alias_mailforward
|
||||||
required: True
|
required: True
|
||||||
pattern: &pattern_listemail
|
pattern: *pattern_email
|
||||||
- !!str ^([\w.-]+(\+[\w.-]+)*@([^\W_A-Z]+([-]*[^\W_A-Z]+)*\.)+([^\W\d_]{2,}),?)+$
|
|
||||||
- "pattern_listemail"
|
|
||||||
|
|
||||||
### alias_update()
|
### alias_update()
|
||||||
update:
|
update:
|
||||||
|
@ -279,13 +277,13 @@ alias:
|
||||||
metavar: MAIL
|
metavar: MAIL
|
||||||
nargs: "*"
|
nargs: "*"
|
||||||
extra:
|
extra:
|
||||||
pattern: *pattern_listemail
|
pattern: *pattern_email
|
||||||
--remove-mailforward:
|
--remove-mailforward:
|
||||||
help: List of mailforward addresses to remove, separated by commas without space
|
help: List of mailforward addresses to remove, separated by commas without space
|
||||||
metavar: MAIL
|
metavar: MAIL
|
||||||
nargs: "*"
|
nargs: "*"
|
||||||
extra:
|
extra:
|
||||||
pattern: *pattern_listemail
|
pattern: *pattern_email
|
||||||
|
|
||||||
### alias_delete()
|
### alias_delete()
|
||||||
delete:
|
delete:
|
||||||
|
|
Loading…
Add table
Reference in a new issue