diff options
author | Runxi Yu <me@runxiyu.org> | 2025-01-13 12:02:49 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-01-13 12:02:49 +0800 |
commit | 42c5f39700c6ba95a6b924be807e8cddd69c3bdd (patch) | |
tree | a61dc937793b00684a03a14b2ec4adfca5f632da /errors.go | |
parent | Add addresses (diff) | |
download | maild-42c5f39700c6ba95a6b924be807e8cddd69c3bdd.tar.gz maild-42c5f39700c6ba95a6b924be807e8cddd69c3bdd.tar.zst maild-42c5f39700c6ba95a6b924be807e8cddd69c3bdd.zip |
Add PostgreSQL mail store support
Diffstat (limited to 'errors.go')
-rw-r--r-- | errors.go | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -2,9 +2,16 @@ package main import ( "errors" + "fmt" + "strings" ) var ( - err_deliver_write = errors.New("unable to write to filesystem while attempting to deliver message") - err_unsupported_database_type = errors.New("unsupported database type; only \"postgres\" is currently supported") + err_unsupported_database_type = errors.New("Unsupported database type; only \"postgres\" is currently supported") ) + +type err_local_recipients_not_found_t []string + +func (e *err_local_recipients_not_found_t) Error() string { + return fmt.Sprintf("Local recipients not found: %s", strings.Join([]string(*e), ", ")) +} |