note 114119 added to function.imap-fetch-overview

From: Date: Mon, 13 Jan 2014 03:25:22 +0000
Subject: note 114119 added to function.imap-fetch-overview
Groups: php.notes 
Request: Send a blank email to php-notes+get-198219@lists.php.net to get a copy of this message
The Remote class here (https://github.com/newscloud/mail_filter/blob/master/app/protected/models/Remote.php) has a lot of examples of processing mailbox folders with imap-fetch-overview: $this->open($account_id,$this->path_inbox); $recent_messages = @imap_search($this->stream, 'SINCE "'.date("j F Y",$tstamp).'"',SE_UID); // 30 November 2013 if ($recent_messages===false) continue; // to do - continue into next account $result = imap_fetch_overview($this->stream, implode(',',array_slice($recent_messages,0,$message_limit)),FT_UID); foreach ($result as $item) { $msg = $this->parseHeader($item); ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/function.imap-fetch-overview.php Edit -- https://master.php.net/note/edit/114119 Del: integrated -- https://master.php.net/note/delete/114119/integrated Del: useless -- https://master.php.net/note/delete/114119/useless Del: bad code -- https://master.php.net/note/delete/114119/bad+code Del: spam -- https://master.php.net/note/delete/114119/spam Del: non-english -- https://master.php.net/note/delete/114119/non-english Del: in docs -- https://master.php.net/note/delete/114119/in+docs Del: other reasons-- https://master.php.net/note/delete/114119 Reject -- https://master.php.net/note/reject/114119 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198219) next »