Thomas Bruederli
2014-04-30 0507640ce160905d155ffdcbd4f059ec423cdb66
Don't replace line endings when downloading text/* attachments
2 files modified
4 ■■■■ changed files
program/lib/Roundcube/rcube_imap.php 2 ●●● patch | view | raw | blame | history
program/steps/mail/get.inc 2 ●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_imap.php
@@ -2077,7 +2077,7 @@
        if ($o_part && $o_part->size) {
            $body = $this->conn->handlePartBody($this->folder, $uid, true,
                $part ? $part : 'TEXT', $o_part->encoding, $print, $fp, $o_part->ctype_primary == 'text', $max_bytes);
                $part ? $part : 'TEXT', $o_part->encoding, $print, $fp, $o_part->ctype_primary == 'text' && !$skip_charset_conv, $max_bytes);
        }
        if ($fp || $print) {
program/steps/mail/get.inc
@@ -344,7 +344,7 @@
            header("Content-Length: $size");
          }
          $sent = $RCMAIL->storage->get_message_part($MESSAGE->uid, $part->mime_id, $part, true);
          $sent = $RCMAIL->storage->get_message_part($MESSAGE->uid, $part->mime_id, $part, true, null, true);
        }
      }