diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-11-20 08:46:59 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-11-20 08:46:59 +0000 |
| commit | 913d24676b3d022eda8391d69497a0ed654f4ba8 (patch) | |
| tree | 58127cf001f3f2a5eb01e8f8c9befd542f5d0daa /roundcubemail/program/lib | |
| parent | beeb9e786c452cdd5664842f8657099dd0899ff5 (diff) | |
- Speed up raw message body handling (call FETCH only once for the whole message insteade of twice for headers and body)
git-svn-id: https://svn.roundcube.net/trunk@2069 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib')
| -rw-r--r-- | roundcubemail/program/lib/imap.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc index 0f540dde5..65cc5c69f 100644 --- a/roundcubemail/program/lib/imap.inc +++ b/roundcubemail/program/lib/imap.inc @@ -71,6 +71,7 @@ - added BYE response simple support for endless loop prevention - added 3rd argument in iil_StartsWith* functions - fix iil_C_FetchPartHeader() in some cases by use of iil_C_HandlePartBody() + - allow iil_C_HandlePartBody() to fetch whole message ********************************************************/ @@ -2375,7 +2376,7 @@ function iil_C_FetchPartHeader(&$conn, $mailbox, $id, $part) { return iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, 1); } -function iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, $mode, $file=NULL) { +function iil_C_HandlePartBody(&$conn, $mailbox, $id, $part='', $mode=1, $file=NULL) { /* modes: 1: return string (or write to $file pointer) 2: print @@ -2384,9 +2385,6 @@ function iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, $mode, $file=NULL) { $fp = $conn->fp; $result = false; - if (empty($part)) { - $part = 'TEXT'; - } if (iil_C_Select($conn, $mailbox)) { $reply_key = '* ' . $id; |
