Fix untagged COPYUID responses handling - again (#5982)

pull/6043/head
Aleksander Machniak 7 years ago
parent 39e0b0e456
commit 36638ec0c2

@ -56,6 +56,7 @@ CHANGELOG Roundcube Webmail
- Fix various issues when downloading files with names containing non-ascii chars, use RFC 2231 (#5772) - Fix various issues when downloading files with names containing non-ascii chars, use RFC 2231 (#5772)
- Fix broken long filenames when using imap4d server - workaround server bug (#6048) - Fix broken long filenames when using imap4d server - workaround server bug (#6048)
- Fix so temp_dir misconfiguration prints an error to the log (#6045) - Fix so temp_dir misconfiguration prints an error to the log (#6045)
- Fix untagged COPYUID responses handling - again (#5982)
RELEASE 1.3.3 RELEASE 1.3.3
------------- -------------

@ -3715,7 +3715,7 @@ class rcube_imap_generic
} }
// parse untagged response for [COPYUID 1204196876 3456:3457 123:124] (RFC6851) // parse untagged response for [COPYUID 1204196876 3456:3457 123:124] (RFC6851)
if ($line && $command == 'UID MOVE' && substr_compare($line, '* OK', 0, 4, true)) { if ($line && $command == 'UID MOVE') {
if (preg_match("/^\* OK \[COPYUID [0-9]+ ([0-9,:]+) ([0-9,:]+)\]/i", $line, $m)) { if (preg_match("/^\* OK \[COPYUID [0-9]+ ([0-9,:]+) ([0-9,:]+)\]/i", $line, $m)) {
$this->data['COPYUID'] = array($m[1], $m[2]); $this->data['COPYUID'] = array($m[1], $m[2]);
} }

Loading…
Cancel
Save