[neomutt-users] Adding alias in alias_file fail

Pietro Cerutti gahr at gahr.ch
Wed Nov 25 14:54:08 CET 2020


On Nov 25 2020, 12:43 UTC, Elimar Riesebieter <riesebie at lxtec.de> wrote:
>* Pietro Cerutti <gahr at gahr.ch> [2020-11-25 11:10 +0000]:
>
>> On Nov 25 2020, 10:46 UTC, Elimar Riesebieter <riesebie at lxtec.de> wrote:
>> > * Gilles Lamboley <gilles.lamboley at yahoo.fr> [2020-11-25 10:52 +0100]:
>> >
>> > > Hello,
>> > >
>> > > since few days, I noticed that adding a new entry in alias file fails
>> > > returning
>> > >
>> > > 'config/helpers.c :248 : cs_substring: l'assertion "DTYPE(he->type) ==
>> > > DT_STRING " a echoué
>> > >
>> > > which, in english, should be:
>> > >
>> > > 'config/helpers.c :248 : cs_substring: assert "DTYPE(he->type) ==
>> > > DT_STRING " failed
>> > >
>> > > I am using the <create_alias> command (shortcut a) from the index menu, with
>> > > neomutt latest release (updated on an Arch linux distribution).
>> > >
>> > > It seems weird because adding alias to the alias_file was not an issue
>> > > before. Unfortunately, I can't tell when it works successfuly for the
>> > > last time, probably few months ago.
>> >
>> > I can confirm this issue with 20201120:
>> > neomutt: config/helpers.c:248: const char *cs_subset_string(const
>> > struct ConfigSubset *, const char *): Assertion `DTYPE(he->type) ==
>> > DT_STRING' failed.
>> >
>> > neomutt aborted.
>>
>> I can 'a' in the index menu on this very email I'm replying to, accept the
>> suggested values (plus a comment to make things spicy), and everything works
>> as expected, including the alias appearing in my alias file
>>
>>     Alias as: riesebie
>>     Address: riesebie at lxtec.de
>>     Personal name: Elimar Riesebieter
>>     Comment: Elimar Riesebieter
>>     [riesebie = Elimar Riesebieter <riesebie at lxtec.de> # Elimar Riesebieter] Accept? ([yes]/no):
>>     Save to file: /home/gahr/.config/neomutt/alias:
>>
>> At which point are you having troubles?
>
>After the last confirmation neomutt aborted.
>
>I tried following combinations:
>
>tmux TERM=tmux-256color
>tmux TERM=xterm-256color
>urxvt TERM=rxvt-unicode-256color
>uxterm TERM=xterm-256color
>VT TERM=linux
>
>Every combination sucks :(
>
>neomutt -d 2:
>
>....
>[2020-11-25 13:40:51]<1> mutt_index_menu() Got op OP_MAIN_PREV_UNDELETED (159)¬
>[2020-11-25 13:40:53]<1> mutt_index_menu() Got op OP_CREATE_ALIAS (61)

Thanks - turns out I was running a custom branch. A fix is here:
https://github.com/neomutt/neomutt/pull/2733

-- 
Pietro Cerutti


More information about the neomutt-users mailing list