Skip to content

Commit ca9fab3

Browse files
committed
outgoing_bcc regex matches more mail_forwarding.destination addrs
1 parent cefa5f0 commit ca9fab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/tpl/mysql-virtual_outgoing_bcc.cf.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ query = SELECT sender_cc FROM (
88
UNION
99
SELECT SUBSTRING_INDEX(u.sender_cc, ',', 1) AS sender_cc
1010
FROM mail_user u, mail_forwarding f
11-
WHERE f.destination REGEXP CONCAT( '(^|\\n)[[:blank:]]*,?[[:blank:]]*',
11+
WHERE f.destination REGEXP CONCAT( '((^|\\n)[[:blank:]]*,?|[[:alnum:]][[:blank:]]*,)[[:blank:]]*',
1212
REPLACE( REPLACE(u.email, '+', '\\+'), '.', '\\.' ),
13-
'[[:blank:]]*,?[[:blank:]]*(\\r?\\n|$)' )
13+
'[[:blank:]]*(,[[:blank:]]*[[:alnum:]]|,?[[:blank:]]*(\\r?\\n|$))' )
1414
AND u.disablesmtp = 'n' AND u.sender_cc != '' AND u.server_id = {server_id}
1515
AND f.source = '%s' AND f.allow_send_as = 'y' AND f.active = 'y' AND f.server_id = {server_id}
1616
) table1 WHERE sender_cc != '' LIMIT 1

0 commit comments

Comments
 (0)