Re: notmuch search / result:messages instead of threads

2019-07-03 Thread meOme
Well, I thought i got the solution, but in the end I am still at the same
problem:

I can't search for messages, only for threads.

I want to show a list of matching messages with the common header data
(subject, date, etc.).
When I use notmuch serach ... I only get the ids of the messages and the
header data of the thread only. So not the headerdata per message (just per
thread).
I could then use the ids and fire a request per id to get the headerdata
only using 'body=false'. But this means many, many more requests (depending
on the matches in the threads).

When I try to search for messages using notmuch show with 'body=false'
directly, this doesn't work because i use --limit=X to fill the list
iteratively. 'limit=X' isn't supported in notmuch show.

So no real solution to provide a list of messages with headerdata by a
searchkey?



--
Sent from: http://notmuch.198994.n3.nabble.com/
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: notmuch search / result:messages instead of threads

2019-06-06 Thread meOme
Ok, I think I got it!

So the "match=true" is what the "entire-thread=false" is reduced to, right?

Really great!! (Once you've understood it :D )

Thanks a lot for "notmuch" :)

In a few weeks... (or maybe months, or ... ) the world will have yet another
email client... :)

Fast and save... with a "grandpa-mode"! :D

Thanks!



--
Sent from: http://notmuch.198994.n3.nabble.com/
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: notmuch search / result:messages instead of threads

2019-06-06 Thread David Bremner
meOme  writes:

> If i use "show --entire-thread=false", I only get the NEWEST Message from a
> Thread matching the word "maria", even if ALL of the messages in the threads
> contain "maria".
> So I can't see the message I am searching for, if it isn't the newest
> message in a thread. So this isn't an option.

It's not supposed to work like that. I just verified and it showed me 3
messages from the same thread matching some terms. Maybe there is some
issue with how you are viewing the output?

> Using "show --entire-thread=true" gives me all the messages, grouped into
> threads, but no advice where (in the whole thread) i can find the info I was
> searching for. So I have to search the whole conversation (let's say up to
> 10 or 20 messages) to find what I was looking for.
> Is that correct or am I missing something?

Typically a front-end will somehow highlight the messages in a thread
actually matching the terms. So in notmuch emacs, only the matched
messages in the thread are displayed as open. If you want to do
something similar, that information is present as the "match" key in the
json / s-expr output.

___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: notmuch search / result:messages instead of threads

2019-06-06 Thread meOme
so the question is:
How can I get/show the messages matching a searchterm, if (let's say) half
of the messages in a thread contain the searchterm.
Example:
Thread1
- message1 (contains searchterm)
- message2 (does not contain searchterm)
- message3 (contains searchterm)
- message4 (does not contain searchterm)
- message5 (contains searchterm)
- message6 (does not contain searchterm)

So in this example, I probably want to show message1, message3 and message5.
All of them are in the same thread, Thread1.



--
Sent from: http://notmuch.198994.n3.nabble.com/
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: notmuch search / result:messages instead of threads

2019-06-06 Thread meOme
Hi,
thanks for answering.

Ok, so maybe I misunderstood how to use notmuch mail.
Here's my usecase:
search for "maria" gives me 100 threads (yes I sometimes write to my sister
;) )
Each of these threads contain let's say 1 - 20 messages.
If i use "show --entire-thread=false", I only get the NEWEST Message from a
Thread matching the word "maria", even if ALL of the messages in the threads
contain "maria".
So I can't see the message I am searching for, if it isn't the newest
message in a thread. So this isn't an option.

Using "show --entire-thread=true" gives me all the messages, grouped into
threads, but no advice where (in the whole thread) i can find the info I was
searching for. So I have to search the whole conversation (let's say up to
10 or 20 messages) to find what I was looking for.
Is that correct or am I missing something?



--
Sent from: http://notmuch.198994.n3.nabble.com/
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: notmuch search / result:messages instead of threads

2019-06-05 Thread David Bremner
meOme  writes:

> Hi,
> is it possible to show one item per matching message in the result of
> notmuch search?
> The standard seems to be one item per thread, not one per message.
>
> the "--output=messages" option doesn't seem to solve the problem, as it
> results only in the IDs. No more information (like headerdata, subject, date
> etc.) is given. So this would lead to new search requests, one per message.
> Which can be a list of hundreds (or thousands) of mails. This isn't useful
> just to show a list of matching messages with subject, date, authors etc.,
> right?
>
> What's the way to go here? Is there any solution?
>

You can use the --entire-thread=false option for "notmuch show"
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch