[PATCH] Make optional for query_command

2022-03-04 Thread Magnus Groß
The query_command option expects the command to return lines in the following format: (From https://gitlab.com/muttmua/mutt/-/wikis/MuttGuide/Aliases) Before this patch the parser used strtok() to iterate through the Tab separators. The problem is that strtok() skips through multiple consec

Re: [PATCH] Make optional for query_command

2022-03-04 Thread Kevin J. McCarthy
On Sat, Mar 05, 2022 at 01:20:08AM +0100, Magnus Groß wrote: To fix this, we replace strtok() with strsep() which is almost identical, except that it does not skip over consecutive tokens, therefore the above usecase scenario will work as expected, i.e. will be an empty string and will be the c