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