Commit 70766aa7 authored by Giovannoni Laurent's avatar Giovannoni Laurent

Merge branch 'develop' into 'master'

WS REST

See merge request !7
parents 4c6c1324 3894bd15
......@@ -81,7 +81,7 @@ class MailCapture
if($error) {
if (
1 === preg_match(
'/Unexpected characters at end of address: <(.*)>/',
'/Unexpected characters at end of address/',
$error,
$matches
)
......@@ -93,7 +93,7 @@ class MailCapture
}
if (
1 === preg_match(
'/Must use comma to separate addresses: <(.*)>/',
'/Must use comma to separate addresses/',
$error,
$matches
)
......@@ -103,6 +103,30 @@ class MailCapture
'clear error because we found pattern : Must use comma to separate addresses'
);
}
if (
1 === preg_match(
'/Unexpected characters after address in group/',
$error,
$matches
)
) {
$clearError = true;
$_SESSION['capture']->logEvent(
'clear error because we found pattern : Unexpected characters after address in group'
);
}
if (
1 === preg_match(
'/Invalid mailbox list/',
$error,
$matches
)
) {
$clearError = true;
$_SESSION['capture']->logEvent(
'clear error because we found pattern : Invalid mailbox list'
);
}
$actual_errors ++;
$_SESSION['capture']->logEvent(
$error,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment