unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Bart Bunting <bart@ursys.com.au>
To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org
Subject: Re: ANNOUNCE: nottoomuch-addresses.pl
Date: Fri, 02 Dec 2011 05:38:01 +1100	[thread overview]
Message-ID: <m2vcq0qgs6.fsf@ursys.com.au> (raw)
In-Reply-To: <m2d3c8e22v.fsf@guru.guru-group.fi>

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 <tomi.ollila@iki.fi> wrote:

  reply	other threads:[~2011-12-01 18:43 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01 15:36 ANNOUNCE: nottoomuch-addresses.pl Tomi Ollila
2011-12-01 18:38 ` Bart Bunting [this message]
2011-12-02  7:37   ` Tomi Ollila
2011-12-05 11:51     ` Tomi Ollila
2011-12-05 12:04       ` Bart Bunting
2011-12-05 12:35         ` Tomi Ollila
2011-12-05 12:55           ` Jameson Graef Rollins
2011-12-05 21:45             ` Bart Bunting
2011-12-06  4:43               ` Bart Bunting
2011-12-06 22:03               ` Tomi Ollila
2011-12-12 16:05                 ` ANNOUNCE: nottoomuch-addresses.pl version 1.3 Tomi Ollila
2011-12-14 20:10                   ` ANNOUNCE: nottoomuch-addresses.pl version 1.4 Tomi Ollila
     [not found]                     ` <20111216130128.E918211BC52@karen.lavabit.com>
2011-12-16 14:18                       ` Tomi Ollila
2011-12-23  9:37                     ` ANNOUNCE: nottoomuch-addresses.sh version 1.5 Tomi Ollila
2011-12-30 16:42                       ` ANNOUNCE: nottoomuch-addresses.sh version 1.6 Tomi Ollila
2012-01-18  7:14 ` ANNOUNCE: nottoomuch-addresses.sh 2.0 Tomi Ollila
2012-02-22 19:53 ` ANNOUNCE: nottoomuch-addresses.sh 2.1 Tomi Ollila
2014-03-29 16:07 ` ANNOUNCE: nottoomuch-addresses.sh 2.2 Tomi Ollila
2014-09-17 19:02 ` ANNOUNCE: nottoomuch-addresses.sh 2.3 Tomi Ollila
2014-09-17 19:14   ` ANNOUNCE: notmuch-abook v1.6 [Was: Re: ANNOUNCE: nottoomuch-addresses.sh 2.3] guyzmo
2014-09-18  6:54     ` Rainer M Krug
     [not found]       ` <20140918085411.GD1079@vilya.online.net>
2014-09-18 10:26         ` Rainer M Krug
2020-10-03 12:07 ` ANNOUNCE: nottoomuch-addresses.sh 2.5 Tomi Ollila

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2vcq0qgs6.fsf@ursys.com.au \
    --to=bart@ursys.com.au \
    --cc=notmuch@notmuchmail.org \
    --cc=tomi.ollila@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).