fix encrypted thread reply, fix From header in thread reply
This commit is contained in:
@@ -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, "@")
|
||||
|
||||
Reference in New Issue
Block a user