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 7F852429E26 for ; Mon, 12 Dec 2011 08:05:16 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 B+IMM1bsLuYG for ; Mon, 12 Dec 2011 08:05:14 -0800 (PST) Received: from mail-gw3.nixu.fi (mail-gw3.nixu.fi [193.209.237.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id CB27F429E25 for ; Mon, 12 Dec 2011 08:05:13 -0800 (PST) Received: from pps.filterd (mail-gw3 [127.0.0.1]) by mail-gw3.nixu.fi (8.14.4/8.14.4) with SMTP id pBCG5BHG018837; Mon, 12 Dec 2011 18:05:11 +0200 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) by mail-gw3.nixu.fi with ESMTP id 114cs0sv60-1 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Mon, 12 Dec 2011 18:05:11 +0200 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBCG59CO006795; Mon, 12 Dec 2011 18:05:09 +0200 From: Tomi Ollila To: Bart Bunting , notmuch@notmuchmail.org Subject: ANNOUNCE: nottoomuch-addresses.pl version 1.3 In-Reply-To: References: <87wrabmb43.fsf@servo.finestructure.net> User-Agent: Notmuch/0.10.2+93~g631d290 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110, 1.0.211, 0.0.0000 definitions=2011-12-12_02:2011-12-12, 2011-12-12, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1112120133 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: Mon, 12 Dec 2011 16:05:16 -0000 On Wed, 07 Dec 2011 00:03:19 +0200, Tomi Ollila wrote: > On Tue, 06 Dec 2011 08:45:49 +1100, Bart Bunting wrote: > > Hi, ... > > > The only other idea I have, which is only half formed, is that it would > > be nice to prioritize emails that are more important than others. > > > > I'm not sure exactly how this would work but something like: > > - Addresses I have actualy sent email to rather than jjust received from > > get a high priority in the result. > > - Addresses that have sent me email directly rather than just to a list > > get next priority. > > - All other emails after that. > > > > Also some sort of weighting within the groups to do with frequency of > > emails sent or something. > > > > Does that make sense? Would it be hard to implement? > > Neat idea. To implement the feature into program is not too hard. > Somehow determine weight for each email address, store that into > hash (key address, value weight). > Then, when writing addresses file, sort first by weight and then > ascii order. The hash is also stored to disk (using tie()) and used > when address file updated. > > Now, how to determine good (generic) rules for weights (and maybe > some user-defined rules as well) is the question. The latest version (1.3) now stores addresses in 'newest-first' order to the "address file" -- the fgrep printing matches will therefore also output the lines in this order. For me this seems to work pretty nicely. This version (1.3) relies notmuch show ... to output emails in this order (which it seems to do now). If this changes I'll have to check how to "fix" my implementation... The program is located at the same address: http://www.iki.fi/too/nottoomuch/nottoomuch-addresses.sh sha1sum is f9289ed4bf9034d99e390aaf3d5fcac3d815ea20 and doc page is at http://www.iki.fi/too/nottoomuch/nottoomuch-addresses/ > > Cheers > > > > Bart > > Thanks, > > Tomi Tomi