1 Return-Path: <polatel@gmail.com>
\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 AA18D431FBC
\r
6 for <notmuch@notmuchmail.org>; Thu, 14 Jan 2010 00:47:18 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.381 tagged_above=-999 required=5
\r
12 tests=[AWL=-0.382, BAYES_50=0.001] autolearn=ham
\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 VDwZ6N4X9iUS for <notmuch@notmuchmail.org>;
\r
16 Thu, 14 Jan 2010 00:47:17 -0800 (PST)
\r
17 Received: from mail-fx0-f217.google.com (mail-fx0-f217.google.com
\r
19 by olra.theworths.org (Postfix) with ESMTP id 99ED5431FAE
\r
20 for <notmuch@notmuchmail.org>; Thu, 14 Jan 2010 00:47:17 -0800 (PST)
\r
21 Received: by fxm9 with SMTP id 9so21672372fxm.30
\r
22 for <notmuch@notmuchmail.org>; Thu, 14 Jan 2010 00:47:16 -0800 (PST)
\r
23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
24 h=domainkey-signature:received:received:sender:date:from:to:subject
\r
25 :message-id:mime-version:content-type:content-disposition:user-agent;
\r
26 bh=HqAG+PL7mMq/SRLnWWCTJOGh9Sj6Q8W/KpcZH51d7rg=;
\r
27 b=lpNcd76kmVePksS9gv/TeggqeRXOsnpjgPftqRbJh6ICSN0eHOxi4zf5OA97h6d5hh
\r
28 5irXkThWGFfftclkOmjxRU6Y3qvQq34apJf9/L9Ntk00/6mMeuKUK3ILBVW44is1fPEF
\r
29 PSZjYABOjZzQ10HP7XrvNlZ7wVYQDmUZtybZk=
\r
30 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
31 h=sender:date:from:to:subject:message-id:mime-version:content-type
\r
32 :content-disposition:user-agent;
\r
33 b=rv/eLhbCVNx2JFXuTiJVoIrgjv+4OPiLdT5lg/LQ0BPJgwqIVeiohbm5U91ZyFT1Mn
\r
34 dgxLgnAJsQuvm5OLoMKY0fXzMMJdYy2knJBo+gskgPvuK5ov/eI4iDJhzXPkLGQDYr6Z
\r
35 KOGlvTGGXJtFMCu38QZqq0V2FcZbGvDWTOlis=
\r
36 Received: by 10.223.20.85 with SMTP id e21mr599014fab.25.1263458836461;
\r
37 Thu, 14 Jan 2010 00:47:16 -0800 (PST)
\r
38 Received: from harikalardiyari ([78.179.59.77])
\r
39 by mx.google.com with ESMTPS id 15sm193359fxm.2.2010.01.14.00.47.15
\r
40 (version=TLSv1/SSLv3 cipher=RC4-MD5);
\r
41 Thu, 14 Jan 2010 00:47:15 -0800 (PST)
\r
42 Sender: Ali Polatel <polatel@gmail.com>
\r
43 Date: Thu, 14 Jan 2010 10:47:13 +0200
\r
44 From: Ali Polatel <alip@exherbo.org>
\r
45 To: notmuch@notmuchmail.org
\r
46 Message-ID: <20100114084713.GA22273@harikalardiyari>
\r
48 Content-Type: multipart/signed; micalg=pgp-sha1;
\r
49 protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm"
\r
50 Content-Disposition: inline
\r
51 User-Agent: Mutt/1.5.20 (2009-06-14)
\r
52 Subject: [notmuch] Thoughts on notmuch and Lua
\r
53 X-BeenThere: notmuch@notmuchmail.org
\r
54 X-Mailman-Version: 2.1.13
\r
56 List-Id: "Use and development of the notmuch mail system."
\r
57 <notmuch.notmuchmail.org>
\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
61 List-Post: <mailto:notmuch@notmuchmail.org>
\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
65 X-List-Received-Date: Thu, 14 Jan 2010 08:47:18 -0000
\r
69 Content-Type: text/plain; charset=us-ascii
\r
70 Content-Disposition: inline
\r
71 Content-Transfer-Encoding: quoted-printable
\r
73 Before trying to implement anything I decided to send a mail to the list
\r
74 to ask people's opinion.
\r
77 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
\r
78 Notmuch isn't very configurable.
\r
80 How can Lua integration solve this?
\r
81 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
\r
82 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
\r
83 Here are initial thoughts on how to integrate Lua with notmuch.
\r
84 Any comments appreciated.
\r
86 1. Configuration file:
\r
87 The configuration file can be a Lua script that allows more dynamic
\r
88 configuration. Here's an example:
\r
90 # notmuch configuration file:
\r
92 config.dbpath =3D "/path/to/maildir"
\r
93 config.exclude =3D function (maildir)
\r
94 return not string.match(maildir, ".*Trash.*")
\r
99 This is a feature I really miss having switched from sup.
\r
100 There can be many hooks, a hook that formats search output,
\r
101 a hook that is called before adding messages to the database which may
\r
102 be used to add initial tags depending on headers etc.
\r
105 =3D=3D=3D=3D=3D=3D=3D=3D
\r
106 Lua has many advantages over other scripting languages when it comes to
\r
107 integration with a C program. It has a very clean and easy C API, the
\r
108 overhead of running Lua scripts is not noticable among other things.
\r
115 Content-Type: application/pgp-signature
\r
116 Content-Disposition: inline
\r
118 -----BEGIN PGP SIGNATURE-----
\r
119 Version: GnuPG v2.0.14 (GNU/Linux)
\r
121 iEYEABECAAYFAktO2hEACgkQQU4yORhF8iAlVgCfb6TlURip35d+nL2mtj1PYDRw
\r
122 YcUAmQEFGaHXfXFS2hzzqVM4RdM5uS60
\r
124 -----END PGP SIGNATURE-----
\r
126 --uAKRQypu60I7Lcqm--
\r