Exemple #1
0
/* Block for handling incoming url vars */
/****************************************/
if (isset($sendreceipt)) {
    if (!$message->is_mdnsent) {
        if (isset($identity)) {
            $final_recipient = getPref($data_dir, $username, 'email_address0', '');
        } else {
            $final_recipient = getPref($data_dir, $username, 'email_address', '');
        }
        $final_recipient = trim($final_recipient);
        if ($final_recipient == '') {
            $final_recipient = getPref($data_dir, $username, 'email_address', '');
        }
        $supportMDN = ServerMDNSupport($mbx_response["PERMANENTFLAGS"]);
        if (SendMDN($mailbox, $passed_id, $final_recipient, $message, $imapConnection) > 0 && $supportMDN) {
            ToggleMDNflag(true, $imapConnection, $mailbox, $passed_id, $uid_support);
            $message->is_mdnsent = true;
            $messages[$uidvalidity][$passed_id] = $message;
        }
    }
}
/***********************************************/
/* End of block for handling incoming url vars */
/***********************************************/
$msgs[$passed_id]['FLAG_SEEN'] = true;
$messagebody = '';
do_hook('read_body_top');
if ($show_html_default == 1) {
    $ent_ar = $message->findDisplayEntity(array());
} else {
    $ent_ar = $message->findDisplayEntity(array(), array('text/plain'));
Exemple #2
0
// gmail does not mark messages as read when retrieving the message body
// even though RFC 3501, section 6.4.5 (FETCH Command) says:
// "The \Seen flag is implicitly set; if this causes the flags to change,
// they SHOULD be included as part of the FETCH responses."
//
if ($imap_server_type == 'gmail') {
    sqimap_toggle_flag($imapConnection, $passed_id, '\\Seen', true, true);
}
/****************************************/
/* Block for handling incoming url vars */
/****************************************/
if (isset($sendreceipt)) {
    if (!$message->is_mdnsent) {
        $supportMDN = ServerMDNSupport($aMailbox["PERMANENTFLAGS"]);
        if (SendMDN($mailbox, $passed_id, $message, $imapConnection) > 0 && $supportMDN) {
            ToggleMDNflag(true, $imapConnection, $mailbox, $passed_id);
            $message->is_mdnsent = true;
            $aMailbox['MSG_HEADERS'][$passed_id]['MESSAGE_OBJECT'] = $message;
        }
    }
}
/***********************************************/
/* End of block for handling incoming url vars */
/***********************************************/
$oTemplate->assign('aAttribs', array('class' => 'entity_sep'));
$hr = $oTemplate->fetch('horizontal_rule.tpl');
$messagebody = '';
do_hook('read_body_top', $null);
if ($show_html_default == 1) {
    $ent_ar = $message->findDisplayEntity(array());
} else {