I found out exactly what the developers of celular companies do to test their gmail clients.
Well, start normalizing the connection, then:
$t1=time();
$tt=$t1+(60*1);
do{
if(isset($t2)) unset($t2);
$t2=time();
if(imap_num_msg($imap)!=0){
$mc=imap_check($imap);
}else echo 'No new messagens';
sleep(rand(7,13));
if(!@imap_ping($imap)){
}
}while($tt>$t2);
What is it.
, , IMAP. , , IMAP - "Live Sync", MTA (, ), IMAP - " pusshed" ".
- 5 10 ,
- Gmail 10 .
- IMAP IMAP (IMAP-IDLE) 29 . Auto-Retrieve 20-30 , , IMAP.
- GMAIL , IMAP, mobiPush .
- Gmail 10 , Gmail.