Some simple IMAP questions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
MilchstrabeStern
Forum Newbie
Posts: 9
Joined: Sat Nov 19, 2005 8:06 pm

Some simple IMAP questions

Post 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
MilchstrabeStern
Forum Newbie
Posts: 9
Joined: Sat Nov 19, 2005 8:06 pm

Post by MilchstrabeStern »

Or at least a function that I can use to filter the results. Maybe it isn't an IMAP function.
MilchstrabeStern
Forum Newbie
Posts: 9
Joined: Sat Nov 19, 2005 8:06 pm

Post 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.
Post Reply