Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have written a forum application and I want to create message boxes for each user.

For example, user member name is Osama his mail box will be osama@mysite.com.

I have installed postfix on my server and converted imap users to MySQL.

I have a table named users containing their mail addresses and passwords

I want import their messages to the database.

The normal way to get the messages is connect to imap and get the user messages.

But I want to make it like users and create table named messages to contain user messages

Then to get messages for a user I would do:

mysql_query("SELECT * FROM messages where mail = $user_mail);

Is there any way to do the import from the mail server using cron jobs or something in postfix?

share

migration rejected from stackoverflow.com Jan 20 at 14:21

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by masegaloeh, mdpc, Hyppy, Sven Jan 20 at 14:21

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.