Page 1 of 1

Some simple IMAP questions

Posted: Mon Nov 21, 2005 6:35 pm
by MilchstrabeStern
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

Posted: Tue Nov 22, 2005 7:24 am
by MilchstrabeStern
Or at least a function that I can use to filter the results. Maybe it isn't an IMAP function.

Posted: Tue Nov 22, 2005 8:54 pm
by MilchstrabeStern
I hate to be a pain, but I've been spending months on this, and I am running out of time quickly. I've been looking through the php.net documentation, seraching forums, posting, etc. I mean, I am pretty much half way there already. Got a connection running, I can do the mySql stuff, I just need to "filter" or "select" e-mails based on who they are from and if they are flagged or not.

ANY help at all guys, I truely appreciate it.