Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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?


migration rejected from Jan 20 '15 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 '15 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.