Add ability to specify SMTP server directly.

Closes #32.
Closes #30.
This commit is contained in:
Boris Gulay
2018-12-22 13:31:25 +03:00
parent d65ad79709
commit f796334126
7 changed files with 247 additions and 176 deletions

View File

@@ -16,19 +16,22 @@ CREATE TABLE ident_switch
varchar(64),
password
varchar(64),
host
imap_host
varchar(64),
port
imap_port
integer
CHECK(port > 0 AND port <= 65535),
delimiter
char(1),
label
varchar(32),
flags
integer
NOT NULL
DEFAULT(0),
smtp_host
varchar(64),
smtp_port
integer
CHECK(port > 0 AND port <= 65535),
UNIQUE (user_id, label)
);

View File

@@ -0,0 +1,31 @@
ALTER TABLE
ident_switch
RENAME COLUMN
host
TO
imap_host;
ALTER TABLE
ident_switch
RENAME COLUMN
port
TO
imap_port;
ALTER TABLE
ident_switch
ADD COLUMN
smtp_host
varchar(64);
ALTER TABLE
ident_switch
ADD COLUMN
smtp_port
integer
CHECK(smtp_port > 0 AND smtp_port <= 65535);
ALTER TABLE
ident_switch
DROP COLUMN
delimiter;