Jump to content

Recommended Posts

I am trying to build a PHP web Based Email client like Outlook express for example where the client selects either to leave a copy of the message on the server when receiving the mail or delete it...

 

I figured out how to do most of the job using some of the php IMAP functions. Unfortunately I can't think about the logic to follow in order to reduce the mail check time and at the same time leave a copy of the message on the server. The current procedure opens the mail account, fetches the first message deletes it and goes to the next message and so on. No this is fine for those who selected to remove the message.

 

Now regarding those clients who selected to leave a copy of the message on the server, I thought of saving the message UID into my database and keep looping through the whole mail account for the first time, and the next time I try to fetch that account I search for the message UID in my tables first if i get  match of that record I stop the fetch and go to another account, if not then i fetch that message and go to the next until I get a match in my old fetched messages.

 

But then this seems to be a very slow procedure and not the most accurate, does anyone here have a better Idea ?!

 

Link to comment
https://forums.phpfreaks.com/topic/84656-php-webmail-application/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.