https://github.com/samwilson/email_archiver
A simple (and probably useless to most people) system for archiving plain-text emails and producing annual LaTeX-formatted concatenations of same.
https://github.com/samwilson/email_archiver
archiving email latex printing
Last synced: 2 months ago
JSON representation
A simple (and probably useless to most people) system for archiving plain-text emails and producing annual LaTeX-formatted concatenations of same.
- Host: GitHub
- URL: https://github.com/samwilson/email_archiver
- Owner: samwilson
- License: gpl-3.0
- Created: 2012-12-16T00:28:32.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2019-05-19T08:05:34.000Z (about 6 years ago)
- Last Synced: 2025-02-12T18:52:52.014Z (4 months ago)
- Topics: archiving, email, latex, printing
- Language: PHP
- Size: 131 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Email Archiver
==============Email Archiver is a simple email archiving database and web interface.
* **Homepage:** https://samwilson.id.au/email_archiver
* **Source code:** https://github.com/samwilson/email_archiver
* CircleCI: [](https://circleci.com/gh/samwilson/email_archiver)Installation
------------The database has the following structure:
CREATE TABLE IF NOT EXISTS `emails` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`to_id` int(11) NOT NULL,
`from_id` int(11) NOT NULL,
`date_and_time` datetime DEFAULT NULL,
`subject` varchar(200) CHARACTER SET utf8mb4 NOT NULL,
`message_body` text CHARACTER SET utf8mb4,
PRIMARY KEY (`id`),
KEY to_id (`to_id`),
KEY from_id (`from_id`)
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4;CREATE TABLE IF NOT EXISTS `people` (
`id` int(5) NOT NULL AUTO_INCREMENT,
`name` varchar(150) CHARACTER SET utf8mb4 NOT NULL,
`email_address` varchar(100) CHARACTER SET utf8mb4 NOT NULL,
`notes` text CHARACTER SET utf8mb4 NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4;ALTER TABLE `emails`
ADD CONSTRAINT emails_from FOREIGN KEY (from_id) REFERENCES people (id),
ADD CONSTRAINT emails_to FOREIGN KEY (to_id) REFERENCES people (id);Create a password and add it to `config.php`:
$ php -r "echo password_hash('y0urpwd123!', PASSWORD_DEFAULT).PHP_EOL;"
Make sure the webserver user can write to `var/`.
Licence
-------This is Free Software, released under the GNU General Public License (GPL).