Skip to content

Commit

Permalink
Don't split body tests on commas (Bug #14546).
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jan 13, 2017
1 parent 3767ada commit d0bf964
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ingo/lib/Script/Sieve.php
Expand Up @@ -711,7 +711,8 @@ protected function _generate()
'comparator' => $comparator);
$use_address_test = false;

if ($condition['match'] != 'regex') {
if ($condition['match'] != 'regex' &&
$condition['field'] != 'Body') {
$condition['value'] = preg_replace('/(.)(?<!\\\)\,(.)/',
"$1\n$2",
$condition['value']);
Expand Down

0 comments on commit d0bf964

Please sign in to comment.