mirror of
https://github.com/simple-login/app.git
synced 2024-11-14 08:01:13 +01:00
Merge pull request #998 from simple-login/disabled-mailbox
take into account status.E518
This commit is contained in:
commit
cb5fea033f
1 changed files with 6 additions and 1 deletions
|
@ -2237,8 +2237,13 @@ def handle(envelope: Envelope, msg: Message) -> str:
|
||||||
|
|
||||||
# to know whether both successful and unsuccessful deliveries can happen at the same time
|
# to know whether both successful and unsuccessful deliveries can happen at the same time
|
||||||
nb_success = len([is_success for (is_success, smtp_status) in res if is_success])
|
nb_success = len([is_success for (is_success, smtp_status) in res if is_success])
|
||||||
|
# ignore E518 which is a normal condition
|
||||||
nb_non_success = len(
|
nb_non_success = len(
|
||||||
[is_success for (is_success, smtp_status) in res if not is_success]
|
[
|
||||||
|
is_success
|
||||||
|
for (is_success, smtp_status) in res
|
||||||
|
if not is_success and smtp_status != status.E518
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
if nb_success > 0 and nb_non_success > 0:
|
if nb_success > 0 and nb_non_success > 0:
|
||||||
|
|
Loading…
Reference in a new issue