make recvmail work

unlike sendmail, recvmail is always optional. this is the case because
the cloudron may not receive emails at all, so app always has to be
prepared for it.

part of #804
This commit is contained in:
Girish Ramakrishnan
2021-10-01 12:09:13 -07:00
parent aed84a6ac9
commit a3fc5f226a
7 changed files with 134 additions and 46 deletions

View File

@@ -86,6 +86,9 @@ CREATE TABLE IF NOT EXISTS apps(
enableMailbox BOOLEAN DEFAULT 1, // whether sendmail addon is enabled
mailboxName VARCHAR(128), // mailbox of this app
mailboxDomain VARCHAR(128), // mailbox domain of this apps
enableInbox BOOLEAN DEFAULT 0, // whether recvmail addon is enabled
inboxName VARCHAR(128), // mailbox of this app
inboxDomain VARCHAR(128), // mailbox domain of this apps
label VARCHAR(128), // display name
tagsJson VARCHAR(2048), // array of tags
dataDir VARCHAR(256) UNIQUE,