mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] also output mail-forward when there is a single maildrop
This commit is contained in:
parent
40e907acf5
commit
30d4f11510
1 changed files with 2 additions and 2 deletions
|
@ -158,7 +158,7 @@ def alias_info(auth, alias):
|
|||
if len(alias.split('@')) is 2:
|
||||
filter = 'mail=' + alias
|
||||
else:
|
||||
# TODO better exception
|
||||
# TODO better error message
|
||||
raise MoulinetteError(167, m18n.n('alias_info_failed'))
|
||||
|
||||
result = auth.search('ou=aliases,dc=yunohost,dc=org', filter, alias_attrs)
|
||||
|
@ -172,7 +172,7 @@ def alias_info(auth, alias):
|
|||
'alias': alias['mail'][0]
|
||||
}
|
||||
|
||||
if len(alias['maildrop']) > 1:
|
||||
if len(alias['maildrop']) > 0:
|
||||
result_dict['mail-forward'] = alias['maildrop'][0:]
|
||||
|
||||
if result:
|
||||
|
|
Loading…
Add table
Reference in a new issue