* Searching for mails with message id inside a folder
@ 2019-10-15 22:42 David Pérez
2019-11-16 16:51 ` David Bremner
0 siblings, 1 reply; 2+ messages in thread
From: David Pérez @ 2019-10-15 22:42 UTC (permalink / raw)
To: notmuch
Hi,
There are 3 mails with a specific message id (i.e. Message-ID header)
in my maildirs
$ notmuch search --output=files
mid:"LNXP265MB007373FECCE2D877CC7EC241E6930@LNXP265MB0073.GBRP265.PROD.OUTLOOK.COM"
/home/david/.local/share/mail/hallaplay835/[Gmail].Important/cur/1571157038.24170_6.aerios,U=36835:2,S
/home/david/.local/share/mail/hallaplay835/INBOX/cur/1571157004.24170_2.aerios,U=1199:2,S
/home/david/.local/share/mail/hallaplay835/Ox/cur/1571157024.24170_4.aerios,U=2618:2,S
I'd like to only match the one in INBOX. However,
$ notmuch search --output=files
mid:"LNXP265MB007373FECCE2D877CC7EC241E6930@LNXP265MB0073.GBRP265.PROD.OUTLOOK.COM"
folder:"INBOX"
returns no results. On the contrary,
$ notmuch search --output=files
mid:"LNXP265MB007373FECCE2D877CC7EC241E6930@LNXP265MB0073.GBRP265.PROD.OUTLOOK.COM"
path:"hallaplay835/INBOX/**"
returns all three, when I believe that both should return only one result.
What am I doing wrong?
What if I wanted to match all mails by given message id *not* in INBOX?
I'm using notmuch 0.26.
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Searching for mails with message id inside a folder
2019-10-15 22:42 Searching for mails with message id inside a folder David Pérez
@ 2019-11-16 16:51 ` David Bremner
0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2019-11-16 16:51 UTC (permalink / raw)
To: David Pérez, notmuch
David Pérez <hallaplay835@gmail.com> writes:
> $ notmuch search --output=files
> mid:"LNXP265MB007373FECCE2D877CC7EC241E6930@LNXP265MB0073.GBRP265.PROD.OUTLOOK.COM"
> /home/david/.local/share/mail/hallaplay835/[Gmail].Important/cur/1571157038.24170_6.aerios,U=36835:2,S
> /home/david/.local/share/mail/hallaplay835/INBOX/cur/1571157004.24170_2.aerios,U=1199:2,S
> /home/david/.local/share/mail/hallaplay835/Ox/cur/1571157024.24170_4.aerios,U=2618:2,S
>
> I'd like to only match the one in INBOX. However,
See below for why this is hard to do directly with notmuch.
>
> $ notmuch search --output=files
> mid:"LNXP265MB007373FECCE2D877CC7EC241E6930@LNXP265MB0073.GBRP265.PROD.OUTLOOK.COM"
> folder:"INBOX"
I guess this should maybe be folder:hallaplay835/INBOX, based on the
next search.
> returns no results. On the contrary,
>
> $ notmuch search --output=files
> mid:"LNXP265MB007373FECCE2D877CC7EC241E6930@LNXP265MB0073.GBRP265.PROD.OUTLOOK.COM"
> path:"hallaplay835/INBOX/**"
>
> returns all three, when I believe that both should return only one
> result.
Notmuch doesn't really distinguish between files with the same message
id at the query level. Each database "mail message" has message-id as a
primary key (unique term in xapian language) and an attached list of
files.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-17 1:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-15 22:42 Searching for mails with message id inside a folder David Pérez
2019-11-16 16:51 ` David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).