Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 42 / 6f2f5654d41305e8ba34a027ac783a9d6ed930
1 Return-Path: <bart@ursys.com.au>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 6A811429E2F\r
6         for <notmuch@notmuchmail.org>; Thu,  1 Dec 2011 10:43:33 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 1.363\r
10 X-Spam-Level: *\r
11 X-Spam-Status: No, score=1.363 tagged_above=-999 required=5\r
12         tests=[RDNS_DYNAMIC=0.363, TO_NO_BRKTS_DYNIP=1] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id b1GuVUW3kXBK for <notmuch@notmuchmail.org>;\r
16         Thu,  1 Dec 2011 10:43:32 -0800 (PST)\r
17 X-Greylist: delayed 325 seconds by postgrey-1.32 at olra;\r
18         Thu, 01 Dec 2011 10:43:31 PST\r
19 Received: from bit.local (60-240-204-87.tpgi.com.au [60.240.204.87])\r
20         by olra.theworths.org (Postfix) with ESMTP id D61F5429E28\r
21         for <notmuch@notmuchmail.org>; Thu,  1 Dec 2011 10:43:31 -0800 (PST)\r
22 Received: by bit.local (Postfix, from userid 501)\r
23         id AD3B5B86B11; Fri,  2 Dec 2011 05:38:01 +1100 (EST)\r
24 From: Bart Bunting <bart@ursys.com.au>\r
25 To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
26 Subject: Re: ANNOUNCE: nottoomuch-addresses.pl\r
27 In-Reply-To: <m2d3c8e22v.fsf@guru.guru-group.fi>\r
28 References: <m2d3c8e22v.fsf@guru.guru-group.fi>\r
29 User-Agent: Notmuch/0.10+55~gde3d46e (http://notmuchmail.org) Emacs/24.0.91.1\r
30         (i386-apple-darwin11.2.0)\r
31 Date: Fri, 02 Dec 2011 05:38:01 +1100\r
32 Message-ID: <m2vcq0qgs6.fsf@ursys.com.au>\r
33 MIME-Version: 1.0\r
34 Content-Type: text/plain\r
35 X-BeenThere: notmuch@notmuchmail.org\r
36 X-Mailman-Version: 2.1.13\r
37 Precedence: list\r
38 List-Id: "Use and development of the notmuch mail system."\r
39         <notmuch.notmuchmail.org>\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
43 List-Post: <mailto:notmuch@notmuchmail.org>\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
47 X-List-Received-Date: Thu, 01 Dec 2011 18:43:33 -0000\r
48 \r
49 Hi Tomi,\r
50 \r
51 I have had a quick try of setting up nottoomuch-addresses addresses.\r
52 \r
53 Here are a couple of issues I have hit and I think it's still not quite\r
54  right.\r
55 \r
56 I attach the shell output from emacs below.\r
57 \r
58 - firstly it appears that if the term is set to DUMB then the script\r
59 assumes it's being called from emacs and exits if there is no search\r
60 string.  This is problematic for me as I run all my stuff including the\r
61 --update command from a shell.  \r
62 - The instructions don't tell you to create the .config/nottoomuch\r
63 directory.  Perhaps you could check for it's existance and create if\r
64 required?\r
65 - Even when I got this far I had an odd result when running the script\r
66 as shown below.  First time I got a strange error.  Second run it added\r
67 900 or so addresses.  Subsiquent runs added no more addresses.  I find\r
68 this strange as I have over 180k emails.\r
69 \r
70 Anyway great work.  Heading in a cool direction.  Hope this somewhat\r
71 rambling report helps.\r
72 \r
73 Bart\r
74 \r
75 bart@bit:~$\r
76 bart@bit:~$shasum ~/bin/nottoomuch-addresses.pl \r
77 125f3917b3f2dc68bdf30af04ab623d53321e50c  /Users/bart/bin/nottoomuch-addresses.pl\r
78 bart@bit:~$chmod 755 ~/bin/nottoomuch-addresses.pl \r
79 bart@bit:~$~/bin/nottoomuch-addresses.pl  --update\r
80 Cannot open database, maybe not created yet.\r
81 run /Users/bart/bin/nottoomuch-addresses.pl --update from command line first.\r
82 bart@bit:~$cd\r
83 bart@bit:~$cd .config\r
84 bash: cd: .config: No such file or directory\r
85 bart@bit:~$\r
86 bart@bit:~$mkdir .config\r
87 bart@bit:~$nottoomuch --update\r
88 bash: nottoomuch: command not found\r
89 bart@bit:~$~/bin/nottoomuch-addresses.pl  --update\r
90 Cannot open database, maybe not created yet.\r
91 run /Users/bart/bin/nottoomuch-addresses.pl --update from command line first.\r
92 bart@bit:~$\r
93 bart@bit:~$cd\r
94 bart@bit:~$cd .config\r
95 bart@bit:~/.config$mkdir nottoomuch\r
96 bart@bit:~/.config$\r
97 bart@bit:~/.config$~/bin/nottoomuch-addresses.pl  --update\r
98 Cannot open database, maybe not created yet.\r
99 run /Users/bart/bin/nottoomuch-addresses.pl --update from command line first.\r
100 bart@bit:~/.config$cd nottoomuch/\r
101 bart@bit:~/.config/nottoomuch$touch addresses\r
102 bart@bit:~/.config/nottoomuch$~/bin/nottoomuch-addresses.pl  --update\r
103 bart@bit:~/.config/nottoomuch$ls\r
104 addresses\r
105 bart@bit:~/.config/nottoomuch$ls -s addresses \r
106 0 addresses\r
107 bart@bit:~/.config/nottoomuch$echo $TERM\r
108 dumb\r
109 bart@bit:~/.config/nottoomuch$export TERM=emacs\r
110 bart@bit:~/.config/nottoomuch$ls -s addresses \r
111 0 addresses\r
112 bart@bit:~/.config/nottoomuch$~/bin/nottoomuch-addresses.pl  --update\r
113 Updating '/Users/bart/.config/nottoomuch/addresses', since -604800.\r
114 Unrecognized option: -604800..\r
115 Added 0 addresses in 0 seconds. Total number of addresses: 0.\r
116 bart@bit:~/.config/nottoomuch$~/bin/nottoomuch-addresses.pl  --update\r
117 Updating '/Users/bart/.config/nottoomuch/addresses', since 1322159542.\r
118 Added 993 addresses in 4 seconds. Total number of addresses: 993.\r
119 bart@bit:~/.config/nottoomuch$~/bin/nottoomuch-addresses.pl  --update\r
120 Updating '/Users/bart/.config/nottoomuch/addresses', since 1322159560.\r
121 Added 0 addresses in 1 seconds. Total number of addresses: 993.\r
122 bart@bit:~/.config/nottoomuch$ On Thu, 01 Dec 2011 17:36:24 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r