https://github.com/mrkmg/email2mysql
A script that takes an email from STDIN (for example from a pipe) and inserts into a MySQL database.
https://github.com/mrkmg/email2mysql
Last synced: 4 months ago
JSON representation
A script that takes an email from STDIN (for example from a pipe) and inserts into a MySQL database.
- Host: GitHub
- URL: https://github.com/mrkmg/email2mysql
- Owner: mrkmg
- Created: 2012-09-13T15:31:57.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-09-13T15:48:05.000Z (almost 13 years ago)
- Last Synced: 2025-02-04T17:54:56.461Z (5 months ago)
- Language: Perl
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
email2mysql
===========A script that takes an email from STDIN (for example from a pipe) and inserts into a MySQL database.
Usage
=====To use this script, first replace the following items in the script:
- _\_DATABASE__ The name of the Schema/Database
- _\_SERVER__ The host of the MySQL Server. ex: localhost, 192.168.0.10, etc
- _\_USER__ The user of the MySQL database
- _\_PASSWORD __ The password of the MySQL userPlace the script on your server and make sure it is accessible and executable by your MTA. Set your MTA to pipe incoming emails to this script. That should be all that is needed.
Requirements
============You must have perl installed and the following modules installed:
- DBI
- Email::MIME
- Email::Address
- HTML::Strip