Well, since I can't post in the general forum, I guess I'll post here...
I've created a general email system on my website and it's working fine, but lately I've been doing some tinkering and wondering if there's a way to create "folders" (i.e. unread, read, deleted). My email server is IMAP and the only folder it has is "INBOX". Looking at the webmail supplied by the web hosting company, it also has "INBOX.Trash", "INBOX.Sent" etc, but when I try to call these through the code, I get an authorization failure. So what I've done is have it wrap bold tags around it, and if it's marked for deletion to wrap it in italic tags.
Now what I would like to do is setup a couple quick checks to see if the user would like to see only the read/unread/deleted messages, but my code just retrieves all the messages. Below is the code that is used to retrieve the messages:
$conn = @imap_open("\{$server/imap}INBOX", $user, $pass);
$headers = @imap_headers($conn);
$numEmails = sizeof($headers);
If it were more like creating conditions in SQL, it wouldn't be that big of a deal, but I don't really have that much experience with email/imap coding. I could create folders on the email server, but it wouldn't automatically move my deleted items and the read items so, I'd still need to create something to move them around, so doing it this way might be easier in the end anyway.
Thanks for any help you may have.