notmuch search --output=files error with AND NOT search terms

2013-07-10 Thread Suvayu Ali
Hi Ingo,

On Wed, Jul 10, 2013 at 04:55:13AM -0700, ingo wrote:
> Mark Walters wrote
> > 
> > The most likely cause is that these two messagefiles have the same
> > message-ids (so in notmuch's view are the same message). Try
> > 
> > notmuch search --output=messages  folder:1_Personal AND NOT tag:1_Personal
> > 
> > If you only see one message-id then notmuch thinks there is a single
> > message
> > that matches the search. The way notmuch works is that it first finds
> > which messages match and then prints the requested information for those
> > messages. So in this case it finds the matching message(s) then prints
> > all filenames for those matching messages.
> 
> Hi Mark,
> 
> thank you for your answer, actually I only get one single message id, the
> one I get without using --output=files.
> 
> notmuch search --output=messages  folder:1_Personal AND NOT tag:1_Personal 
> id:f76b9be792c46795945e1486ccb2b2ab at www.kikidan.com

Doesn't that confirm Mark's explanation?  Notmuch sees multiple files
associated to the same message (identified by the message id).

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.


[PATCH 0/2] Prompting for the GPG password within Emacs

2013-07-10 Thread Peter Feigl
Just in case anyone is interested, I wrote a simple pinentry-emacs
script, that uses emacsclient to ask inside emacs for the password.

Probably not secure, but I'm the only one accessing this host.

https://github.com/ecraven/pinentry-emacs

Finally things seem to work reliably :)

Greetings,

Peter
-- next part --
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 274 bytes
Desc: not available
URL: 
<http://notmuchmail.org/pipermail/notmuch/attachments/20130710/74dbbfd7/attachment.pgp>


notmuch search --output=files error with AND NOT search terms

2013-07-10 Thread ingo
Mark Walters wrote
> Hi
> 
>> Hi list,
>>
>> I am trying to check for mails, that are tagged differently from their 
>> mailfolder.
>>
>> So I am searching like this, for example:
>>
>>  notmuch search   folder:1_Personal AND NOT tag:1_Personal
>>  thread:5613   2008-01-15 [1/1] KIKIDAN News; kikidan 
>> news 2008/01: Willkommen im neuen Jahr (inbox to-me)
>>
>> That's OK, but if I want to get the file name of the message, suddenly 
>> get another message, which isn't located in the 1_Personal folder at all.
>>
>>  notmuch search --output=files   folder:1_Personal AND NOT 
>> tag:1_Personal
>> /home/ianus/Mail/ingo-2b1-de/INBOX/cur/1362131239_2.9026.cordraconis,U=33535,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S
>> /home/ianus/Mail/ingo-2b1-de/1_Personal/cur/1361052415_0.30588.cordraconis,U=755,FMD5=2bd412d62930ab474a218128a61bdb68:2,S
>>
> 
> The most likely cause is that these two messagefiles have the same
> message-ids (so in notmuch's view are the same message). Try
> 
> notmuch search --output=messages  folder:1_Personal AND NOT tag:1_Personal
> 
> If you only see one message-id then notmuch thinks there is a single
> message
> that matches the search. The way notmuch works is that it first finds
> which messages match and then prints the requested information for those
> messages. So in this case it finds the matching message(s) then prints
> all filenames for those matching messages.

Hi Mark,

thank you for your answer, actually I only get one single message id, the
one I get without using --output=files.

notmuch search --output=messages  folder:1_Personal AND NOT tag:1_Personal 
id:f76b9be792c46795945e1486ccb2b2ab at www.kikidan.com

How about the nextmost likely cause :-)


Kind regards,

Ingo





--
View this message in context: 
http://notmuch.198994.n3.nabble.com/notmuch-search-output-files-error-with-AND-NOT-search-terms-tp4028432p4028436.html
Sent from the notmuch mailing list archive at Nabble.com.