aerc/lib
Daniel Martí 72f55b857b lib: fix an out of bounds panic in the server
If the message doesn't contain ':', we don't properly discard the
message, so we end up slicing it like msg[:-1].

This can be reproduced if one runs 'aerc foo', as the server receives
'foo' as the message.

'aerc foo' still doesn't do anything very user friendly, but at least it
doesn't panic horribly.

While at it, do the 'got message' log at the very beginning, so that the
user can see what message the server got before reporting the command as
invalid.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
2020-02-13 10:26:12 -05:00
..
format Add labels to index format (%g) 2019-12-27 10:20:29 -07:00
sort Preserve sorting order in search results 2019-10-09 19:46:43 -04:00
templates template: add exec and wrap 2020-01-09 14:31:19 -05:00
ui compose: don't call ti.tabcomplete when it is nil 2020-01-09 14:32:12 -05:00
uidstore Create UIDStore package 2019-07-12 11:09:47 -04:00
dirstore.go Move msgstore map to dirstore 2019-07-26 14:15:27 -04:00
history.go Add command history and cycling 2019-07-26 14:29:34 -04:00
msgstore.go FetchBodyParts: decode source in the workers 2020-01-05 16:02:45 -05:00
oauthbearer.go Support imaps with oauthbearer authentication (Gmail) 2019-07-11 19:36:14 -04:00
open.go Use "open" instead of "xdg-open" on Darwin systems 2019-07-04 10:58:33 -04:00
open_darwin.go Use "open" instead of "xdg-open" on Darwin systems 2019-07-04 10:58:33 -04:00
socket.go lib: fix an out of bounds panic in the server 2020-02-13 10:26:12 -05:00