mirror of
https://github.com/GRFreire/nthmail.git
synced 2026-01-10 13:29:37 +00:00
there is no current need to have a separate table for keeping track of the inboxes, since all emails are getting stored upon arrival and anyone can access all mails from any rcpt address. also, added a arrived_at column, as a utc unix timestamp. This serves the obvious reason to have a ts on an email, but also allows this service to delete old mail.
8 lines
175 B
SQL
8 lines
175 B
SQL
CREATE TABLE mails (
|
|
id integer not null primary key,
|
|
arrived_at integer not null,
|
|
rcpt_addr text not null,
|
|
from_addr text not null,
|
|
data blob not null
|
|
);
|