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 22D9C4196F4 for ; Mon, 5 Apr 2010 07:12:10 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.8 X-Spam-Level: X-Spam-Status: No, score=0.8 tagged_above=-999 required=5 tests=[BAYES_50=0.8] autolearn=ham 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 zXgSw5delufH for ; Mon, 5 Apr 2010 07:12:05 -0700 (PDT) Received: from mail.mymadcat.com (mymadcat.com [213.251.163.154]) by olra.theworths.org (Postfix) with ESMTP id DC8BB4196F0 for ; Mon, 5 Apr 2010 07:12:04 -0700 (PDT) Received: by mail.mymadcat.com (Postfix, from userid 504) id EB0EA3DB60; Mon, 5 Apr 2010 16:12:03 +0200 (CEST) Received: from mail.mymadcat.com (localhost.localdomain [127.0.0.1]) by mail.mymadcat.com (Postfix) with ESMTPSA id 085103DAE6; Mon, 5 Apr 2010 16:12:03 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Mon, 05 Apr 2010 16:12:02 +0200 From: Adrien Bustany To: Enrico Zini In-Reply-To: <20100405135004.GA23639@enricozini.org> References: <874ojq5ajw.fsf@SSpaeth.de> <20100405135004.GA23639@enricozini.org> Message-ID: <1686c2264e9b7d32100a0b130d087203@localhost> X-Sender: abustany@gnome.org User-Agent: RoundCube Webmail/0.3-beta Cc: Notmuch development list Subject: Re: vala, this is notmuch. notmuch, this is vala 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, 05 Apr 2010 14:12:10 -0000 On Mon, 5 Apr 2010 14:50:04 +0100, Enrico Zini wrote: > On Mon, Apr 05, 2010 at 02:49:23PM +0200, Sebastian Spaeth wrote: > >> So I bound notmuch.so to vala (at least what I needed) and played with >> the code a bit. The resulting 100 lines of vala code are here: > > Ooh, a .vapi for notmuch, that is something that makes me happy. It > could be shipped with notmuch proper, even if it's rough now, and then > improved as people use it. We actually realized with spaetz that we duplicated work on this one... I also have a vapi file, which is working pretty well so far (I've used almost all the functions in it). I guess we should merge them, and include the result in notmuch's tree. See http://git.mymadcat.com/index.php/p/abitmore/source/tree/master/src/notmuch.vapi > > >> Usage: "./vnotmuch Seb" will output all 'to:' addresses according to >> frequency for all messages where to, cc, or bcc matches "Seb*". It also >> filters with AND "from:yourprimarymailaddress". Just >> "./vnotmuch" outputs all addresses that you ever sent mails to. It never >> writes/modifies your db. > > Now I use "lbdb", which gets very slow as time goes. You idea creates a > most definitely superior system. > > >> Just a teaser to make you interested in vala :). > > As it happens, some of us already are interested. > > As soon as automatic gobject introspection based language bindings > become workable for at least python and perl, my plan is to rewrite > buffy[1] in Vala. > > A second plan would be to have buffy show stats for saved notmuch > queries as well as (or instead of) mail folders. > > It's very nice to know I wouldn't be the only person playing with Vala > around here. Make them two ;) Cheers Adrien > > > Ciao, > > Enrico > > [1] http://packages.debian.org/sid/buffy