summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-06 17:47:34 +0000
committeralecpl <alec@alec.pl>2008-10-06 17:47:34 +0000
commit28db73f7c9aa844d247332b50b19b0074fe74598 (patch)
tree5dca3ffe0982b6102b954fdb85eaa591297aadf3 /program
parent163a13c70f0268a5ea61ca8da9ad1d47f155fc2f (diff)
- #1485468: fix attachment filename (RFC2231 related)
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_imap.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index fa4cae57c..4a71c974f 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -1191,9 +1191,9 @@ class rcube_imap
else if (!empty($part->d_parameters['filename*0'])) {
$i = 0;
while (isset($part->d_parameters['filename*'.$i])) {
- $i++;
$filename_mime .= $part->d_parameters['filename*'.$i];
- }
+ $i++;
+ }
// some servers (eg. dovecot-1.x) have no support for parameter value continuations
// we must fetch and parse headers "manually"
//TODO: fetching headers for a second time is not effecient, this code should be moved somewhere earlier --tensor
@@ -1211,8 +1211,8 @@ class rcube_imap
else if (!empty($part->d_parameters['filename*0*'])) {
$i = 0;
while (isset($part->d_parameters['filename*'.$i.'*'])) {
- $i++;
$filename_encoded .= $part->d_parameters['filename*'.$i.'*'];
+ $i++;
}
if ($i<2) {
$headers = iil_C_FetchPartHeader($this->conn, $this->mailbox, $this->_msg_id, $part->mime_id);
@@ -1227,8 +1227,8 @@ class rcube_imap
else if (!empty($part->ctype_parameters['name*0'])) {
$i = 0;
while (isset($part->ctype_parameters['name*'.$i])) {
- $i++;
$filename_mime .= $part->ctype_parameters['name*'.$i];
+ $i++;
}
if ($i<2) {
$headers = iil_C_FetchPartHeader($this->conn, $this->mailbox, $this->_msg_id, $part->mime_id);
@@ -1243,8 +1243,8 @@ class rcube_imap
else if (!empty($part->ctype_parameters['name*0*'])) {
$i = 0;
while (isset($part->ctype_parameters['name*'.$i.'*'])) {
- $i++;
$filename_encoded .= $part->ctype_parameters['name*'.$i.'*'];
+ $i++;
}
if ($i<2) {
$headers = iil_C_FetchPartHeader($this->conn, $this->mailbox, $this->_msg_id, $part->mime_id);