Quote:
Originally posted by chrispadfield
How would the board actually intercept emails? would it use a pop3 account and read them of that? would we need some extra server software do you think to actually intercept the email? i don't know how that bit would work.
Glad people see the potential of the idea, would be a "killer" feature certainly!
|
You don't need extra software. Wouldn't really be hard to implement either on Unix. Right now on most Unix systems have a program called mail installed. This program writes incoming emails to an indexed text file. By using PHP or C++ you can open the mail program, cycle through the messages and create new entries into the MySQL Database. The major trick will be reading the headers to determine if a message is a new topic or reply and attaching the replies to the proper thread.
I have done the reverse of this before, program reads a table in Oracle, sends each record as an email and them marks them as sent in the table.