Fix crash if there is no to address for %F
This commit is contained in:
parent
06f81e8cd9
commit
c1d57977af
|
@ -125,7 +125,7 @@ func ParseMessageFormat(
|
|||
addr := msg.Envelope.From[0]
|
||||
var val string
|
||||
|
||||
if addr.Name == accountFromAddress.Name {
|
||||
if addr.Name == accountFromAddress.Name && len(msg.Envelope.To) != 0 {
|
||||
addr = msg.Envelope.To[0]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue