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

2013-07-11 Thread ingo
Hi Suvayu, 


Suvayu Ali wrote
> 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 .kikidan

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

Yes, you are right, don't know where I had my head when answering. 

And both mails have the same message-id in the message header. 

Still, only one of both files really should be found with this search, so
why is the out put different?


Kind regards,

Ingo 



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


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.


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

2013-07-09 Thread Ingo Hohmann
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


Kind regards,

Ingo




remove unused tags from the database / emacs ui?

2013-04-24 Thread ingo
Hi all,

I have recently started using notmuch, and may stick with it ;-)

There's one thing, though.

I have some tags which were created by afew tests, or just misspelling tags.
These tags are now unused, but seem to still be in the database, or cached
in the emacs ui, because I get these tags as possibilities in add tags
list.

I tried to compress the database, and this didn't change anything in this
regard.

Any ideas on how I can get rid of them?
(notmuch 0.15.2 / emacs ui)

Kind regards,

Ingo Hohmann






--
View this message in context: 
http://notmuch.198994.n3.nabble.com/remove-unused-tags-from-the-database-emacs-ui-tp4027748.html
Sent from the notmuch mailing list archive at Nabble.com.
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: remove unused tags from the database / emacs ui?

2013-04-24 Thread ingo
Hi Jani,

thank you for your help, you helped in the right direction.
All mails tagged with some of those unwanted tags was also tagged spam.
And spam is configured to not show up in normal searches, that's why I was
unable to find them.
Now all those tags have been removed, and it even seems to speed up
searches, great.


Kind regards,
Ingo



--
View this message in context: 
http://notmuch.198994.n3.nabble.com/remove-unused-tags-from-the-database-emacs-ui-tp4027748p4027750.html
Sent from the notmuch mailing list archive at Nabble.com.
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


[PATCH] emacs: Fix notmuch-message-mark-replied.

2012-06-03 Thread Ingo Lohmar
notmuch-message-mark-replied used "apply" to change message tags
according to notmuch-message-replied-tags after sending a reply.  This
works if the latter is a single-element list.  But with the recently
changed format of tag changes, it breaks for multiple-element lists.
Use "funcall" to properly pass the list of tag changes as a single
argument.
---
 emacs/notmuch-message.el |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/notmuch-message.el b/emacs/notmuch-message.el
index 5964caa..d3738bf 100644
--- a/emacs/notmuch-message.el
+++ b/emacs/notmuch-message.el
@@ -45,7 +45,7 @@ the \"inbox\" and \"todo\", you would set
(concat "+" str)
  str))
  notmuch-message-replied-tags)))
-   (apply 'notmuch-tag (notmuch-id-to-query (car (car rep))) tags)
+   (funcall 'notmuch-tag (notmuch-id-to-query (car (car rep))) tags)

 (add-hook 'message-send-hook 'notmuch-message-mark-replied)

-- 
1.7.10



[PATCH] emacs: Fix notmuch-message-mark-replied.

2012-06-03 Thread Ingo Lohmar
notmuch-message-mark-replied used apply to change message tags
according to notmuch-message-replied-tags after sending a reply.  This
works if the latter is a single-element list.  But with the recently
changed format of tag changes, it breaks for multiple-element lists.
Use funcall to properly pass the list of tag changes as a single
argument.
---
 emacs/notmuch-message.el |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/notmuch-message.el b/emacs/notmuch-message.el
index 5964caa..d3738bf 100644
--- a/emacs/notmuch-message.el
+++ b/emacs/notmuch-message.el
@@ -45,7 +45,7 @@ the \inbox\ and \todo\, you would set
(concat + str)
  str))
  notmuch-message-replied-tags)))
-   (apply 'notmuch-tag (notmuch-id-to-query (car (car rep))) tags)
+   (funcall 'notmuch-tag (notmuch-id-to-query (car (car rep))) tags)
 
 (add-hook 'message-send-hook 'notmuch-message-mark-replied)
 
-- 
1.7.10

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