Skip to content

Commit

Permalink
Fix so fallback from BINARY to BODY FETCH is used also on [PARSE] err…
Browse files Browse the repository at this point in the history
…ors in dovecot 2.3 (#6383)
  • Loading branch information
alecpl committed Aug 6, 2018
1 parent 988ed7e commit 1933249
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 @@ -91,6 +91,7 @@ CHANGELOG Roundcube Webmail
- Fix so links over images are not removed in plain text signatures converted from HTML (#4473)
- Fix various issues when downloading files with names containing non-ascii chars, use RFC 2231 (#5772)
- Fix PHP warnings on dummy QUOTA responses in Courier-IMAP 4.17.1 (#6374)
- Fix so fallback from BINARY to BODY FETCH is used also on [PARSE] errors in dovecot 2.3 (#6383)

RELEASE 1.3.7
-------------
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 @@ -2822,7 +2822,7 @@ public function handlePartBody($mailbox, $id, $is_uid=false, $part='', $encoding
}

// handle UNKNOWN-CTE response - RFC 3516, try again with standard BODY request
if ($binary && !$found && preg_match('/^' . $key . ' NO \[UNKNOWN-CTE\]/i', $line)) {
if ($binary && !$found && preg_match('/^' . $key . ' NO \[(UNKNOWN-CTE|PARSE)\]/i', $line)) {
$binary = $initiated = false;
continue;
}
Expand Down

0 comments on commit 1933249

Please sign in to comment.