summaryrefslogtreecommitdiff
path: root/program/lib/imap.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-11-19 17:16:43 +0000
committeralecpl <alec@alec.pl>2008-11-19 17:16:43 +0000
commitf14ac8cefeec6a4095bc60b4881b0a70e379a164 (patch)
tree5c428a3e91a9c2073caf130bbb47fecf15215896 /program/lib/imap.inc
parentceb52fe07476f9584e0ffe3d5937b47d087a145e (diff)
- last change fix
Diffstat (limited to 'program/lib/imap.inc')
-rw-r--r--program/lib/imap.inc12
1 files changed, 4 insertions, 8 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 316980ca5..0f540dde5 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -2370,12 +2370,8 @@ function iil_C_UnSubscribe(&$conn, $folder) {
function iil_C_FetchPartHeader(&$conn, $mailbox, $id, $part) {
- if (empty($part)) {
- $part = 'HEADER';
- } else {
- $part .= '.MIME';
- }
-
+ $part = empty($part) ? 'HEADER' : $part.'.MIME';
+
return iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, 1);
}
@@ -2388,10 +2384,10 @@ function iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, $mode, $file=NULL) {
$fp = $conn->fp;
$result = false;
- if (($part == 0) || empty($part)) {
+ if (empty($part)) {
$part = 'TEXT';
}
-
+
if (iil_C_Select($conn, $mailbox)) {
$reply_key = '* ' . $id;