From 42c5f39700c6ba95a6b924be807e8cddd69c3bdd Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 13 Jan 2025 12:02:49 +0800 Subject: Add PostgreSQL mail store support --- errors.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'errors.go') diff --git a/errors.go b/errors.go index b34e3a2..1512b60 100644 --- a/errors.go +++ b/errors.go @@ -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), ", ")) +} -- cgit v1.2.3