~sircmpwn/aerc

c1d57977af3eae723406b3aaff82e7bf16b12d0c — Thorben G√ľnther 6 months ago 06f81e8
Fix crash if there is no to address for %F
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/format/format.go
M lib/format/format.go => lib/format/format.go +1 -1
@@ 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]
			}