astroidmail / astroid

A graphical threads-with-tags style, lightweight and fast, e-mail client for Notmuch
http://astroidmail.github.io
Other
613 stars 65 forks source link

Fix gmime assertions being triggered by invalid addresses #731

Closed ibuclaw closed 1 year ago

ibuclaw commented 1 year ago

In the console, I am frequently seeing the following assertions being triggered.

(astroid:1774218): gmime-CRITICAL **: 18:25:20.896: internet_address_list_length: assertion 'IS_INTERNET_ADDRESS_LIST (list)' failed
(astroid:1774218): gmime-CRITICAL **: 18:25:20.896: internet_address_list_length: assertion 'IS_INTERNET_ADDRESS_LIST (list)' failed
[18:25:20] [0x00007fffc2d6c6c0] [M] [error] address: no address in string.

Silence this by checking IS_INTERNET_ADDRESS_LIST before calling internet_address_list_length.

gauteh commented 1 year ago

Thanks. Merged.