summaryrefslogtreecommitdiff
path: root/roundcubemail/program/lib
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-06-02 18:12:36 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-06-02 18:12:36 +0000
commit3ec260c3fb85b378e253d4958afe71d425ae4ed6 (patch)
treee86e59e9439e963b373950370d08629f36fac49e /roundcubemail/program/lib
parent03da3ea6ff13903deea76b551b2817f32494fd5b (diff)
- fix FETCH reply parsing (#1485891)
git-svn-id: https://svn.roundcube.net/trunk@2593 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib')
-rw-r--r--roundcubemail/program/lib/imap.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc
index 2954ecfe5..64f0325bd 100644
--- a/roundcubemail/program/lib/imap.inc
+++ b/roundcubemail/program/lib/imap.inc
@@ -1629,7 +1629,7 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set, $uidfetch=false, $bo
}
// the rest of the result
- preg_match('/ BODY\[HEADER.FIELDS \(.*\)\]\s*(.*)/s', $line, $m);
+ preg_match('/ BODY\[HEADER.FIELDS \(.*?\)\]\s*(.*)$/s', $line, $m);
$reslines = explode("\n", trim($m[1], '"'));
// re-parse (see below)
foreach ($reslines as $line) {
@@ -1686,7 +1686,7 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set, $uidfetch=false, $bo
$headers[$k] = '';
}
}
-
+
// create array with header field:data
while ( list($lines_key, $str) = each($lines) ) {
list($field, $string) = iil_SplitHeaderLine($str);