Example #1
0
function rss_getItems($local = '')
{
    $xml = '';
    srand(time());
    db_connect();
    if (!db_isConnected()) {
        return xml;
    }
    $mails = db_getMailsOf($local . '@pookmail.com', $false);
    while ($e = array_pop($mails)) {
        $xml .= "<item>\n";
        $xml .= "<title>" . $e['subject'] . "</title>\n";
        $xml .= "<guid>" . $e['subject'] . "</guid>\n";
        $xml .= "<link>http://www.pookmail.com/mailbox.php?email=" . $local . "&amp;sid=" . md5(rand()) . "</link>\n";
        $xml .= "<description>" . $e['from'] . "</description>\n";
        //$xml .= "<pubDate>".date("D, j M Y H:i:s Z" , $e['date'])."</pubDate>\n";
        $xml .= "<pubDate>" . date("r", $e['date']) . "</pubDate>\n";
        $xml .= "</item>\n";
    }
    db_close();
    return $xml;
}
Example #2
0
function getUserEmails($email)
{
    if (isInternalAccount($email)) {
        return getDontBotherMeEmail();
    }
    return db_getMailsOf($email, true);
}