diff options
author | Moritz Poldrack <git@moritz.sh> | 2023-10-25 22:49:54 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-10-26 00:29:31 +0200 |
commit | 900d7da296f12081946666c82973f408d9d5f5aa (patch) | |
tree | c02687297a113250604e263362c8a0e8594ce6a1 /app/terminal.go | |
parent | f4166e07439fc08b3a632664a74ec6943b2050c7 (diff) | |
download | aerc-900d7da296f12081946666c82973f408d9d5f5aa.tar.gz |
compose: fix crash when getting hostname
Currently we assume that a From: address is present when retrieving the
hostname for the message ID. This results in an index-out-of-range error
when no From address is present.
Generate a random hostname for the message ID, if no From: address is
present.
Fixes: 608bc4fa7fa7 ("compose: use email domain name in Message-Id")
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'app/terminal.go')
0 files changed, 0 insertions, 0 deletions