This class can retrieve messages from a mailbox and insert them into a MySQL database.
The class retrieves and parses messages from a mailbox using the PHP IMAP extension.
The parsed messages can be stored in a MySQL database table. Message attachments are stored in server files.
The class can also perform some basic spam checking on the retrieved messages by verifying the sender address against a blacklist, and verify the existence of banned words in the message subject or body. The sender blacklist and banned words are also stored in the database tables.
The message processing activity is logged in a separate database table.
The class can also retrieve the messages and logged actions from the database. |