Fix bug where text: syntax was forced for strings longer than 1024 characters (#6143)

pull/6465/head
Aleksander Machniak 7 years ago
parent 78d896d469
commit 369fedf313

@ -1,6 +1,8 @@
CHANGELOG Roundcube Webmail CHANGELOG Roundcube Webmail
=========================== ===========================
- Managesieve: Fix bug where text: syntax was forced for strings longer than 1024 characters (#6143)
RELEASE 1.3.4 RELEASE 1.3.4
------------- -------------
- Fix bug where contacts search could skip some records (#6130) - Fix bug where contacts search could skip some records (#6130)

@ -1,3 +1,4 @@
- Fix bug where text: syntax was forced for strings longer than 1024 characters (#6143)
- Fix parsing dot-staffed lines in multiline text (#5838) - Fix parsing dot-staffed lines in multiline text (#5838)
- Fix AM/PM suffix in vacation time selectors - Fix AM/PM suffix in vacation time selectors
- Fix bug where 'exists' operator was reset to 'contains' (#5899) - Fix bug where 'exists' operator was reset to 'contains' (#5899)

@ -1100,7 +1100,7 @@ class rcube_sieve_script
} }
// multi-line string // multi-line string
if (preg_match('/[\r\n\0]/', $str) || strlen($str) > 1024) { if (preg_match('/[\r\n\0]/', $str)) {
return sprintf("text:\n%s\n.\n", self::escape_multiline_string($str)); return sprintf("text:\n%s\n.\n", self::escape_multiline_string($str));
} }
// quoted-string // quoted-string

@ -50,3 +50,9 @@ if envelope :domain :is "From" "domain.tld"
fileinto "domain.tld"; fileinto "domain.tld";
stop; stop;
} }
# rule:[do not wrap long lines]
if envelope :domain :is "From" "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
{
fileinto "domain.tld";
stop;
}

@ -50,3 +50,9 @@ if envelope :domain :is "From" "domain.tld"
fileinto "domain.tld"; fileinto "domain.tld";
stop; stop;
} }
# rule:[do not wrap long lines]
if envelope :domain :is "From" "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
{
fileinto "domain.tld";
stop;
}

Loading…
Cancel
Save