As it turns out, a Messages must be held until all Message object are dropped. It seems like something the MessageOwner trait is supposed to cover.
I've created a fail case (unfortunately, I didn't manage to test it on the corpus):
https://github.com/rhn/notmuch-rs/tree/messages_break
I'll happily turn this into an actual test case if the bug is fixed.
As it turns out, a
Messagesmust be held until allMessageobject are dropped. It seems like something theMessageOwnertrait is supposed to cover.I've created a fail case (unfortunately, I didn't manage to test it on the corpus):
https://github.com/rhn/notmuch-rs/tree/messages_break
I'll happily turn this into an actual test case if the bug is fixed.