Notmuch search missing mail id

2012-10-29 Thread Tomi Ollila
On Mon, Oct 29 2012, James Vasile  wrote:

> I received the attached piece of spam telling me about an exciting
> investment opportunity.  Notmuch pulled it in to the database, noting
> the message id.  But then it seems to stop paying attention to the
> message id.
>
> notmuch can find the mail when I search by the from field:
>
> $ notmuch search "from:caroline horn"
> thread:bcb7  Today 09:29 [1/1] Caroline Horn; This Company is on 
> the rise (hv inbox unread)
>
> But not by the message id:
> $ notmuch search id:000801cdb5da$17673470$26448589 at microsof00t4ko3r
> $

Try 

$ notmuch search id:'000801cdb5da$17673470$26448589 at microsof00t4ko3r'

so that the $s are not expanded...

note that id:"..." does not suffice as shell expands $ & ` inside double
quotes.

Tomi


>
> Notmuch has correctly pulled the id into the database:
> $ notmuch show "from:caroline horn" | grep "id:" | sed "s/.*\(id:[^ 
> ]*\).*/\1/"
> id:000801cdb5da$17673470$26448589 at microsof00t4ko3r
>
> If notmuch knows the id but won't match it in a search, that looks like
> a bug to me.
>
> On a related matter, I have a script that pulls the message id header
> From a mail file and then uses notmuch tag id:foo to tag that file.  But
> if notmuch sometimes fails to find the id, maybe there is there a better
> way to do it?
>
> Thanks,
> James
>
> ___
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch


Notmuch search missing mail id

2012-10-29 Thread James Vasile
Tomi Ollila  writes:
> On Mon, Oct 29 2012, James Vasile  wrote:
>
>> I received the attached piece of spam telling me about an exciting
>> investment opportunity.  Notmuch pulled it in to the database, noting
>> the message id.  But then it seems to stop paying attention to the
>> message id.
>>
>> notmuch can find the mail when I search by the from field:
>>
>> $ notmuch search "from:caroline horn"
>> thread:bcb7  Today 09:29 [1/1] Caroline Horn; This Company is on 
>> the rise (hv inbox unread)
>>
>> But not by the message id:
>> $ notmuch search id:000801cdb5da$17673470$26448589 at microsof00t4ko3r
>> $
>
> Try 
>
> $ notmuch search id:'000801cdb5da$17673470$26448589 at microsof00t4ko3r'
>
> so that the $s are not expanded...
>
> note that id:"..." does not suffice as shell expands $ & ` inside double
> quotes.

Tomi, that's a good catch and one I should have noticed.  Thanks much
for the help!
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: 



Notmuch search missing mail id

2012-10-29 Thread James Vasile
I received the attached piece of spam telling me about an exciting
investment opportunity.  Notmuch pulled it in to the database, noting
the message id.  But then it seems to stop paying attention to the
message id.

notmuch can find the mail when I search by the from field:

$ notmuch search "from:caroline horn"
thread:bcb7  Today 09:29 [1/1] Caroline Horn; This Company is on 
the rise (hv inbox unread)

But not by the message id:
$ notmuch search id:000801cdb5da$17673470$26448589 at microsof00t4ko3r
$

Notmuch has correctly pulled the id into the database:
$ notmuch show "from:caroline horn" | grep "id:" | sed "s/.*\(id:[^ ]*\).*/\1/"
id:000801cdb5da$17673470$26448589 at microsof00t4ko3r

If notmuch knows the id but won't match it in a search, that looks like
a bug to me.

On a related matter, I have a script that pulls the message id header


Notmuch search missing mail id

2012-10-29 Thread James Vasile
I received the attached piece of spam telling me about an exciting
investment opportunity.  Notmuch pulled it in to the database, noting
the message id.  But then it seems to stop paying attention to the
message id.

notmuch can find the mail when I search by the from field:

$ notmuch search from:caroline horn
thread:bcb7  Today 09:29 [1/1] Caroline Horn; This Company is on 
the rise (hv inbox unread)

But not by the message id:
$ notmuch search id:000801cdb5da$17673470$26448589@microsof00t4ko3r
$

Notmuch has correctly pulled the id into the database:
$ notmuch show from:caroline horn | grep id: | sed s/.*\(id:[^ ]*\).*/\1/
id:000801cdb5da$17673470$26448589@microsof00t4ko3r

If notmuch knows the id but won't match it in a search, that looks like
a bug to me.

On a related matter, I have a script that pulls the message id header
From a mail file and then uses notmuch tag id:foo to tag that file.  But
if notmuch sometimes fails to find the id, maybe there is there a better
way to do it?

Thanks,
James



binDCNcXFt8Bc.bin
Description: spam mail


pgpM6XsgLXVyc.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: Notmuch search missing mail id

2012-10-29 Thread Tomi Ollila
On Mon, Oct 29 2012, James Vasile ja...@hackervisions.org wrote:

 I received the attached piece of spam telling me about an exciting
 investment opportunity.  Notmuch pulled it in to the database, noting
 the message id.  But then it seems to stop paying attention to the
 message id.

 notmuch can find the mail when I search by the from field:

 $ notmuch search from:caroline horn
 thread:bcb7  Today 09:29 [1/1] Caroline Horn; This Company is on 
 the rise (hv inbox unread)

 But not by the message id:
 $ notmuch search id:000801cdb5da$17673470$26448589@microsof00t4ko3r
 $

Try 

$ notmuch search id:'000801cdb5da$17673470$26448589@microsof00t4ko3r'

so that the $s are not expanded...

note that id:... does not suffice as shell expands $  ` inside double
quotes.

Tomi



 Notmuch has correctly pulled the id into the database:
 $ notmuch show from:caroline horn | grep id: | sed s/.*\(id:[^ 
 ]*\).*/\1/
 id:000801cdb5da$17673470$26448589@microsof00t4ko3r

 If notmuch knows the id but won't match it in a search, that looks like
 a bug to me.

 On a related matter, I have a script that pulls the message id header
 From a mail file and then uses notmuch tag id:foo to tag that file.  But
 if notmuch sometimes fails to find the id, maybe there is there a better
 way to do it?

 Thanks,
 James

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


Re: Notmuch search missing mail id

2012-10-29 Thread James Vasile
Tomi Ollila tomi.oll...@iki.fi writes:
 On Mon, Oct 29 2012, James Vasile ja...@hackervisions.org wrote:

 I received the attached piece of spam telling me about an exciting
 investment opportunity.  Notmuch pulled it in to the database, noting
 the message id.  But then it seems to stop paying attention to the
 message id.

 notmuch can find the mail when I search by the from field:

 $ notmuch search from:caroline horn
 thread:bcb7  Today 09:29 [1/1] Caroline Horn; This Company is on 
 the rise (hv inbox unread)

 But not by the message id:
 $ notmuch search id:000801cdb5da$17673470$26448589@microsof00t4ko3r
 $

 Try 

 $ notmuch search id:'000801cdb5da$17673470$26448589@microsof00t4ko3r'

 so that the $s are not expanded...

 note that id:... does not suffice as shell expands $  ` inside double
 quotes.

Tomi, that's a good catch and one I should have noticed.  Thanks much
for the help!


pgpJYQeXk0U1n.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch