I know there are many search criteria for imap. What I am doing is automating my support mail and updating the content to my DB. I know there are options to search mail like SINCE after "this day". But I don't want use this because when the mail will crossing a limit, may be inefficient like if I am setting the cron for 30 minutes, It may fetch the same item again and again whole day. this is how I am looking in the inbox imap_search($this->folder, 'FROM "iam@example.com"' );
I saw there is a question regarding this in the link Stackoverflow link
But didn't get an idea actually
I am planing to get all mails greater than an UID and update the latest UID in DB, next time only checking UID greater than this and so on. Please help me how the search code need to modified Thanks in advance