Re: Introducing new notmuch email client -- Kukulkan

Subject: Re: Introducing new notmuch email client -- Kukulkan

Date: Tue, 04 Feb 2025 15:45:11 -0700

To: David Bremner, Notmuch

Cc:

From: Lars Kotthoff


It also looks like the .first and .last functions of a thread don't return the 
dates of the oldest and newest message in the thread, but of the messages in the 
thread that match the query.

Cheers,

Lars


On Tue, 04 Feb 2025 08:17:54 -0400, David Bremner <david@tethera.net> wrote:
> Lars Kotthoff <lists@larsko.org> writes:
> 
> > Here's some minimal code to illustrate the problem:
> >
> >
> > import notmuch2
> >
> > db = notmuch2.Database()
> >
> > # this works
> > msgs = db.messages("date:today")
> > for msg in msgs:
> >     print(msg.messageid)
> >
> > # this doesn't segfault, but prints truncated IDs
> > msgs = [m for m in db.messages("date:today") if m.messageid]
> > print(len(msgs))
> > for msg in msgs:
> >     print(msg.messageid)
> >
> > # this segfaults
> > msgs = list(db.messages("date:today"))
> > print(len(msgs))
> > for msg in msgs:
> >     print(msg.messageid)
> 
> Hi Floris;
> 
> Any idea what is going on with these iterators?
> [...]
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: