I don't understand the results of this search query, is this a bug?

Subject: I don't understand the results of this search query, is this a bug?

Date: Mon, 13 May 2024 15:43:12 -0400

To: notmuch@notmuchmail.org

Cc:

From: Renaud B.


Hello,

If I do:

notmuch search --output=files path:rb@kosmopolis.ca/**

I get the following results:

/home/rb/.mail/rb@kosmopolis.ca/Inbox/cur/1715564710.62398_2.tp,U=2:2,S
/home/rb/.mail/
contact@renaudbussieres.com/Inbox/cur/1715541329.42568_1.tp,U=2:2,S
/home/rb/.mail/rb@kosmopolis.ca/Sent/cur/1715564710.62398_6.tp,U=4:2,S
/home/rb/.mail/
contact@renaudbussieres.com/Inbox/cur/1714698543.61892_1.tp,U=1:2,S
/home/rb/.mail/rb@kosmopolis.ca/Inbox/cur/1715564710.62398_1.tp,U=1:2,S
/home/rb/.mail/rb@kosmopolis.ca/Trash/cur/1715564710.62398_7.tp,U=1:2,S
/home/rb/.mail/rb@kosmopolis.ca/Sent/cur/1715564710.62398_5.tp,U=3:2,S
/home/rb/.mail/rb@kosmopolis.ca/Sent/cur/1715564710.62398_4.tp,U=2:2,S
/home/rb/.mail/rb@kosmopolis.ca/Sent/cur/1715564710.62398_3.tp,U=1:2,S

As you can see, two of these files are located under "~/.mail/
contact@renaudbussieres.com/". It shouldn't be the case, because of the "
path:rb@kosmopolis.ca/**" which means explicitly "everything under the
~/.mail/rb@kosmopolis.ca/ directory" (if I understand correctly).

Likewise, if I do:

notmuch search --output=files path:contact@renaudbussieres.com/**

It returns:

/home/rb/.mail/
contact@renaudbussieres.com/Inbox/cur/1715541329.42568_1.tp,U=2:2,S
/home/rb/.mail/rb@kosmopolis.ca/Sent/cur/1715564710.62398_6.tp,U=4:2,S
/home/rb/.mail/
contact@renaudbussieres.com/Inbox/cur/1714698543.61892_1.tp,U=1:2,S
/home/rb/.mail/rb@kosmopolis.ca/Inbox/cur/1715564710.62398_1.tp,U=1:2,S

Again, there are 2 false results.

Do you have any idea what's happening? My goal is simply to get all emails
under each directories in my "~/.mail" folder, one at a time.

Thanks,
Renaud B.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: