|
|
@ -2370,11 +2370,7 @@ function iil_C_UnSubscribe(&$conn, $folder) {
|
|
|
|
|
|
|
|
|
|
|
|
function iil_C_FetchPartHeader(&$conn, $mailbox, $id, $part) {
|
|
|
|
function iil_C_FetchPartHeader(&$conn, $mailbox, $id, $part) {
|
|
|
|
|
|
|
|
|
|
|
|
if (empty($part)) {
|
|
|
|
$part = empty($part) ? 'HEADER' : $part.'.MIME';
|
|
|
|
$part = 'HEADER';
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$part .= '.MIME';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, 1);
|
|
|
|
return iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2388,7 +2384,7 @@ function iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, $mode, $file=NULL) {
|
|
|
|
|
|
|
|
|
|
|
|
$fp = $conn->fp;
|
|
|
|
$fp = $conn->fp;
|
|
|
|
$result = false;
|
|
|
|
$result = false;
|
|
|
|
if (($part == 0) || empty($part)) {
|
|
|
|
if (empty($part)) {
|
|
|
|
$part = 'TEXT';
|
|
|
|
$part = 'TEXT';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|