fix encrypted thread reply, fix From header in thread reply

This commit is contained in:
Aine
2022-11-14 00:38:17 +02:00
parent 519c44e998
commit b9cf336a6d
5 changed files with 69 additions and 14 deletions

View File

@@ -3,8 +3,17 @@ package utils
import (
"strconv"
"strings"
"gitlab.com/etke.cc/go/logger"
)
var log *logger.Logger
// SetLogger for utils
func SetLogger(loggerInstance *logger.Logger) {
log = loggerInstance
}
// Mailbox returns mailbox part from email address
func Mailbox(email string) string {
index := strings.LastIndex(email, "@")