aboutsummaryrefslogtreecommitdiffstats
path: root/commands/terminal/close.go
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2023-10-25 22:49:54 +0200
committerRobin Jarry <robin@jarry.cc>2023-10-26 00:29:31 +0200
commit900d7da296f12081946666c82973f408d9d5f5aa (patch)
treec02687297a113250604e263362c8a0e8594ce6a1 /commands/terminal/close.go
parentf4166e07439fc08b3a632664a74ec6943b2050c7 (diff)
downloadaerc-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 'commands/terminal/close.go')
0 files changed, 0 insertions, 0 deletions