mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 09:54:40 +03:00
use shorter smtp.NewAddress() instead of smtp.Address{...}
This commit is contained in:
@ -1229,7 +1229,7 @@ func (s server) MessageGet(ctx context.Context, req webapi.MessageGetRequest) (r
|
||||
|
||||
var msgFrom string
|
||||
if d, err := dns.ParseDomain(m.MsgFromDomain); err == nil {
|
||||
msgFrom = smtp.Address{Localpart: m.MsgFromLocalpart, Domain: d}.Pack(true)
|
||||
msgFrom = smtp.NewAddress(m.MsgFromLocalpart, d).Pack(true)
|
||||
}
|
||||
meta := webapi.MessageMeta{
|
||||
Size: m.Size,
|
||||
|
Reference in New Issue
Block a user