nthmail/migration.sql
Guilherme Rugai Freire a88e5e90dc
parse mail subject when receiving and saving to db
this way, when the inbox route is called, there is no need to parse all
mails neither request them from db just so it can have their subject
2024-07-18 22:10:35 -03:00

11 lines
221 B
SQL

pragma journal_mode = wal;
CREATE TABLE mails (
id integer not null primary key,
arrived_at integer not null,
rcpt_addr text not null,
from_addr text not null,
subject text,
data blob not null
);