Skip to content

Commit

Permalink
Fix untagged COPYUID responses handling - again (#5982)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Nov 20, 2017
1 parent 471f6a8 commit 1765e85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CHANGELOG Roundcube Webmail
- Fix a couple of warnings on PHP 7.2
- 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 untagged COPYUID responses handling - again (#5982)

RELEASE 1.3.3
-------------
Expand Down
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube_imap_generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -3733,7 +3733,7 @@ public function execute($command, $arguments=array(), $options=0)
}

// 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)) {
$this->data['COPYUID'] = array($m[1], $m[2]);
}
Expand Down

0 comments on commit 1765e85

Please sign in to comment.