From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6A811429E2F for ; Thu, 1 Dec 2011 10:43:33 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.363 X-Spam-Level: * X-Spam-Status: No, score=1.363 tagged_above=-999 required=5 tests=[RDNS_DYNAMIC=0.363, TO_NO_BRKTS_DYNIP=1] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b1GuVUW3kXBK for ; Thu, 1 Dec 2011 10:43:32 -0800 (PST) X-Greylist: delayed 325 seconds by postgrey-1.32 at olra; Thu, 01 Dec 2011 10:43:31 PST Received: from bit.local (60-240-204-87.tpgi.com.au [60.240.204.87]) by olra.theworths.org (Postfix) with ESMTP id D61F5429E28 for ; Thu, 1 Dec 2011 10:43:31 -0800 (PST) Received: by bit.local (Postfix, from userid 501) id AD3B5B86B11; Fri, 2 Dec 2011 05:38:01 +1100 (EST) From: Bart Bunting To: Tomi Ollila , notmuch@notmuchmail.org Subject: Re: ANNOUNCE: nottoomuch-addresses.pl In-Reply-To: References: User-Agent: Notmuch/0.10+55~gde3d46e (http://notmuchmail.org) Emacs/24.0.91.1 (i386-apple-darwin11.2.0) Date: Fri, 02 Dec 2011 05:38:01 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2011 18:43:33 -0000 Hi Tomi, I have had a quick try of setting up nottoomuch-addresses addresses. Here are a couple of issues I have hit and I think it's still not quite right. I attach the shell output from emacs below. - firstly it appears that if the term is set to DUMB then the script assumes it's being called from emacs and exits if there is no search string. This is problematic for me as I run all my stuff including the --update command from a shell. - The instructions don't tell you to create the .config/nottoomuch directory. Perhaps you could check for it's existance and create if required? - Even when I got this far I had an odd result when running the script as shown below. First time I got a strange error. Second run it added 900 or so addresses. Subsiquent runs added no more addresses. I find this strange as I have over 180k emails. Anyway great work. Heading in a cool direction. Hope this somewhat rambling report helps. Bart bart@bit:~$ bart@bit:~$shasum ~/bin/nottoomuch-addresses.pl 125f3917b3f2dc68bdf30af04ab623d53321e50c /Users/bart/bin/nottoomuch-addresses.pl bart@bit:~$chmod 755 ~/bin/nottoomuch-addresses.pl bart@bit:~$~/bin/nottoomuch-addresses.pl --update Cannot open database, maybe not created yet. run /Users/bart/bin/nottoomuch-addresses.pl --update from command line first. bart@bit:~$cd bart@bit:~$cd .config bash: cd: .config: No such file or directory bart@bit:~$ bart@bit:~$mkdir .config bart@bit:~$nottoomuch --update bash: nottoomuch: command not found bart@bit:~$~/bin/nottoomuch-addresses.pl --update Cannot open database, maybe not created yet. run /Users/bart/bin/nottoomuch-addresses.pl --update from command line first. bart@bit:~$ bart@bit:~$cd bart@bit:~$cd .config bart@bit:~/.config$mkdir nottoomuch bart@bit:~/.config$ bart@bit:~/.config$~/bin/nottoomuch-addresses.pl --update Cannot open database, maybe not created yet. run /Users/bart/bin/nottoomuch-addresses.pl --update from command line first. bart@bit:~/.config$cd nottoomuch/ bart@bit:~/.config/nottoomuch$touch addresses bart@bit:~/.config/nottoomuch$~/bin/nottoomuch-addresses.pl --update bart@bit:~/.config/nottoomuch$ls addresses bart@bit:~/.config/nottoomuch$ls -s addresses 0 addresses bart@bit:~/.config/nottoomuch$echo $TERM dumb bart@bit:~/.config/nottoomuch$export TERM=emacs bart@bit:~/.config/nottoomuch$ls -s addresses 0 addresses bart@bit:~/.config/nottoomuch$~/bin/nottoomuch-addresses.pl --update Updating '/Users/bart/.config/nottoomuch/addresses', since -604800. Unrecognized option: -604800.. Added 0 addresses in 0 seconds. Total number of addresses: 0. bart@bit:~/.config/nottoomuch$~/bin/nottoomuch-addresses.pl --update Updating '/Users/bart/.config/nottoomuch/addresses', since 1322159542. Added 993 addresses in 4 seconds. Total number of addresses: 993. bart@bit:~/.config/nottoomuch$~/bin/nottoomuch-addresses.pl --update Updating '/Users/bart/.config/nottoomuch/addresses', since 1322159560. Added 0 addresses in 1 seconds. Total number of addresses: 993. bart@bit:~/.config/nottoomuch$ On Thu, 01 Dec 2011 17:36:24 +0200, Tomi Ollila wrote: