Some simple IMAP questions
Posted: Mon Nov 21, 2005 6:35 pm
Hey guys!
I finally got my connections working again, so now I can get back to what I was doing:
I can open my mail box stream using imap_open, see the header info, and sort it all by FROM or DATE, etc. What I want to do is basically do something like that of a database query. SELECT *FROM blank WHERE blank = blank AND blank = blank. Except I need to do this with Imap functions and I don't know how.
I want to select all e-mails WHERE FROM = $email AND flagged=flagged.
I have no idea how to do this with IMAP I checked on php.net, but am having trouble finding something that would help me. I just want to select any unflagged message from that e-mail address and then the script places it into a database, flags it, and then goes through the loop again until another e-mail is recieved.
Any help at all is appreciated!
-Thanks!
-Bryan
I finally got my connections working again, so now I can get back to what I was doing:
I can open my mail box stream using imap_open, see the header info, and sort it all by FROM or DATE, etc. What I want to do is basically do something like that of a database query. SELECT *FROM blank WHERE blank = blank AND blank = blank. Except I need to do this with Imap functions and I don't know how.
I want to select all e-mails WHERE FROM = $email AND flagged=flagged.
I have no idea how to do this with IMAP I checked on php.net, but am having trouble finding something that would help me. I just want to select any unflagged message from that e-mail address and then the script places it into a database, flags it, and then goes through the loop again until another e-mail is recieved.
Any help at all is appreciated!
-Thanks!
-Bryan