Hello !
We are doing a Project named Web Based Email Client. We have to give functionality of sending and receiving emails with attachment which we have already done. Now we have to manage mail folders i.e. Inbox, Sent, Bulk, Trash and custom folders created by the client. Now we are using the sendmail mail server which manages the mails in a mailbox in the form of a simple file and all the mails are retrieved from that file in the inbox. Now we are unable to understand how to manage different folders as there is only one file and we cannot create folders in that file. We have to send different mails to different folders depending on the filters. So plz help us in this problem. Also we have to do spam control and custom filters we want to know if the mail server itself manages the spam and filters or we have to use some database for it say for addressbook also.
We are using the linux platform for implementation and we have a live IP on a running linux server with Apache Web Server, Sendmail mail server, PHP as language used for coding and MySql as database.
Waiting for reply
Salman Zafar
Help reqd on folder management
Moderator: General Moderators
-
salmanzafar3
- Forum Newbie
- Posts: 2
- Joined: Thu May 12, 2005 12:15 am
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
First of all, I would seriously recommend using a database instead of a flatfile to handle all this data. One thing you could do is set a flag when recieving the email. The flag correlates to folders (whos name is stored in the database).
so
So as you are collecting the email, some way or another on the file add some kind of indicator towards which folder this will be stored at. Once again, this would all be incredibly easy with a database.
so
Code: Select all
folders table
ID NAME
1 inbox
2 junkmail
3 my custom folder-
salmanzafar3
- Forum Newbie
- Posts: 2
- Joined: Thu May 12, 2005 12:15 am
My main problem is folder creation
Hello!
My main problem is how to create the mail folders (not ordinary folders). To transfer the mail in any folder is not a great deal if and only if the FOLDERS ARE ONCE CREATED.
so tell me how can i create a folder once i login to my account.
Waiting for quick response
My main problem is how to create the mail folders (not ordinary folders). To transfer the mail in any folder is not a great deal if and only if the FOLDERS ARE ONCE CREATED.
so tell me how can i create a folder once i login to my account.
Waiting for quick response