Re: [BUG] notmuch_message_tags_to_maildir_flags does not always invalidate filenames_list

Subject: Re: [BUG] notmuch_message_tags_to_maildir_flags does not always invalidate filenames_list

Date: Tue, 24 May 2022 09:45:08 -0300

To: Eliza Velasquez, notmuch@notmuchmail.org

Cc:

From: David Bremner


Eliza Velasquez <eliza@eliza.sh> writes:

> Hello notmuch,
>
> As the subject says, it seems like the filename cache for a message is
> not reliably invalidated when notmuch_message_tags_to_maildir_flags is
> called, causing the following series of function calls to behave
> unexpectedly.
>
> - notmuch_database_index_file
> - notmuch_message_get_filenames
> - notmuch_message_tags_to_maildir_flags
> - notmuch_message_get_filenames (stale list returned)
>
> According to the investigator [1], this happens about 10% of the time,
> but it's possible that this is just because there is some quirk in the
> client-side code causing it to trigger only sometimes.
>
> [1] https://github.com/elizagamedev/mujmap/pull/10#issuecomment-1131587169
>

I have been looking at this code, and making some small improvements [1],
but without a C reproducer I don't really know if it helps the
submitter's issue.

d

[1]: https://nmbug.notmuchmail.org/nmweb/show/20220523233901.3506880-1-david@tethera.net
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: