Fix rejected mails not being quarantized properly if they are tagged
parent
96d99b9faf
commit
40a826a347
|
@ -84,6 +84,9 @@ $rcpt_final_mailboxes = array();
|
||||||
|
|
||||||
// Loop through all rcpts
|
// Loop through all rcpts
|
||||||
foreach (json_decode($rcpts, true) as $rcpt) {
|
foreach (json_decode($rcpts, true) as $rcpt) {
|
||||||
|
// Remove tag
|
||||||
|
$rcpt = preg_replace('/^(.*?)\+.*(@.*)$/', '$1$2', $rcpt);
|
||||||
|
|
||||||
// Break rcpt into local part and domain part
|
// Break rcpt into local part and domain part
|
||||||
$parsed_rcpt = parse_email($rcpt);
|
$parsed_rcpt = parse_email($rcpt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue