aerc/commands/msg
Robin Jarry c26d08103b aerc: always check SelectedAccount return value
aerc.SelectedAccount() is used in lots of places. Most of them without
checking the return value.

In some cases, the currently selected tab is not related to any account
(widget.Terminal for example). This can lead to unexpected crashes when
accessing account specific configuration.

When possible, return an error when no account is currently selected.
If no error can be returned, fallback to non-account specific
configuration.

Signed-off-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Koni Marti <koni.marti@gmail.com>
2022-02-25 13:56:53 +01:00
..
archive.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
copy.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
delete.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
forward.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
mark.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
modify-labels.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
move.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
msg.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
pipe.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
read.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
recall.go recall: allow recalling messages from any folder 2021-12-13 14:56:39 +01:00
reply.go compose: add option to never include your own address when replying 2022-01-31 16:22:54 +01:00
toggle-threads.go threading: implement on-the-fly message threading 2022-02-24 13:00:12 +01:00
unsubscribe.go aerc: always check SelectedAccount return value 2022-02-25 13:56:53 +01:00
unsubscribe_test.go Fix linter warnings 2021-02-26 22:14:58 +01:00
utils.go go.mod: change base git url 2021-11-05 10:21:45 +01:00