diff options
Diffstat (limited to 'worker/jmap/send.go')
-rw-r--r-- | worker/jmap/send.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/worker/jmap/send.go b/worker/jmap/send.go index 757e5420..2fbb8aed 100644 --- a/worker/jmap/send.go +++ b/worker/jmap/send.go @@ -136,6 +136,11 @@ func (w *jmapSendWriter) Close() error { } func (w *JMAPWorker) getSenderIdentity(from *mail.Address) (jmap.ID, error) { + if len(w.identities) == 0 { + if err := w.GetIdentities(); err != nil { + return "", err + } + } name, domain, _ := strings.Cut(from.Address, "@") for _, ident := range w.identities { n, d, _ := strings.Cut(ident.Email, "@") |