From dottedmag@dottedmag.net Tue Nov 17 07:28:42 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 966D9431FBF for ; Tue, 17 Nov 2009 07:28:42 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 T6gZjMwgV4Pb for ; Tue, 17 Nov 2009 07:28:41 -0800 (PST) Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82]) by olra.theworths.org (Postfix) with ESMTP id AF4F7431FBC for ; Tue, 17 Nov 2009 07:28:41 -0800 (PST) Received: from vertex.dottedmag (unknown [91.197.127.125]) by dottedmag.net (Postfix) with ESMTPSA id 44E938C57C for ; Tue, 17 Nov 2009 16:28:40 +0100 (CET) Received: from dottedmag by vertex.dottedmag with local (Exim 4.69) (envelope-from ) id 1NAPyw-0001lu-7S for notmuch@notmuchmail.org; Tue, 17 Nov 2009 21:28:38 +0600 From: Mikhail Gusarov To: notmuch@notmuchmail.org Date: Tue, 17 Nov 2009 21:28:37 +0600 Message-Id: <1258471718-6781-1-git-send-email-dottedmag@dottedmag.net> X-Mailer: git-send-email 1.6.3.3 Subject: [notmuch] [PATCH 1/2] Close message file after parsing message headers X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 15:28:42 -0000 Keeping unused files open helps to see "Too many open files" often. Signed-off-by: Mikhail Gusarov --- lib/message-file.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/lib/message-file.c b/lib/message-file.c index 8a3f8ee..197ab01 100644 --- a/lib/message-file.c +++ b/lib/message-file.c @@ -325,6 +325,11 @@ notmuch_message_file_get_header (notmuch_message_file_t *message, return decoded_value; } + if (message->parsing_finished) { + fclose (message->file); + message->file = NULL; + } + if (message->line) free (message->line); message->line = NULL; -- 1.6.3.3 From dottedmag@dottedmag.net Tue Nov 17 07:28:42 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E9F44431FBC for ; Tue, 17 Nov 2009 07:28:42 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 G-eHc3Vkyh9s for ; Tue, 17 Nov 2009 07:28:41 -0800 (PST) Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82]) by olra.theworths.org (Postfix) with ESMTP id AD998431FAE for ; Tue, 17 Nov 2009 07:28:41 -0800 (PST) Received: from vertex.dottedmag (unknown [91.197.127.125]) by dottedmag.net (Postfix) with ESMTPSA id 4052D8C575 for ; Tue, 17 Nov 2009 16:28:40 +0100 (CET) Received: from dottedmag by vertex.dottedmag with local (Exim 4.69) (envelope-from ) id 1NAPyw-0001lw-Ay for notmuch@notmuchmail.org; Tue, 17 Nov 2009 21:28:38 +0600 From: Mikhail Gusarov To: notmuch@notmuchmail.org Date: Tue, 17 Nov 2009 21:28:38 +0600 Message-Id: <1258471718-6781-2-git-send-email-dottedmag@dottedmag.net> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1258471718-6781-1-git-send-email-dottedmag@dottedmag.net> References: <1258471718-6781-1-git-send-email-dottedmag@dottedmag.net> Subject: [notmuch] [PATCH 2/2] Include to get uint32_t in C++ file with gcc 4.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 15:28:43 -0000 Signed-off-by: Mikhail Gusarov --- lib/message.cc | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/message.cc b/lib/message.cc index 72c350f..a4b090b 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -21,6 +21,8 @@ #include "notmuch-private.h" #include "database-private.h" +#include + #include #include -- 1.6.3.3 From lars@seas.harvard.edu Tue Nov 17 11:01:09 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id EE00F431FBC for ; Tue, 17 Nov 2009 11:01:08 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 KZZsxgOA6eN0 for ; Tue, 17 Nov 2009 11:01:08 -0800 (PST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by olra.theworths.org (Postfix) with ESMTP id 5AB69431FAE for ; Tue, 17 Nov 2009 11:01:08 -0800 (PST) Received: from smtp-outbound.seas.harvard.edu (smtp-outbound.seas.harvard.edu [140.247.51.171]) by mx.perfora.net (node=mxus0) with ESMTP (Nemesis) id 0Lkvt7-1NkuZw0tAz-00bLK6 for notmuch@notmuchmail.org; Tue, 17 Nov 2009 14:01:05 -0500 Received: from dottiness.seas.harvard.edu (dottiness.seas.harvard.edu [140.247.52.224]) by smtp-outbound.seas.harvard.edu (8.13.8/8.13.8) with SMTP id nAHJ0s4H016733 for ; Tue, 17 Nov 2009 14:00:54 -0500 Received: by dottiness.seas.harvard.edu (sSMTP sendmail emulation); Tue, 17 Nov 2009 14:00:54 -0500 Date: Tue, 17 Nov 2009 14:00:54 -0500 From: Lars Kellogg-Stedman To: notmuch@notmuchmail.org Message-ID: <20091117190054.GU3165@dottiness.seas.harvard.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5Dr6Wqe9hdyl7LAI" Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Subject: [notmuch] Working with Maildir storage? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 19:01:09 -0000 --5Dr6Wqe9hdyl7LAI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I saw the LWN article and decided to take a look at notmuch. I'm currently using mutt and mairix to index and read a collection of Maildir mail folders (around 40,000 messages total). notmuch indexed the messages without complaint, but my attempt at searching bombed out. Running, for example: notmuch search storage Resulted in 4604 lines of errors along the lines of: Error opening /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U= =3D3026:2,S: Too many open files I'm curious if this is expected behavior (i.e., notmuch does not work with Maildir) or if something else is going on. Cheers, --=20 Lars Kellogg-Stedman Senior Technologist, Computing and Information Technology Harvard University School of Engineering and Applied Sciences --5Dr6Wqe9hdyl7LAI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQEcBAEBCAAGBQJLAvLmAAoJENdGlQYxQazYRtcH/0usClQ1Z+EoTsA+URwIK6hD FsZUxFxRjMuOQRn2idZ/zhhg5jJj11ZaHjqxSkDvi2ywkTKUf1vX9LLzVy5hSR9M E6XQUd5QWAQXo1VsTeKkukIL0YqsPjdgrT8+Yt+OS2NvhEncql23oxnL2/pHkIFq r0NdTmVV5Jcar7w9J6X1Mi9m229a/9jV5FImsWISkIhIWznXU5SiU6zIw8xhP4E0 xhvVSNJnFryjVHtva870aSQduhHfeLPzpYhqbkMPvlq+bcz6Q/Q2SwxJcGLNMPHa os9s9FGhCvFKUhVzezHWPgXNCcNT8qK89rcUldb5Oq4jaJb8RCZCYABplfoyaFs= =vO4s -----END PGP SIGNATURE----- --5Dr6Wqe9hdyl7LAI-- From dottedmag@dottedmag.net Tue Nov 17 11:02:44 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8F34D431FBC for ; Tue, 17 Nov 2009 11:02:44 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 F6q08k1tfPb1 for ; Tue, 17 Nov 2009 11:02:43 -0800 (PST) Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82]) by olra.theworths.org (Postfix) with ESMTP id A93A2431FAE for ; Tue, 17 Nov 2009 11:02:43 -0800 (PST) Received: from vertex.dottedmag (unknown [91.197.127.125]) by dottedmag.net (Postfix) with ESMTPSA id EB9208C03E for ; Tue, 17 Nov 2009 20:02:42 +0100 (CET) Received: from dottedmag by vertex.dottedmag with local (Exim 4.69) (envelope-from ) id 1NATK4-0002yx-Um for notmuch@notmuchmail.org; Wed, 18 Nov 2009 01:02:40 +0600 From: Mikhail Gusarov To: notmuch@notmuchmail.org References: <20091117190054.GU3165@dottiness.seas.harvard.edu> Date: Wed, 18 Nov 2009 01:02:38 +0600 In-Reply-To: <20091117190054.GU3165@dottiness.seas.harvard.edu> (Lars Kellogg-Stedman's message of "Tue, 17 Nov 2009 14:00:54 -0500") Message-ID: <87iqd9rn3l.fsf@vertex.dottedmag> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] Working with Maildir storage? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 19:02:44 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable Twas brillig at 14:00:54 17.11.2009 UTC-05 when lars@seas.harvard.edu did g= yre and gimble: LK> Resulted in 4604 lines of errors along the lines of: LK> Error opening LK> /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostna= me,U=3D3026:2,S: LK> Too many open files See the patch just posted here. =2D-=20 http://fossarchy.blogspot.com/ --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAEBAgAGBQJLAvNOAAoJEJ0g9lA+M4iIjLYQAKp0PXEgl3JMOEBisH52AsIK CzzfP4Fzd41K9VH/c1EdQWDYR6FCAA4IUSNICnJhITsYUb0eC5AKJiey3JP0+rmd s4qEFBKH2iuphv8Llltcv2Q8DyPuJBkVa3mO9XCCeABZ6v4UvnTSWRVG12csSEih ScgienU8sMrM9LwvvVI1ZB2flm2TzsH2hWi30jIgmtBntIKJaTgbFXB50FYFwULa gGL/oH3u+YpumedWzPZdCJrw2q7nMvYx8aQ29EDCNLZibAZe+6oDTa6Fv6/0ldpQ U+DptR0nJGbJTWa26OTSvmyeIORjAfM+TEI68n7KO9VHYPmVh6awcf0MNKYh2xWk eRQNBcKyQNWxeKyCCpT/rrTlpxBWahpvg+V8lkDH2W09wjRp6CUKvifK3Sz3am9m 5ZUMpvXbwkZD6Ci6l/QytbYK50e8UpvFSu5DBaxBz59ykoypuNg2ayO5Kdi6IF5d T+Sw6wo8UKn9a33+vheIc0fkhZXbeSotEmDm7huazm6CgM3dcWXUpTuJvik1cSWp 4buv98gY6IKWKoUTXODWUr+7VR4gei8du8qOsKem+QDfNX7tmaIRjhrbB24B91Wy td3MTJD7GjMNid0INqRY1CRMLo8YlPaq6NBZfcYtYgwa6gpJijz1/MAn8+GMrfhF 9LI8b9jopNP+pMYBohLA =/ksP -----END PGP SIGNATURE----- --=-=-=-- From alex.boterolowry@gmail.com Tue Nov 17 11:36:16 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 93512431FBC for ; Tue, 17 Nov 2009 11:36:16 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 kZBOSJkg8HUp for ; Tue, 17 Nov 2009 11:36:14 -0800 (PST) Received: from mail-pw0-f51.google.com (mail-pw0-f51.google.com [209.85.160.51]) by olra.theworths.org (Postfix) with ESMTP id 97F88431FAE for ; Tue, 17 Nov 2009 11:36:14 -0800 (PST) Received: by pwj10 with SMTP id 10so181713pwj.30 for ; Tue, 17 Nov 2009 11:36:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=WkALQ7xcwXfC2PRBDFoNkkMv2fR+opuFak4fTMbFETA=; b=beZOWf3rXiqG2Q3nZVDQPOP8JaJAElaSzEBEzbaxbQZ8MLffVuQQN75f8EbuwYoB/D 8y1igTvWrWZ+izgzlrBArO2CB6LSKF0OOFmW9lQFmt6qI64FwqCvVDIzeM70V+kvLyYX soGU4Px/9QMq9a5cwC+/SxR+0/6g49niqCkps= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=EuIvjlj55KndkXlRFejdQMbLNY+CHYaR24wu8w4FnC2ddz4TOaSoDM3RKwM9x2lljY QclpHbqsV4GhGanr0eB8XJdNl4VICEK0mLRnTePt825FOF4PLgIuCr5Jix/ETD4LGSCI qeAbP9b+n/3TOqlLxR4ldCd+iDa0QMHCiWxfw= MIME-Version: 1.0 Received: by 10.114.253.23 with SMTP id a23mr1109744wai.155.1258486574067; Tue, 17 Nov 2009 11:36:14 -0800 (PST) Date: Tue, 17 Nov 2009 11:36:14 -0800 Message-ID: From: Alex Botero-Lowry To: notmuch@notmuchmail.org Content-Type: multipart/mixed; boundary=0016e687869333b1570478963d35 Subject: [notmuch] preliminary FreeBSD support X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 19:36:16 -0000 --0016e687869333b1570478963d35 Content-Type: multipart/alternative; boundary=0016e687869333b14e0478963d33 --0016e687869333b14e0478963d33 Content-Type: text/plain; charset=ISO-8859-1 I saw the announcement this morning, and was very excited, as I had been hoping sup would be turned into a library, since I like the concept more than the UI (I'd rather an emacs interface). I did a preliminary compile which worked out fine, but sysconf(_SC_SC_GETPW_R_SIZE_MAX) returns -1 on FreeBSD, so notmuch_config_open segfaulted. Attached is a patch that supplies a default buffer size of 64 in cases where -1 is returned. http://www.opengroup.org/austin/docs/austin_328.txt - seems to indicate this is acceptable behavior, and http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/07/msg016808.htmlspecifically uses 64 as the buffer size. --0016e687869333b14e0478963d33 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I saw the announcement this morning, and was very excited, as I had been ho= ping sup would be turned into a library,
since I like the concept more t= han the UI (I'd rather an emacs interface).

I did a preliminary = compile which worked out fine, but sysconf(_SC_SC_GETPW_R_SIZE_MAX) returns= -1 on
FreeBSD, so notmuch_config_open segfaulted.

Attached is a patch that= supplies a default buffer size of 64 in cases where -1 is returned.
http://www= .opengroup.org/austin/docs/austin_328.txt - seems to indicate this is a= cceptable behavior,
and http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/07/msg016808.html<= /a> specifically uses 64 as the
buffer size.


--0016e687869333b14e0478963d33-- --0016e687869333b1570478963d35 Content-Type: application/octet-stream; name="0001-Deal-with-situation-where-sysconf-_SC_GETPW_R_SIZE_M.patch" Content-Disposition: attachment; filename="0001-Deal-with-situation-where-sysconf-_SC_GETPW_R_SIZE_M.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g252e6gs0 RnJvbSBlM2JjNGJiZDdiOWQwZDA4NjgxNmFiNWY4ZjJkNmZmZWExZGQzZWE0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGV4YW5kZXIgQm90ZXJvLUxvd3J5IDxhbGV4LmJvdGVyb2xv d3J5QGdtYWlsLmNvbT4KRGF0ZTogVHVlLCAxNyBOb3YgMjAwOSAxMTozMDozOSAtMDgwMApTdWJq ZWN0OiBbUEFUQ0hdIERlYWwgd2l0aCBzaXR1YXRpb24gd2hlcmUgc3lzY29uZihfU0NfR0VUUFdf Ul9TSVpFX01BWCkgcmV0dXJucyAtMQoKLS0tCiBub3RtdWNoLWNvbmZpZy5jIHwgICAgMiArKwog MSBmaWxlcyBjaGFuZ2VkLCAyIGluc2VydGlvbnMoKyksIDAgZGVsZXRpb25zKC0pCgpkaWZmIC0t Z2l0IGEvbm90bXVjaC1jb25maWcuYyBiL25vdG11Y2gtY29uZmlnLmMKaW5kZXggMjQ4MTQ5Yy4u ZTcyMjBkOCAxMDA2NDQKLS0tIGEvbm90bXVjaC1jb25maWcuYworKysgYi9ub3RtdWNoLWNvbmZp Zy5jCkBAIC03Nyw2ICs3Nyw3IEBAIHN0YXRpYyBjaGFyICoKIGdldF9uYW1lX2Zyb21fcGFzc3dk X2ZpbGUgKHZvaWQgKmN0eCkKIHsKICAgICBsb25nIHB3X2J1Zl9zaXplID0gc3lzY29uZihfU0Nf R0VUUFdfUl9TSVpFX01BWCk7CisgICAgaWYgKHB3X2J1Zl9zaXplID09IC0xKSBwd19idWZfc2l6 ZSA9IDY0OwogICAgIGNoYXIgKnB3X2J1ZiA9IHRhbGxvY196ZXJvX3NpemUgKGN0eCwgcHdfYnVm X3NpemUpOwogICAgIHN0cnVjdCBwYXNzd2QgcGFzc3dkLCAqaWdub3JlZDsKICAgICBjaGFyICpu YW1lOwpAQCAtMTAxLDYgKzEwMiw3IEBAIHN0YXRpYyBjaGFyICoKIGdldF91c2VybmFtZV9mcm9t X3Bhc3N3ZF9maWxlICh2b2lkICpjdHgpCiB7CiAgICAgbG9uZyBwd19idWZfc2l6ZSA9IHN5c2Nv bmYoX1NDX0dFVFBXX1JfU0laRV9NQVgpOworICAgIGlmIChwd19idWZfc2l6ZSA9PSAtMSkgcHdf YnVmX3NpemUgPSA2NDsKICAgICBjaGFyICpwd19idWYgPSB0YWxsb2NfemVyb19zaXplIChjdHgs IHB3X2J1Zl9zaXplKTsKICAgICBzdHJ1Y3QgcGFzc3dkIHBhc3N3ZCwgKmlnbm9yZWQ7CiAgICAg Y2hhciAqbmFtZTsKLS0gCjEuNi41LjIKCg== --0016e687869333b1570478963d35-- From cworth@cworth.org Tue Nov 17 12:19:41 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 60724431FBF; Tue, 17 Nov 2009 12:19:41 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 j+ZeUopdCH+8; Tue, 17 Nov 2009 12:19:40 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 58221431FAE; Tue, 17 Nov 2009 12:19:39 -0800 (PST) From: Carl Worth To: Alex Botero-Lowry , notmuch@notmuchmail.org In-Reply-To: References: Date: Tue, 17 Nov 2009 12:19:24 -0800 Message-ID: <87lji4lx9v.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] preliminary FreeBSD support X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 20:19:41 -0000 On Tue, 17 Nov 2009 11:36:14 -0800, Alex Botero-Lowry wrote: > I saw the announcement this morning, and was very excited, as I had been > hoping sup would be turned into a library, > since I like the concept more than the UI (I'd rather an emacs interface). Hi Alex, That's great! It's good to hear that there are like-minded people out there. I hope that Notmuch will be useful for you. > I did a preliminary compile which worked out fine, but > sysconf(_SC_SC_GETPW_R_SIZE_MAX) returns -1 on > FreeBSD, so notmuch_config_open segfaulted. > > Attached is a patch that supplies a default buffer size of 64 in cases where > -1 is returned. Thanks for the patch. As we discussed in IRC[*], we should probably do the correct thing and check for ERANGE and loop as necessary (even if sysconf returns a positive value). Example code here: http://www.opengroup.org/austin/docs/austin_328.txt -Carl [*] #notmuch on irc.freenode.net for those who didn't just guess that already, (and I'll add that to the website soon). From cworth@cworth.org Tue Nov 17 12:22:26 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 7C278431FBF; Tue, 17 Nov 2009 12:22:26 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 nOTYdHxKQfjQ; Tue, 17 Nov 2009 12:22:26 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 44BFE431FAE; Tue, 17 Nov 2009 12:22:24 -0800 (PST) From: Carl Worth To: Mikhail Gusarov , notmuch@notmuchmail.org In-Reply-To: <1258471718-6781-1-git-send-email-dottedmag@dottedmag.net> Date: Tue, 17 Nov 2009 09:13:27 -0800 Message-ID: <87lji5cbwo.fsf@yoom.home.cworth.org> References: <1258471718-6781-1-git-send-email-dottedmag@dottedmag.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH 1/2] Close message file after parsing message headers X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 20:22:26 -0000 On Tue, 17 Nov 2009 21:28:37 +0600, Mikhail Gusarov wrote: > Keeping unused files open helps to see "Too many open files" often. > > Signed-off-by: Mikhail Gusarov ... On Tue, 17 Nov 2009 21:28:38 +0600, Mikhail Gusarov wrote: > > Signed-off-by: Mikhail Gusarov > --- > lib/message.cc | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) Hi Mikhail, Welcome to notmuch, and thanks for these patches! I've pushed both of them out now. Keith ran into the same problem of "too many open files" and wrote a more complex fix, (which included what you did here). His code can be seen at: git://keithp.com/git/notmuch I didn't apply Keith's fix yet, because I think I'd rather just fix the indexer to store the In-Reply-To header in a separate term prefix from the term used for the References header[*]. That will then let us lookup the in-reply-to value later for thread constructions without having to open the original email file at all. -Carl [*] Yes, this is my first post to our new mailing list and I'm already spouting off about "terms" and "prefixes" without any definitions. I apologize for that. I hope that people will ask questions freely here on the list whenever anything is not clear, and I'll be glad to explain things as needed. (Then when can shove answers into a HACKING document.) PS. This reply is a great example of a feature that notmuch *almost* supports already---repling to multiple messages at once. The "notmuch reply" command line does everything necessary to make this work, but we haven't yet hooked up any keybindings for this in the emacs client yet. Obviously, 'r' from the search view could reply to the entire thread. But when viewing a thread, anyone have a good keybinding suggestion? (There's obviously 'R' as opposed to 'r', but I think we'll probably want to distinguish "reply to sender" from "reply to all" before trying to distinguish "reply to message" from "reply to thread" (which I imagine is more rare of an operation). From lars@seas.harvard.edu Tue Nov 17 12:33:05 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 7081C431FBC for ; Tue, 17 Nov 2009 12:33:05 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 9Bzx4PeYoggl for ; Tue, 17 Nov 2009 12:33:04 -0800 (PST) X-Greylist: delayed 5520 seconds by postgrey-1.32 at olra; Tue, 17 Nov 2009 12:33:04 PST Received: from smtp-outbound.seas.harvard.edu (smtp-outbound.seas.harvard.edu [140.247.51.171]) by olra.theworths.org (Postfix) with ESMTP id CD630431FAE for ; Tue, 17 Nov 2009 12:33:04 -0800 (PST) Received: from dottiness.seas.harvard.edu (dottiness.seas.harvard.edu [140.247.52.224]) by smtp-outbound.seas.harvard.edu (8.13.8/8.13.8) with SMTP id nAHKX1ar024287; Tue, 17 Nov 2009 15:33:01 -0500 Received: by dottiness.seas.harvard.edu (sSMTP sendmail emulation); Tue, 17 Nov 2009 15:33:01 -0500 Date: Tue, 17 Nov 2009 15:33:01 -0500 From: Lars Kellogg-Stedman To: Mikhail Gusarov Message-ID: <20091117203301.GV3165@dottiness.seas.harvard.edu> References: <20091117190054.GU3165@dottiness.seas.harvard.edu> <87iqd9rn3l.fsf@vertex.dottedmag> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GGxZz/e2pmGePzrA" Content-Disposition: inline In-Reply-To: <87iqd9rn3l.fsf@vertex.dottedmag> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] Working with Maildir storage? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 20:33:05 -0000 --GGxZz/e2pmGePzrA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > See the patch just posted here. Is the list archived anywhere? The obvious archives (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I think I subscribed too late to get the patch (I only just saw the discussion about it). It doesn't look like the patch is in git yet. -- Lars --=20 Lars Kellogg-Stedman Senior Technologist, Computing and Information Technology Harvard University School of Engineering and Applied Sciences --GGxZz/e2pmGePzrA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQEcBAEBCAAGBQJLAwh9AAoJENdGlQYxQazYHJMIAI+XTPOyBTZIxEGTdgVKd2fR k27ucKs6lXozfMIIGchNUDXQho+KmiuTfX1XFJeBkqOlhrd9zlGjBGoBM0YBq/Gs aStPdonREzsHORjmyQCCpjg4AcqCRTXFbDXzAeXlxMPOrZ3P0XNPzTEM1mVksbmg mBBDLdHncy4sSCfFgXwRGGgLv9z5Acqm8xGYr68c9PIXY939ozIKV9LVUhxiNz9g We2a9rLDhfwxUqDlGdiNwZZimiKvD/fsYSrBZMDb5HgIYkeNZ4SD8Xu+OgB550wN OFfwGi3o8WFK2AyDe5QJDh9Ub+euPNlVzePoGpkltZEHuCcLFJqCHv5XYpbxcjA= =GO2Q -----END PGP SIGNATURE----- --GGxZz/e2pmGePzrA-- From dottedmag@dottedmag.net Tue Nov 17 12:50:55 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 13A57431FBC for ; Tue, 17 Nov 2009 12:50:55 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 JvRtB2LCMsRi for ; Tue, 17 Nov 2009 12:50:54 -0800 (PST) Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82]) by olra.theworths.org (Postfix) with ESMTP id 4B5DD431FAE for ; Tue, 17 Nov 2009 12:50:54 -0800 (PST) Received: from vertex.dottedmag (unknown [91.197.127.125]) by dottedmag.net (Postfix) with ESMTPSA id 6CAA38C06C for ; Tue, 17 Nov 2009 21:50:53 +0100 (CET) Received: from dottedmag by vertex.dottedmag with local (Exim 4.69) (envelope-from ) id 1NAV0k-0007h8-W0 for notmuch@notmuchmail.org; Wed, 18 Nov 2009 02:50:51 +0600 From: Mikhail Gusarov To: notmuch@notmuchmail.org References: <20091117190054.GU3165@dottiness.seas.harvard.edu> <87iqd9rn3l.fsf@vertex.dottedmag> <20091117203301.GV3165@dottiness.seas.harvard.edu> Date: Wed, 18 Nov 2009 02:50:48 +0600 In-Reply-To: <20091117203301.GV3165@dottiness.seas.harvard.edu> (Lars Kellogg-Stedman's message of "Tue, 17 Nov 2009 15:33:01 -0500") Message-ID: <87fx8can9z.fsf@vertex.dottedmag> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] Working with Maildir storage? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 20:50:55 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable Twas brillig at 15:33:01 17.11.2009 UTC-05 when lars@seas.harvard.edu did g= yre and gimble: LK> Is the list archived anywhere? The obvious archives LK> (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I LK> think I subscribed too late to get the patch (I only just saw the LK> discussion about it). LK> It doesn't look like the patch is in git yet. Just has been pushed =2D-=20 http://fossarchy.blogspot.com/ --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAEBAgAGBQJLAwyoAAoJEJ0g9lA+M4iIeSQP/07tLHYQO48dEumLbNGdvDQt XWOtutPbGiId2ffs/rpe4uDPIMHrgXSeSj9l0TGjLA7uVp70mwyZ+5XZZgViJZye pKLuw7HTtWebcP95LJ/RgyMt9bEIGqzLOy0LKv8QsFJR1bQQk4bRfa4hQ7ZkZJWG yFHa2wT3obVZocaGnkpB+yPV/UwSnUpUA35qy8fe1JstBYGJMbOWW8SxttVSTgrY Q07nP+kwva6nUHxxM9jAwBawOApjwQcHN/Z69KvLCA5bES72u7cNv7Agy4cmhE7b vplJn1cQfgz8c9LXXIdCvT4uHygH0oS2VBvRJhVQU5yWbyGH5CnQxgpbZix6Hp+o cHm1n3YkgmbRhu/KTnZAQZ4aqj5vF31lX6sRa2hkJUOPPNn+887hC7zwIyoaCmXz oYqY1gSR7E+x6AMHQL+z7byhrjHiHCjzsqusNbltU2pTAJY4zgPaZArFrriv2oef 9Y9KB78F7Q+ccBCEZJvpiEfWJVOkVM3UgmP+BBQwvq3+vWGGU8P+0P/+jNec+/rZ pHXRBuroa5Z5cL+ZX2eBuMsPmChf2FvPwhm2LisDgrSr8ApIEWpmDNJkuuTqn2Wg 7zSreN0q2aQl96j80FBXszL5y8gXXIHVS9BcJIFF52Ww1h19LDnBpYS9j6kE3u8f Sll+C+7x4vUJk2mmA+K8 =AxP3 -----END PGP SIGNATURE----- --=-=-=-- From dottedmag@dottedmag.net Tue Nov 17 12:51:20 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id DE52D431FBC for ; Tue, 17 Nov 2009 12:51:20 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 vSNyQAFba5ed for ; Tue, 17 Nov 2009 12:51:20 -0800 (PST) Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82]) by olra.theworths.org (Postfix) with ESMTP id 40D02431FAE for ; Tue, 17 Nov 2009 12:51:20 -0800 (PST) Received: from vertex.dottedmag (unknown [91.197.127.125]) by dottedmag.net (Postfix) with ESMTPSA id 923208C03E for ; Tue, 17 Nov 2009 21:51:19 +0100 (CET) Received: from dottedmag by vertex.dottedmag with local (Exim 4.69) (envelope-from ) id 1NAV1C-0007is-8Z for notmuch@notmuchmail.org; Wed, 18 Nov 2009 02:51:18 +0600 From: Mikhail Gusarov To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 02:51:18 +0600 Message-Id: <1258491078-29658-1-git-send-email-dottedmag@dottedmag.net> X-Mailer: git-send-email 1.6.3.3 Subject: [notmuch] [PATCH] Handle rename of message file X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 20:51:21 -0000 If message file has been renamed, just update filename in the DB. Signed-off-by: Mikhail Gusarov --- lib/database.cc | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 3c8d626..c4eb8b6 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -925,20 +925,23 @@ notmuch_database_add_message (notmuch_database_t *notmuch, if (private_status == NOTMUCH_PRIVATE_STATUS_NO_DOCUMENT_FOUND) { _notmuch_message_set_filename (message, filename); _notmuch_message_add_term (message, "type", "mail"); + + ret = _notmuch_database_link_message (notmuch, message, message_file); + if (ret) + goto DONE; + + date = notmuch_message_file_get_header (message_file, "date"); + _notmuch_message_set_date (message, date); + + _notmuch_message_index_file (message, filename); + } else if (strcmp(notmuch_message_get_filename(message), filename)) { + /* Message file has been moved/renamed */ + _notmuch_message_set_filename (message, filename); } else { ret = NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID; goto DONE; } - ret = _notmuch_database_link_message (notmuch, message, message_file); - if (ret) - goto DONE; - - date = notmuch_message_file_get_header (message_file, "date"); - _notmuch_message_set_date (message, date); - - _notmuch_message_index_file (message, filename); - _notmuch_message_sync (message); } catch (const Xapian::Error &error) { fprintf (stderr, "A Xapian exception occurred: %s.\n", -- 1.6.3.3 From keithp@keithp.com Tue Nov 17 13:15:31 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id F1E1A431FAE for ; Tue, 17 Nov 2009 13:15:30 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 iCUsOU61POSG for ; Tue, 17 Nov 2009 13:15:29 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 77B24431FBF for ; Tue, 17 Nov 2009 13:15:29 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 95C46760129; Tue, 17 Nov 2009 13:15:28 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zJkWoUraovYM; Tue, 17 Nov 2009 13:15:25 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id 723E276012A; Tue, 17 Nov 2009 13:15:25 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 64A17760129; Tue, 17 Nov 2009 13:15:25 -0800 (PST) From: Keith Packard To: Carl Worth , Mikhail Gusarov , notmuch@notmuchmail.org In-Reply-To: <87lji5cbwo.fsf@yoom.home.cworth.org> References: <1258471718-6781-1-git-send-email-dottedmag@dottedmag.net> <87lji5cbwo.fsf@yoom.home.cworth.org> Date: Tue, 17 Nov 2009 13:15:25 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH 1/2] Close message file after parsing message headers X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 21:15:31 -0000 On Tue, 17 Nov 2009 09:13:27 -0800, Carl Worth wrote: > I didn't apply Keith's fix yet, because I think I'd rather just fix the > indexer to store the In-Reply-To header in a separate term prefix from > the term used for the References header[*]. That will then let us lookup > the in-reply-to value later for thread constructions without having to > open the original email file at all. Threading the message also involves displaying the from and to contents, which requires opening the message file. The alternative to the fix I provided is to just parse all of the message headers when first opening the message; it could then be immediately closed and the hash referred to for all header data. Given the choice, just having the caller say when it has finished with a message is probably a reasonable option... -keith From keithp@keithp.com Tue Nov 17 13:24:18 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B3344431FBC for ; Tue, 17 Nov 2009 13:24:18 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 gwgyjmmErduK for ; Tue, 17 Nov 2009 13:24:18 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 0608E431FAE for ; Tue, 17 Nov 2009 13:24:18 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 6E5A2760129; Tue, 17 Nov 2009 13:24:17 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vwKvm85blN7E; Tue, 17 Nov 2009 13:24:14 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id 4744E76012A; Tue, 17 Nov 2009 13:24:14 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 3A637760129; Tue, 17 Nov 2009 13:24:14 -0800 (PST) From: Keith Packard To: Lars Kellogg-Stedman , Mikhail Gusarov In-Reply-To: <20091117203301.GV3165@dottiness.seas.harvard.edu> References: <20091117190054.GU3165@dottiness.seas.harvard.edu> <87iqd9rn3l.fsf@vertex.dottedmag> <20091117203301.GV3165@dottiness.seas.harvard.edu> Date: Tue, 17 Nov 2009 13:24:13 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] Working with Maildir storage? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 21:24:18 -0000 On Tue, 17 Nov 2009 15:33:01 -0500, Lars Kellogg-Stedman wrote: > > See the patch just posted here. I've also pushed a slightly more complicated (and complete) fix to my private notmuch repository git://keithp.com/git/notmuch > Is the list archived anywhere? Oops. Looks like Carl's mail server is broken. He's traveling to Barcelona today and so it won't get fixed for a while. Thanks to everyone for trying out notmuch! -keith From keithp@keithp.com Tue Nov 17 13:32:52 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5827D431FBC for ; Tue, 17 Nov 2009 13:32:52 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 54mHbuHofMwV for ; Tue, 17 Nov 2009 13:32:51 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id D7D39431FAE for ; Tue, 17 Nov 2009 13:32:50 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 52D6876012B for ; Tue, 17 Nov 2009 13:32:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00yCjq0CwzdJ; Tue, 17 Nov 2009 13:32:46 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id E225276012A; Tue, 17 Nov 2009 13:32:46 -0800 (PST) Received: from koto.keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id DF203760129; Tue, 17 Nov 2009 13:32:46 -0800 (PST) Received: by koto.keithp.com (Postfix, from userid 1488) id 887CD318131; Tue, 17 Nov 2009 13:32:46 -0800 (PST) From: Keith Packard To: notmuch@notmuchmail.org Date: Tue, 17 Nov 2009 13:32:45 -0800 Message-Id: <1258493565-13508-1-git-send-email-keithp@keithp.com> X-Mailer: git-send-email 1.6.5.2 Subject: [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 21:32:52 -0000 When closing a thread view, mark the thread as archived by removing the "inbox" tag, and for the 'x' variant, the "unread" tag as well, then kill the buffer and update the search window view as well. This makes 'x' much the same as 'a', but instead of taking you to the next message, it takes you back to the search window instead. Signed-off-by: Keith Packard --- notmuch.el | 86 ++++++++++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 67 insertions(+), 19 deletions(-) diff --git a/notmuch.el b/notmuch.el index 638d49d..7b0d72c 100644 --- a/notmuch.el +++ b/notmuch.el @@ -31,8 +31,8 @@ ; Will be much preferable to switch to direct manipulation for ; toggling visibility of these components. Probably using ; overlays-at to query and manipulate the current overlay. - (define-key map "a" 'notmuch-show-archive-thread) - (define-key map "A" 'notmuch-show-mark-read-then-archive-thread) + (define-key map "a" 'notmuch-show-mark-read-archive-thread-next-thread) + (define-key map "A" 'notmuch-show-archive-thread-next-thread) (define-key map "b" 'notmuch-show-toggle-body-read-visible) (define-key map "c" 'notmuch-show-toggle-citations-visible) (define-key map "h" 'notmuch-show-toggle-headers-visible) @@ -47,7 +47,8 @@ (define-key map "s" 'notmuch-show-toggle-signatures-visible) (define-key map "v" 'notmuch-show-view-all-mime-parts) (define-key map "w" 'notmuch-show-view-raw-message) - (define-key map "x" 'kill-this-buffer) + (define-key map "x" 'notmuch-show-mark-read-archive-thread-kill-buffer) + (define-key map "X" 'notmuch-show-archive-thread-kill-buffer) (define-key map "+" 'notmuch-show-add-tag) (define-key map "-" 'notmuch-show-remove-tag) (define-key map (kbd "DEL") 'notmuch-show-rewind) @@ -183,7 +184,33 @@ Unlike builtin `next-line' this version accepts no arguments." (cons (notmuch-show-get-message-id) nil))) (notmuch-show-set-tags (sort (set-difference tags toremove :test 'string=) 'string<)))))) -(defun notmuch-show-archive-thread-maybe-mark-read (markread) +(defun notmuch-show-next-thread (markread) + (let ((parent-buffer notmuch-show-parent-buffer)) + (kill-this-buffer) + (if parent-buffer + (progn + (switch-to-buffer parent-buffer) + (forward-line) + (notmuch-search-show-thread))))) + +(defun notmuch-delete-tags (to-remove from) + (if to-remove + (delete (car to-remove) (notmuch-delete-tags (cdr to-remove) from)) + from)) + +(defun notmuch-kill-message-buffer (markread) + (let ((parent-buffer notmuch-show-parent-buffer)) + (kill-this-buffer) + (if parent-buffer + (progn + (switch-to-buffer parent-buffer) + (let ((tags (notmuch-search-get-tags))) + (setq tags (delete "inbox" tags)) + (if markread (setq tags (delete "unread" tags))) + (notmuch-search-set-tags tags)) + (forward-line))))) + +(defun notmuch-show-archive-thread-maybe-mark-read (markread shownext) (save-excursion (goto-char (point-min)) (while (not (eobp)) @@ -194,15 +221,9 @@ Unlike builtin `next-line' this version accepts no arguments." (forward-char)) (if (not (re-search-forward notmuch-show-message-begin-regexp nil t)) (goto-char (point-max))))) - (let ((parent-buffer notmuch-show-parent-buffer)) - (kill-this-buffer) - (if parent-buffer - (progn - (switch-to-buffer parent-buffer) - (forward-line) - (notmuch-search-show-thread))))) + (if shownext (notmuch-show-next-thread markread) (notmuch-kill-message-buffer markread))) -(defun notmuch-show-mark-read-then-archive-thread () +(defun notmuch-show-mark-read-archive-thread-next-thread () "Remove \"unread\" tag from each message, then archive and show next thread. Archive each message currrently shown by removing the \"unread\" @@ -215,9 +236,22 @@ being delivered to the same thread. It does not archive the entire thread, but only the messages shown in the current buffer." (interactive) - (notmuch-show-archive-thread-maybe-mark-read t)) + (notmuch-show-archive-thread-maybe-mark-read t t)) + +(defun notmuch-show-mark-read-archive-thread-kill-buffer () + "Remove \"unread\" tag from each message, then archive and kill the buffer. + +Archive each message currrently shown by removing the \"unread\" +and \"inbox\" tag from each. Then kill this buffer. + +Note: This command is safe from any race condition of new messages +being delivered to the same thread. It does not archive the +entire thread, but only the messages shown in the current +buffer." + (interactive) + (notmuch-show-archive-thread-maybe-mark-read t nil)) -(defun notmuch-show-archive-thread () +(defun notmuch-show-archive-thread-next-thread () "Archive each message in thread, and show next thread from search. Archive each message currrently shown by removing the \"inbox\" @@ -229,7 +263,20 @@ being delivered to the same thread. It does not archive the entire thread, but only the messages shown in the current buffer." (interactive) - (notmuch-show-archive-thread-maybe-mark-read nil)) + (notmuch-show-archive-thread-maybe-mark-read nil t)) + +(defun notmuch-show-archive-thread-kill-buffer () + "Archive each message in thread, and kill the thread buffer. + +Archive each message currrently shown by removing the \"inbox\" +tag from each. Then kill this buffer. + +Note: This command is safe from any race condition of new messages +being delivered to the same thread. It does not archive the +entire thread, but only the messages shown in the current +buffer." + (interactive) + (notmuch-show-archive-thread-maybe-mark-read nil t)) (defun notmuch-show-view-raw-message () "View the raw email of the current message." @@ -297,7 +344,7 @@ by searching backward)." (not (re-search-forward notmuch-show-message-begin-regexp nil t))))) (defun notmuch-show-message-unread-p () - "Preficate testing whether current message is unread." + "Predicate testing whether current message is unread." (member "unread" (notmuch-show-get-tags))) (defun notmuch-show-next-message () @@ -434,7 +481,7 @@ which this thread was originally shown." (let ((last (notmuch-show-last-message-p))) (notmuch-show-mark-read-then-next-open-message) (if last - (notmuch-show-archive-thread)))))) + (notmuch-show-archive-thread-next-thread)))))) (defun notmuch-show-markup-citations-region (beg end depth) (goto-char beg) @@ -618,8 +665,9 @@ messages. Each time you navigate away from a message with You can add or remove tags from the current message with '+' and '-'. You can also archive all messages in the current -view, (remove the \"inbox\" tag from each), with -`notmuch-show-archive-thread' (bound to 'a' by default). +view, (remove the \"inbox\" tag from each), with either +`notmuch-show-archive-thread-next-thread' (bound to 'a' by default) or +`notmuch-show-archive-thread-kill-buffer' (bound to 'x' by default). \\{notmuch-show-mode-map}" (interactive) -- 1.6.5.2 From SRS0=5erb=HF=iptel.org=jan@srs.perfora.net Tue Nov 17 14:18:52 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D80FF431FBC for ; Tue, 17 Nov 2009 14:18:52 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 AsNMzDlVNaaJ for ; Tue, 17 Nov 2009 14:18:52 -0800 (PST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by olra.theworths.org (Postfix) with ESMTP id 7BAF2431FAE for ; Tue, 17 Nov 2009 14:18:52 -0800 (PST) Received-SPF: pass (mxus1: domain of iptel.org designates 213.192.59.67 as permitted sender) client-ip=213.192.59.67; envelope-from=jan@iptel.org; helo=mail.iptel.org; Received: from mail.iptel.org ([213.192.59.67]) by mx.perfora.net (node=mxus1) with ESMTP (Nemesis) id 0Lsjs9-1OCDpK2DRx-012Hui for notmuch@notmuchmail.org; Tue, 17 Nov 2009 17:18:51 -0500 Received: by mail.iptel.org (Postfix, from userid 103) id 08FDF3707CE; Tue, 17 Nov 2009 23:18:49 +0100 (CET) Received: from x61s.janakj (r2c34.net.upc.cz [62.245.66.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.iptel.org (Postfix) with ESMTPSA id B0B2C370753 for ; Tue, 17 Nov 2009 23:18:48 +0100 (CET) Received: by x61s.janakj (Postfix, from userid 1000) id 8A1C5440655; Tue, 17 Nov 2009 23:18:47 +0100 (CET) From: Jan Janak To: notmuch@notmuchmail.org Date: Tue, 17 Nov 2009 23:18:47 +0100 Message-Id: <1258496327-12086-1-git-send-email-jan@ryngle.com> X-Mailer: git-send-email 1.6.3.3 Subject: [notmuch] [PATCH] Older versions of install do not support -C. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 22:18:53 -0000 Do not use -C cmdline option of install, older versions, commonly found in distributions like Debian, do not seem to support it. Running make install on such systems (tested on Debian Lenny) fails. Signed-off-by: Jan Janak --- Makefile.local | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.local b/Makefile.local index f824bed..f51f1d1 100644 --- a/Makefile.local +++ b/Makefile.local @@ -27,11 +27,11 @@ install: all notmuch.1.gz for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \ $(DESTDIR)/etc/bash_completion.d/ ; \ do \ - install -C -d $$d ; \ + install -d $$d ; \ done ; - install -C notmuch $(DESTDIR)$(prefix)/bin/ - install -C -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/ - install -C notmuch-completion.bash \ + install notmuch $(DESTDIR)$(prefix)/bin/ + install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/ + install notmuch-completion.bash \ $(DESTDIR)/etc/bash_completion.d/notmuch SRCS := $(SRCS) $(notmuch_client_srcs) -- 1.6.3.3 From jan@ryngle.com Tue Nov 17 14:35:34 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4684C431FBC for ; Tue, 17 Nov 2009 14:35:34 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 TO35WhIVbKwN for ; Tue, 17 Nov 2009 14:35:33 -0800 (PST) Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com [209.85.218.224]) by olra.theworths.org (Postfix) with ESMTP id 753FA431FAE for ; Tue, 17 Nov 2009 14:35:33 -0800 (PST) Received: by bwz24 with SMTP id 24so557414bwz.30 for ; Tue, 17 Nov 2009 14:35:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.4.137 with SMTP id 9mr652133far.95.1258497330937; Tue, 17 Nov 2009 14:35:30 -0800 (PST) Date: Tue, 17 Nov 2009 23:35:30 +0100 Message-ID: From: Jan Janak To: notmuch@notmuchmail.org Content-Type: text/plain; charset=UTF-8 Subject: [notmuch] What a great idea! X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 22:35:34 -0000 Hello, First of all, notmuch is a wonderful idea, both the cmdline tool and the emacs interface! Thanks a lot for writing it, I was really excited when I read the announcement today. Have you considered sending an announcement to the org-mode mailing list? http://org-mode.org Various ways of searching/referencing emails from emacs were discussed there several times and none of them were as elegant as notmuch (not even close). Maybe notmuch would attract some of the developers there.. -- Jan From jan@ryngle.com Tue Nov 17 14:38:49 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 29D87431FBC for ; Tue, 17 Nov 2009 14:38:49 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 OjDOE2bXWLFC for ; Tue, 17 Nov 2009 14:38:48 -0800 (PST) Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com [209.85.218.224]) by olra.theworths.org (Postfix) with ESMTP id 6B5A6431FAE for ; Tue, 17 Nov 2009 14:38:48 -0800 (PST) Received: by bwz24 with SMTP id 24so560700bwz.30 for ; Tue, 17 Nov 2009 14:38:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.73.20 with SMTP id o20mr272190faj.71.1258497527101; Tue, 17 Nov 2009 14:38:47 -0800 (PST) In-Reply-To: References: Date: Tue, 17 Nov 2009 23:38:47 +0100 Message-ID: From: Jan Janak To: notmuch@notmuchmail.org Content-Type: text/plain; charset=UTF-8 Subject: Re: [notmuch] What a great idea! X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 22:38:49 -0000 On Tue, Nov 17, 2009 at 11:35 PM, Jan Janak wrote: > Hello, > > First of all, notmuch is a wonderful idea, both the cmdline tool and > the emacs interface! Thanks a lot for writing it, I was really excited > when I read the announcement today. > > Have you considered sending an announcement to the org-mode mailing list? > http://org-mode.org Sorry, wrong URL, the correct one is: http://orgmode.org > Various ways of searching/referencing emails from emacs were discussed > there several times and none of them were as elegant as notmuch (not > even close). Maybe notmuch would attract some of the developers > there.. -- Jan From israel.herraiz@gmail.com Tue Nov 17 14:57:32 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E1B99431FBF for ; Tue, 17 Nov 2009 14:57:32 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 iTH78-v7lLQ5 for ; Tue, 17 Nov 2009 14:57:32 -0800 (PST) Received: from mail-fx0-f217.google.com (mail-fx0-f217.google.com [209.85.220.217]) by olra.theworths.org (Postfix) with ESMTP id 0ED04431FBC for ; Tue, 17 Nov 2009 14:57:31 -0800 (PST) Received: by fxm9 with SMTP id 9so570698fxm.30 for ; Tue, 17 Nov 2009 14:57:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:content-type:subject :from:to:date:message-id:user-agent:content-transfer-encoding; bh=O9/ySCYjTYIgD8jXr7zbMIgUmg26FtTED0VCBEcEj8c=; b=F98j7qAmg9XhNroX1+Y46hQjSFPioTZQ9tWohIYR4oKJ8fJwzwzx0bDZlJkB85JAHL kllYYsLBIlF68gRQJOL5jC7VS/tQiCH+zqM9gMPUxS0HyPuuUQ4rVzgWUb+0ERTj26mt ETrRwmBD2zcoinUpUdbd31/Ndz7bmdN2OatUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:content-type:subject:from:to:date:message-id:user-agent :content-transfer-encoding; b=Dd+6EmwL6ZtEgaCfG4XQ4msOWHrH5w3wWSMc8kFz82zxMPJZ41tBT/+jknucnx2jbA oMn3/v2aGZMt+ryzezhLq3j8NM89v5ZgcOagX8oNL1GVzh59BcF30QKCQGQmruJEMFG9 zcqG7/8+jiSNff5oEZBx9WzPJ+sjSoahY+plQ= Received: by 10.103.127.35 with SMTP id e35mr4780839mun.106.1258498651061; Tue, 17 Nov 2009 14:57:31 -0800 (PST) Received: from elly (80.174.22.182.dyn.user.ono.com [80.174.22.182]) by mx.google.com with ESMTPS id n10sm2993969mue.47.2009.11.17.14.57.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Nov 2009 14:57:30 -0800 (PST) Sender: Israel Herraiz Content-Type: text/plain; charset=utf8 From: Israel Herraiz To: notmuch Date: Tue, 17 Nov 2009 23:57:18 +0100 Message-Id: <1258498485-sup-142@elly> User-Agent: Sup/git Content-Transfer-Encoding: 8bit Subject: [notmuch] New to the list X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 22:57:33 -0000 Hi all, I have subscribed to the list. As suggested by the welcome message, I am introducing myself. My name is Israel Herraiz, and I have done a couple of contributions to Sup, the probably well-known here e-mail client. "Not much" sounds interesting, and I wonder whether it could be integrated with the views of Sup (inbox, threads, etc). So I have subscribed to the list to keep an eye on what's going on here. I have just heard of "Not much". I have not even tried to download the code yet. Cheers, Israel From agriffis@ivy.griffis1.net Tue Nov 17 15:21:41 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D9C09431FBC for ; Tue, 17 Nov 2009 15:21:41 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 NAeXqva21AfD for ; Tue, 17 Nov 2009 15:21:41 -0800 (PST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.195]) by olra.theworths.org (Postfix) with ESMTP id 5703F431FAE for ; Tue, 17 Nov 2009 15:21:41 -0800 (PST) Received: from ivy.griffis1.net ([38.99.250.175]) by mx.perfora.net (node=mxus0) with ESMTP (Nemesis) id 0MHHy7-1NMraB3ayp-00Dbce for notmuch@notmuchmail.org; Tue, 17 Nov 2009 18:21:41 -0500 Received: by ivy.griffis1.net (Postfix, from userid 1002) id 6DCA198C5D; Tue, 17 Nov 2009 15:21:42 -0800 (PST) X-IMAP-Sender: agriffis Date: Tue, 17 Nov 2009 18:21:38 -0500 From: Aron Griffis To: notmuch Message-ID: <20091117232137.GA7669@griffis1.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-08-17) Subject: [notmuch] archive X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 23:21:42 -0000 Just subscribed, I'd like to catch up on the previous postings, but the archive link seems to be bogus? Thanks, Aron From ingmar@exherbo.org Tue Nov 17 15:23:54 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 13AF8431FBC for ; Tue, 17 Nov 2009 15:23:54 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 Ob2qfkmzy1uM for ; Tue, 17 Nov 2009 15:23:52 -0800 (PST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.195]) by olra.theworths.org (Postfix) with ESMTP id 364C9431FAE for ; Tue, 17 Nov 2009 15:23:52 -0800 (PST) Received: from bach.exherbo.org (bach.exherbo.org [78.47.197.147]) by mx.perfora.net (node=mxus2) with ESMTP (Nemesis) id 0MKobQ-1NAXOo3mDo-000PV3 for notmuch@notmuchmail.org; Tue, 17 Nov 2009 18:23:51 -0500 Received: from [83.101.72.69] (helo=localhost) by bach.exherbo.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NAXOm-0001SR-MD; Tue, 17 Nov 2009 23:23:49 +0000 From: Ingmar Vanhassel To: Date: Wed, 18 Nov 2009 00:23:42 +0100 Message-Id: <1258500222-32066-1-git-send-email-ingmar@exherbo.org> X-Mailer: git-send-email 1.6.5.2.433.g23cdb Subject: [notmuch] [PATCH] Typsos X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 23:23:54 -0000 --- Makefile | 4 ++-- README | 6 +++--- gmime-filter-reply.h | 2 +- lib/database.cc | 2 +- lib/index.cc | 2 +- lib/message.cc | 2 +- lib/messages.c | 2 +- lib/notmuch-private.h | 2 +- lib/notmuch.h | 10 +++++----- lib/sha1.c | 2 +- lib/thread.cc | 2 +- notmuch-completion.bash | 2 +- notmuch-new.c | 4 ++-- notmuch-search.c | 2 +- notmuch.1 | 4 ++-- notmuch.el | 10 +++++----- show-message.c | 2 +- 17 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Makefile b/Makefile index 436dacf..96aaa73 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Default FLAGS, (can be overriden by user such as "make CFLAGS=-O2") +# Default FLAGS, (can be overridden by user such as "make CFLAGS=-O2") WARN_FLAGS=-Wall -Wextra -Wmissing-declarations -Wwrite-strings -Wswitch-enum CFLAGS=-O2 @@ -14,7 +14,7 @@ override CXXFLAGS += $(WARN_FLAGS) $(extra_cflags) $(extra_cxxflags) override LDFLAGS += `pkg-config --libs glib-2.0 gmime-2.4 talloc` \ `xapian-config --libs` -# Include our local Makfile.local first so that its first target is default +# Include our local Makefile.local first so that its first target is default include Makefile.local include lib/Makefile.local diff --git a/README b/README index 40f05ab..27af77f 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ Notmuch - thread-based email index, search and tagging. Notmuch is a system for indexing, searching, reading, and tagging large collections of email messages. It uses the Xapian library to provide fast, full-text search of very large collection of email with -a very convenient search syntas. +a very convenient search syntax. Notmuch is free software, released under the GNU General Public License version 3 (or later). @@ -45,7 +45,7 @@ obtaining a more sophisticated interface: notmuch.el file in this distribution. If someone were to write a curses-based interface, or similar, - it might also be reasonable to buil on the "notmuch" + it might also be reasonable to build on the "notmuch" command-line interface. 2. Build on top of the notmuch library interface. @@ -67,4 +67,4 @@ still in development. We would appreciate any contributions to these efforts. - \ No newline at end of file + diff --git a/gmime-filter-reply.h b/gmime-filter-reply.h index 41cbc13..b7cbc6b 100644 --- a/gmime-filter-reply.h +++ b/gmime-filter-reply.h @@ -40,7 +40,7 @@ typedef struct _GMimeFilterReplyClass GMimeFilterReplyClass; * @saw_nl: previous char was a \n * @saw_angle: previous char was a > * - * A filter to insert/remove reply markers (lines begining with >) + * A filter to insert/remove reply markers (lines beginning with >) **/ struct _GMimeFilterReply { GMimeFilter parent_object; diff --git a/lib/database.cc b/lib/database.cc index 3c8d626..27597cf 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -180,7 +180,7 @@ notmuch_status_to_string (notmuch_status_t status) case NOTMUCH_STATUS_TAG_TOO_LONG: return "Tag value is too long (exceeds NOTMUCH_TAG_MAX)"; case NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW: - return "Unblanced number of calls to notmuch_message_freeze/thaw"; + return "Unbalanced number of calls to notmuch_message_freeze/thaw"; default: case NOTMUCH_STATUS_LAST_STATUS: return "Unknown error status value"; diff --git a/lib/index.cc b/lib/index.cc index 65b83b3..80df64b 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -198,7 +198,7 @@ _index_mime_part (notmuch_message_t *message, if (i == 1) continue; if (i > 1) - fprintf (stderr, "Warning: Unexpected extra parts of mutlipart/signed. Indexing anyway.\n"); + fprintf (stderr, "Warning: Unexpected extra parts of multipart/signed. Indexing anyway.\n"); } _index_mime_part (message, g_mime_multipart_get_part (multipart, i)); diff --git a/lib/message.cc b/lib/message.cc index a4b090b..1d6623f 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -144,7 +144,7 @@ _notmuch_message_create (const void *talloc_owner, } /* Create a new notmuch_message_t object for a specific message ID, - * (which may or may not already exist in the databas). + * (which may or may not already exist in the database). * * Here, 'talloc owner' is an optional talloc context to which the new * message will belong. This allows for the caller to not bother diff --git a/lib/messages.c b/lib/messages.c index a588f8f..2f7c283 100644 --- a/lib/messages.c +++ b/lib/messages.c @@ -47,7 +47,7 @@ _notmuch_message_list_create (const void *ctx) return list; } -/* Append 'node' (which can of course point to an aribtrarily long +/* Append 'node' (which can of course point to an arbitrarily long * list of nodes) to the end of 'list'. */ void diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 6036ce4..af82e58 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -235,7 +235,7 @@ notmuch_message_file_open (const char *filename); notmuch_message_file_t * _notmuch_message_file_open_ctx (void *ctx, const char *filename); -/* Close a notmuch message preivously opened with notmuch_message_open. */ +/* Close a notmuch message previously opened with notmuch_message_open. */ void notmuch_message_file_close (notmuch_message_file_t *message); diff --git a/lib/notmuch.h b/lib/notmuch.h index 32b5332..384c177 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -222,7 +222,7 @@ notmuch_database_get_timestamp (notmuch_database_t *database, /* Add a new message to the given notmuch database. * - * Here,'filename' should be a path relative to the the path of + * Here,'filename' should be a path relative to the path of * 'database' (see notmuch_database_get_path), or else should be an * absolute filename with initial components that match the path of * 'database'. @@ -258,7 +258,7 @@ notmuch_database_add_message (notmuch_database_t *database, const char *filename, notmuch_message_t **message); -/* Find a message with the given messsage_id. +/* Find a message with the given message_id. * * If the database contains a message with the given message_id, then * a new notmuch_message_t object is returned. The caller should call @@ -620,7 +620,7 @@ notmuch_messages_advance (notmuch_messages_t *messages); /* Destroy a notmuch_messages_t object. * * It's not strictly necessary to call this function. All memory from - * the notmuch_messages_t object will be reclaimed when the containg + * the notmuch_messages_t object will be reclaimed when the containing * query object is destroyed. */ void @@ -865,7 +865,7 @@ notmuch_tags_has_more (notmuch_tags_t *tags); /* Get the current tag from 'tags' as a string. * * Note: The returned string belongs to 'tags' and has a lifetime - * identical to it (and the query to which it utlimately belongs). + * identical to it (and the query to which it ultimately belongs). * * See the documentation of notmuch_message_get_tags for example code * showing how to iterate over a notmuch_tags_t object. @@ -884,7 +884,7 @@ notmuch_tags_advance (notmuch_tags_t *tags); /* Destroy a notmuch_tags_t object. * * It's not strictly necessary to call this function. All memory from - * the notmuch_tags_t object will be reclaimed when the containg + * the notmuch_tags_t object will be reclaimed when the containing * message or query objects are destroyed. */ void diff --git a/lib/sha1.c b/lib/sha1.c index ff4dd16..cc48108 100644 --- a/lib/sha1.c +++ b/lib/sha1.c @@ -43,7 +43,7 @@ _hex_of_sha1_digest (const unsigned char digest[SHA1_DIGEST_SIZE]) return result; } -/* Create a hexadcimal string version of the SHA-1 digest of 'str' +/* Create a hexadecimal string version of the SHA-1 digest of 'str' * (including its null terminating character). * * This function returns a newly allocated string which the caller diff --git a/lib/thread.cc b/lib/thread.cc index 4411d64..da58edc 100644 --- a/lib/thread.cc +++ b/lib/thread.cc @@ -190,7 +190,7 @@ _resolve_thread_relationships (unused (notmuch_thread_t *thread)) * subject line, the total count of messages, and all authors). The * second search is for all messages that are in the thread and that * also match the given query_string. This is to allow for a separate - * count of matched messages, and to allow a viewer to diplay these + * count of matched messages, and to allow a viewer to display these * messages differently. * * Here, 'ctx' is talloc context for the resulting thread object. diff --git a/notmuch-completion.bash b/notmuch-completion.bash index ad55f6d..cdad05d 100644 --- a/notmuch-completion.bash +++ b/notmuch-completion.bash @@ -1,4 +1,4 @@ -# Bash completion for notmutch +# Bash completion for notmuch # # Copyright © 2009 Carl Worth # diff --git a/notmuch-new.c b/notmuch-new.c index 83a05ba..5405a9f 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -303,7 +303,7 @@ add_files (notmuch_database_t *notmuch, /* XXX: This should be merged with the add_files function since it * shares a lot of logic with it. */ -/* Recursively count all regular files in path and all sub-direcotries +/* Recursively count all regular files in path and all sub-directories * of path. The result is added to *count (which should be * initialized to zero by the top-level caller before calling * count_files). */ @@ -469,7 +469,7 @@ notmuch_new_command (void *ctx, if (elapsed > 1 && ! add_files_state.saw_read_only_directory) { printf ("\nTip: If you have any sub-directories that are archives (that is,\n" - "they will never receive new mail), marking these directores as\n" + "they will never receive new mail), marking these directories as\n" "read-only (chmod u-w /path/to/dir) will make \"notmuch new\"\n" "much more efficient (it won't even look in those directories).\n"); } diff --git a/notmuch-search.c b/notmuch-search.c index 8db09c7..ac81372 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -76,7 +76,7 @@ notmuch_search_command (void *ctx, int argc, char *argv[]) query_str = query_string_from_args (ctx, argc, argv); if (query_str == NULL) { - fprintf (stderr, "Out of moemory.\n"); + fprintf (stderr, "Out of memory.\n"); return 1; } diff --git a/notmuch.1 b/notmuch.1 index 6c3d10f..86d5f59 100644 --- a/notmuch.1 +++ b/notmuch.1 @@ -60,7 +60,7 @@ archives, and will then proceed to build a database that indexes the mail to allow for fast search of the archive. This directory can contain any number of sub-directories and should -primarily contain only files with indvidual email messages +primarily contain only files with individual email messages (eg. maildir or mh archives are perfect). If there are other, non-email files (such as indexes maintained by other email programs) then notmuch will do its best to detect those and ignore them. @@ -173,7 +173,7 @@ Constructs a reply template for a set of messages. See the documentation of .B search -for deatils of the supported syntax of search terms. +for details of the supported syntax of search terms. To make replying to email easier, .B notmuch reply diff --git a/notmuch.el b/notmuch.el index 8894a8e..7e01ed6 100644 --- a/notmuch.el +++ b/notmuch.el @@ -205,7 +205,7 @@ Unlike builtin `next-line' this version accepts no arguments." (defun notmuch-show-mark-read-then-archive-thread () "Remove \"unread\" tag from each message, then archive and show next thread. -Archive each message currrently shown by removing the \"unread\" +Archive each message currently shown by removing the \"unread\" and \"inbox\" tag from each. Then kill this buffer and show the next thread from the search from which this thread was originally shown. @@ -220,7 +220,7 @@ buffer." (defun notmuch-show-archive-thread () "Archive each message in thread, and show next thread from search. -Archive each message currrently shown by removing the \"inbox\" +Archive each message currently shown by removing the \"inbox\" tag from each. Then kill this buffer and show the next thread from the search from which this thread was originally shown. @@ -340,7 +340,7 @@ there are no more unread messages past the current point." (notmuch-show-next-message))) (defun notmuch-show-next-open-message () - "Advance to the the next message which is not hidden. + "Advance to the next message which is not hidden. If read messages are currently hidden, advance to the next unread message. Otherwise, advance to the next message." @@ -674,7 +674,7 @@ thread from that buffer can be show when done with this one)." ))) (defvar notmuch-search-authors-width 40 - "Number of columns to use to diplay authors in a notmuch-search buffer.") + "Number of columns to use to display authors in a notmuch-search buffer.") (defvar notmuch-search-mode-map (let ((map (make-sparse-keymap))) @@ -910,7 +910,7 @@ the beginning of the buffer). This command toggles the sort order for the current search. -Note that any fitlered searches created by +Note that any filtered searches created by `notmuch-search-filter' retain the search order of the parent search." (interactive) diff --git a/show-message.c b/show-message.c index 79b02e2..38f5897 100644 --- a/show-message.c +++ b/show-message.c @@ -38,7 +38,7 @@ show_message_part (GMimeObject *part, int *part_count, if (i == 1) continue; if (i > 1) - fprintf (stderr, "Warning: Unexpected extra parts of mutlipart/signed. Continuing.\n"); + fprintf (stderr, "Warning: Unexpected extra parts of multipart/signed. Continuing.\n"); } show_message_part (g_mime_multipart_get_part (multipart, i), part_count, show_part); -- 1.6.5.2.433.g23cdb From aperez@igalia.com Tue Nov 17 15:27:50 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4A9F8431FBC for ; Tue, 17 Nov 2009 15:27:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 kzGwR3bVw-B6 for ; Tue, 17 Nov 2009 15:27:49 -0800 (PST) X-Greylist: delayed 401 seconds by postgrey-1.32 at olra; Tue, 17 Nov 2009 15:27:49 PST Received: from alice.connectical.com (alice.connectical.com [208.89.208.235]) by olra.theworths.org (Postfix) with ESMTP id 8D319431FAE for ; Tue, 17 Nov 2009 15:27:49 -0800 (PST) Received: (qmail 16286 invoked from network); 17 Nov 2009 23:21:06 -0000 Received: from 97.126.60.213.dynamic.mundo-r.com (HELO hikari.localdomain) (aperez@213.60.126.97) by alice.connectical.com with ESMTPA; 17 Nov 2009 23:21:06 -0000 Received: from hikari (localhost [127.0.0.1]) by hikari.localdomain (Postfix) with ESMTP id 298DE30C35C2 for ; Wed, 18 Nov 2009 00:21:05 +0100 (CET) Date: Wed, 18 Nov 2009 00:20:59 +0100 From: Adrian Perez de Castro To: notmuch@notmuchmail.org Message-ID: <20091118002059.067214ed@hikari> Organization: Igalia X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.3; x86_64-redhat-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAADBQTFRFBwcHFhYWKCgoNzc3SEhIV1dXaGhod3d3iIiIlpaWqKiouLi4x8fH2NjY5+fn/v7+rSjDkgAAAjVJREFUOE9l07tvE0EQwOHfrkV9O+eko7g701BBfECJsIigT2IpooIqaSiRUEB0REj00FBQgYSCkhry+gecUPJybJeIxLumTbilsH2PMNXufDOa3ZVW+1JkpbUmD/8+vXR3c7or4Gz93mH309Kz8/C9/RQge7VfhW/LW+PF8IkrQ7Z6OKmQr1tl+LU/yWP9mxJka9O88fZHPwf/7u0kLyCnX3I4fQhgjAgIfi+HHw5A1Y2ggIMcFKAEnRoL0M3BosI4TI2IATjuT8DvSNJoNNJgkIhxlr9TUHeSpDnfohlIrMBlU+BGmsZqfr69FMfGMw4NoG835+J62riWyjQ/uXlTQjNUIoYegMsBM0pCD8oDas7n4HQsBghXFxJTW42KDs+4XLfjsN0wOYgABqARjMKIHIaAQnmHjsI5Cvi9Cf6k03OoWBkpIP3Q7354+dEimFBKHbMP9oKjwfd9gbrxR5KDToczK4uPF8UgNomKU2GaENRi77zyDKICxKBS4xXYbONPMQMdYZTBwMiMWiUg9g6UJ3OBogzjV8E7sBVwyvfAOYdQhsABzuOxI1MGZbs98Q6Md5UOfbbR2R0eWOesrnRw5ajT6f60LrNhWIHZpBnUWv2s14ukArWWTqTes3YQxRXgFkcMu70TPYqqUBs0YwmO967OVIdTG4bY4a7WLaqgLm5vbHdH5np0Dri//fmg7y8scB4u3+zsuNlH0X+g19bby69b+TYH6isvns8VdQWgxj9tHP8AR5/hSdYqkwsAAAAASUVORK5CYII= Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/ayZz9m37AOMROJCyUudvXvZ"; protocol="application/pgp-signature" Subject: [notmuch] Introducing myself X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Tue, 17 Nov 2009 23:27:50 -0000 --Sig_/ayZz9m37AOMROJCyUudvXvZ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello to all, I have just heard about Not Much today in some random Linux-related news site (LWN?), my name is Adrian Perez and I work as systems administrator (although I can do some code as well :P). I have always thought that the ideas behind Sup were great, but after some time using it, I got tired of the oddities that it has. I also do not like doing things like having to install Ruby just for reading and sorting mails. Some time ago I thought about doing something like Not Much and in fact I played a bit with the Python+Xapian and the Python+Whoosh combinations, because I find relaxing to code things in Python when I am not working and also it is installed by default on most distribution. I got to have some mailboxes indexed and basic searching working a couple of months ago. Lately I have been very busy and had no time for coding, and them... boom! Not Much appears -- and it is almost exactly what I was trying to do, but faster. I have been playing a bit with Not Much today, and I think it has potential. Also, I would like to share one idea I had in mind, that you might find interesting: One thing I have found very annoying is having to re-tag my mail when the indexes get b0rked (it happened a couple of times to me while using Sup), so I was planning to mails as read/unread and adding the tags not just to the index, but to the mail text itself, e.g. by adding a "X-Tags" header field or by reusing the "Keywords" one. This way, the index could be totally recreated by re-reading the mail directories, and this would also allow to a tools like OfflineIMAP [1] to get the mails into a local maildir, tagging and indexing the mails with the e-mail reader and then syncing back the messages with the "X-Tags" header to the IMAP server. This would allow to use the mail reader from a different computer and still have everything tagged finely. Best regards, --- [1] http://software.complete.org/software/projects/show/offlineimap --=20 Adrian Perez de Castro Igalia - Free Software Engineering --Sig_/ayZz9m37AOMROJCyUudvXvZ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) iEYEARECAAYFAksDL+AACgkQkcVZ2+TJEjtsuQCfXmilW8WpMQHCnwwJjRE1PWZy oFAAn3MmXC5sW7MvCFjs7ks6U16zgMEg =eL9p -----END PGP SIGNATURE----- --Sig_/ayZz9m37AOMROJCyUudvXvZ-- From alex.boterolowry@gmail.com Tue Nov 17 16:23:55 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5E2AC431FBC for ; Tue, 17 Nov 2009 16:23:55 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 ORtmZOcBYcSH for ; Tue, 17 Nov 2009 16:23:54 -0800 (PST) Received: from mail-pw0-f51.google.com (mail-pw0-f51.google.com [209.85.160.51]) by olra.theworths.org (Postfix) with ESMTP id 53BC2431FAE for ; Tue, 17 Nov 2009 16:23:54 -0800 (PST) Received: by pwj10 with SMTP id 10so330396pwj.30 for ; Tue, 17 Nov 2009 16:23:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=y05RtVbdTG7OYYRov2eQDLEBYICZsfRA3FRPP9nrMMQ=; b=AkNoq9jCKNbJaqh+bELYXMD1a1lsj4PTCJKOhL1EiNKvEvJrwRrNn55CKMUBHOfQ75 CvJVgWygDHA2AYMtFIik0Axn3Svztf71+Ls9jiQymS9zP9IcLGCsm+SUR9dun74iWxvf QNU1N0xXlnUqADRq/hoVrui4VbBf1sjA5EGBE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=IXTiRksVsYYe71DPwZoAj1ou5XZOWuX1cGCf/CD8lyEf1V6bVDsO0v2efuJizBuzgs gZoU02whndlOIl1kwkgoCp+poe7xw7onwPeySJ2DY/QMsXQhwsnYTaYOKrANVBm3x3Ca 75GT4xQKVIUUhLtlD97OAGfOuC+WxuIfabeYQ= MIME-Version: 1.0 Received: by 10.114.186.37 with SMTP id j37mr5424456waf.36.1258503833548; Tue, 17 Nov 2009 16:23:53 -0800 (PST) Date: Tue, 17 Nov 2009 16:23:53 -0800 Message-ID: From: Alex Botero-Lowry To: notmuch@notmuchmail.org Content-Type: multipart/mixed; boundary=0016e64ca4d8f27a4804789a4139 Subject: [notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 00:23:55 -0000 --0016e64ca4d8f27a4804789a4139 Content-Type: multipart/alternative; boundary=0016e64ca4d8f27a3604789a4137 --0016e64ca4d8f27a3604789a4137 Content-Type: text/plain; charset=ISO-8859-1 In this case error out when no query is supplied. There seems to be an infinite-loop casued by i think notmuch_query_search_threads having an exception: A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND A Xapian exception occurred: Syntax: AND I'll look into that bug specifically a bit later. It might be better to do a usage instead of just throwing an error here? alex --0016e64ca4d8f27a3604789a4137 Content-Type: text/html; charset=ISO-8859-1 In this case error out when no query is supplied. There seems to be an infinite-loop casued by i think notmuch_query_search_threads having
an exception:

A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>
A Xapian exception occurred: Syntax: <expression> AND <expression>

I'll look into that bug specifically a bit later.

It might be better to do a usage instead of just throwing an error here?

alex
--0016e64ca4d8f27a3604789a4137-- --0016e64ca4d8f27a4804789a4139 Content-Type: application/octet-stream; name="0001-Error-out-if-no-query-is-supplied-to-search-instead-.patch" Content-Disposition: attachment; filename="0001-Error-out-if-no-query-is-supplied-to-search-instead-.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g25cms190 RnJvbSAzZjk0MzFmNzRhNWZmNjZjODRjODY5YTNlMjZjMmJhZDQyYmVkMWIxIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGV4YW5kZXIgQm90ZXJvLUxvd3J5IDxhbGV4LmJvdGVyb2xv d3J5QGdtYWlsLmNvbT4KRGF0ZTogVHVlLCAxNyBOb3YgMjAwOSAxNjoyMDoyOCAtMDgwMApTdWJq ZWN0OiBbUEFUQ0hdIEVycm9yIG91dCBpZiBubyBxdWVyeSBpcyBzdXBwbGllZCB0byBzZWFyY2gg aW5zdGVhZCBvZiBnb2luZyBpbnRvIGFuIGluZmluaXRlIGxvb3AKCi0tLQogbm90bXVjaC1zZWFy Y2guYyB8ICAgIDUgKysrKysKIDEgZmlsZXMgY2hhbmdlZCwgNSBpbnNlcnRpb25zKCspLCAwIGRl bGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL25vdG11Y2gtc2VhcmNoLmMgYi9ub3RtdWNoLXNlYXJj aC5jCmluZGV4IDhkYjA5YzcuLmQ5NGZjY2QgMTAwNjQ0Ci0tLSBhL25vdG11Y2gtc2VhcmNoLmMK KysrIGIvbm90bXVjaC1zZWFyY2guYwpAQCAtNjYsNiArNjYsMTEgQEAgbm90bXVjaF9zZWFyY2hf Y29tbWFuZCAodm9pZCAqY3R4LCBpbnQgYXJnYywgY2hhciAqYXJndltdKQogICAgIGFyZ2MgLT0g aTsKICAgICBhcmd2ICs9IGk7CiAKKyAgICBpZiAoYXJnYyA9PSAwKSB7CisgICAgICAgIGZwcmlu dGYgKHN0ZGVyciwgIk5vIHF1ZXJ5IHByb3ZpZGVkXG4iKTsKKyAgICAgICAgcmV0dXJuIDE7Cisg ICAgfQorCiAgICAgY29uZmlnID0gbm90bXVjaF9jb25maWdfb3BlbiAoY3R4LCBOVUxMLCBOVUxM KTsKICAgICBpZiAoY29uZmlnID09IE5VTEwpCiAJcmV0dXJuIDE7Ci0tIAoxLjYuNS4yCgo= --0016e64ca4d8f27a4804789a4139-- From lars@seas.harvard.edu Tue Nov 17 16:50:49 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id BA607431FBC for ; Tue, 17 Nov 2009 16:50:49 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 k8tlhxyZ8ALL for ; Tue, 17 Nov 2009 16:50:49 -0800 (PST) Received: from smtp-outbound.seas.harvard.edu (smtp-outbound.seas.harvard.edu [140.247.51.171]) by olra.theworths.org (Postfix) with ESMTP id 102C0431FAE for ; Tue, 17 Nov 2009 16:50:48 -0800 (PST) Received: from dottiness.seas.harvard.edu (dottiness.seas.harvard.edu [140.247.52.224]) by smtp-outbound.seas.harvard.edu (8.13.8/8.13.8) with SMTP id nAI0oeNh008204; Tue, 17 Nov 2009 19:50:40 -0500 Received: by dottiness.seas.harvard.edu (sSMTP sendmail emulation); Tue, 17 Nov 2009 19:50:40 -0500 Date: Tue, 17 Nov 2009 19:50:40 -0500 From: Lars Kellogg-Stedman To: Keith Packard Message-ID: <20091118005040.GA25380@dottiness.seas.harvard.edu> References: <20091117190054.GU3165@dottiness.seas.harvard.edu> <87iqd9rn3l.fsf@vertex.dottedmag> <20091117203301.GV3165@dottiness.seas.harvard.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] Working with Maildir storage? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 00:50:49 -0000 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > I've also pushed a slightly more complicated (and complete) fix to my > private notmuch repository The version of lib/messages.cc in your repo doesn't build because it's missing "#include " (for the uint32_t on line 466). --=20 Lars Kellogg-Stedman Senior Technologist, Computing and Information Technology Harvard University School of Engineering and Applied Sciences --9amGYk9869ThD9tj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQEcBAEBCAAGBQJLA0TgAAoJENdGlQYxQazYsG0IAJ1t9h4Q3ma8z8ejeKR22Xh0 WcuRX2x9yEXy/+aG9W7Mot0mqUQCiLdmHM/2h5N9BFHyJvfOUf8lmssrJ5OS/kp5 j7FIx3GUELBmEZqFUPjRSQPk1hZURYdRsloKkrbQ2kAivjjb50zAAQ8Av4Cgj6cS 3HvNNmeVfJt1NS75vm+/wn48M8Vrcdv4gvNlSOhgFOixknvRoxSyNDOHYBKvHnSV 2HnO0GzhAQzDZAwdHBzJtb8vRmglrH33TVdrE7OW+sojYB3Wyz8r9+HIt8Q8ovzX nQ8p0Nf5DlF7tye3JYo0EeNm5EQJ4q0YyVYInhmtpi3A5Cyu50GcB/GZ5Sd6ajo= =WULe -----END PGP SIGNATURE----- --9amGYk9869ThD9tj-- From lars@seas.harvard.edu Tue Nov 17 16:58:31 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 382FC431FBC for ; Tue, 17 Nov 2009 16:58:31 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 SP9jWc9RTkoz for ; Tue, 17 Nov 2009 16:58:30 -0800 (PST) Received: from smtp-outbound.seas.harvard.edu (smtp-outbound.seas.harvard.edu [140.247.51.171]) by olra.theworths.org (Postfix) with ESMTP id 80C56431FAE for ; Tue, 17 Nov 2009 16:58:30 -0800 (PST) Received: from dottiness.seas.harvard.edu (dottiness.seas.harvard.edu [140.247.52.224]) by smtp-outbound.seas.harvard.edu (8.13.8/8.13.8) with SMTP id nAI0wTmG008606 for ; Tue, 17 Nov 2009 19:58:29 -0500 Received: by dottiness.seas.harvard.edu (sSMTP sendmail emulation); Tue, 17 Nov 2009 19:58:29 -0500 Date: Tue, 17 Nov 2009 19:58:29 -0500 From: Lars Kellogg-Stedman To: notmuch Message-ID: <20091118005829.GB25380@dottiness.seas.harvard.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="L6iaP+gRLNZHKoI4" Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Subject: [notmuch] "notmuch help" outputs to stderr? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 00:58:31 -0000 --L6iaP+gRLNZHKoI4 Content-Type: multipart/mixed; boundary="z6Eq5LdranGa6ru8" Content-Disposition: inline --z6Eq5LdranGa6ru8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm just noticing that 'notmuch help ...' outputs to stderr, which isn't terribly intuitive. For example, the obvious invocation: notmuch help | less =2E..isn't terribly helpful. I've attached a patch that lets usage() take a FILE * argument so that you can output to stderr in response to usage errors, and stdout in response to an explicit request. --=20 Lars Kellogg-Stedman Senior Technologist, Computing and Information Technology Harvard University School of Engineering and Applied Sciences --z6Eq5LdranGa6ru8 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="notmuch-help.patch" Content-Transfer-Encoding: quoted-printable diff --git a/notmuch.c b/notmuch.c index c47e640..a35cb99 100644 --- a/notmuch.c +++ b/notmuch.c @@ -157,23 +157,23 @@ command_t commands[] =3D { }; =20 static void -usage (void) +usage (FILE *out) { command_t *command; unsigned int i; =20 - fprintf (stderr, "Usage: notmuch [args...]\n"); - fprintf (stderr, "\n"); - fprintf (stderr, "Where and [args...] are as follows:\n"); - fprintf (stderr, "\n"); + fprintf (out, "Usage: notmuch [args...]\n"); + fprintf (out, "\n"); + fprintf (out, "Where and [args...] are as follows:\n"); + fprintf (out, "\n"); =20 for (i =3D 0; i < ARRAY_SIZE (commands); i++) { command =3D &commands[i]; =20 - fprintf (stderr, "\t%s\t%s\n\n", command->name, command->summary); + fprintf (out, "\t%s\t%s\n\n", command->name, command->summary); } =20 - fprintf (stderr, "Use \"notmuch help \" for more details on e= ach command.\n\n"); + fprintf (out, "Use \"notmuch help \" for more details on each= command.\n\n"); } =20 static int @@ -183,8 +183,8 @@ notmuch_help_command (unused (void *ctx), int argc, cha= r *argv[]) unsigned int i; =20 if (argc =3D=3D 0) { - fprintf (stderr, "The notmuch mail system.\n\n"); - usage (); + fprintf (stdout, "The notmuch mail system.\n\n"); + usage (stdout); return 0; } =20 --z6Eq5LdranGa6ru8-- --L6iaP+gRLNZHKoI4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQEcBAEBCAAGBQJLA0a1AAoJENdGlQYxQazYr78IAJtqTWIpBqSdOWqTzt/r4XNn KJ5mWAoNfq4H+3kx3xoWOFYS7qAYeJoHQWCDbMdb+zEXvPX6hMFn9+OxRN+N5FdQ uxGTugSG9xSsK28oGDCQUtr5uheo+tH0jygPjI+LTD97vjUYS4K2qzhLGFJmpLcj 1akMJXM0gSdPZT8dJyjxvC15pgboLspE4+b6jexXmd4UoFvXgqvjkYHeV4Wk+s0L xu+HkCGXL9WHYc3t171fFAru4Zd1AUxFQl4BZ2Y+OqRZUrD28Mtz3zGQxbJQoifl JFrgPAWioLN71SkVq/y+efjvGSl0osPpKU5dftMmyY1zV7k7mMlO08ZSJU+wANA= =Iijt -----END PGP SIGNATURE----- --L6iaP+gRLNZHKoI4-- From lars@seas.harvard.edu Tue Nov 17 17:01:19 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 75784431FBC for ; Tue, 17 Nov 2009 17:01:19 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 IoYHzHoKBskU for ; Tue, 17 Nov 2009 17:01:18 -0800 (PST) Received: from smtp-outbound.seas.harvard.edu (smtp-outbound.seas.harvard.edu [140.247.51.171]) by olra.theworths.org (Postfix) with ESMTP id 7E033431FAE for ; Tue, 17 Nov 2009 17:01:18 -0800 (PST) Received: from dottiness.seas.harvard.edu (dottiness.seas.harvard.edu [140.247.52.224]) by smtp-outbound.seas.harvard.edu (8.13.8/8.13.8) with SMTP id nAI11Gkj008772 for ; Tue, 17 Nov 2009 20:01:16 -0500 Received: by dottiness.seas.harvard.edu (sSMTP sendmail emulation); Tue, 17 Nov 2009 20:01:16 -0500 Date: Tue, 17 Nov 2009 20:01:16 -0500 From: Lars Kellogg-Stedman To: notmuch Message-ID: <20091118010116.GC25380@dottiness.seas.harvard.edu> References: <20091118005829.GB25380@dottiness.seas.harvard.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZInfyf7laFu/Kiw7" Content-Disposition: inline In-Reply-To: <20091118005829.GB25380@dottiness.seas.harvard.edu> User-Agent: Mutt/1.5.19 (2009-01-05) Subject: Re: [notmuch] "notmuch help" outputs to stderr? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 01:01:19 -0000 --ZInfyf7laFu/Kiw7 Content-Type: multipart/mixed; boundary="KdquIMZPjGJQvRdI" Content-Disposition: inline --KdquIMZPjGJQvRdI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > I've attached a patch that lets usage() take a FILE * argument so that > you can output to stderr in response to usage errors, and stdout in > response to an explicit request. Whoops, missed a couple of stderr's in that last patch. New one attached. --=20 Lars Kellogg-Stedman Senior Technologist, Computing and Information Technology Harvard University School of Engineering and Applied Sciences --KdquIMZPjGJQvRdI Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="notmuch-help.patch" Content-Transfer-Encoding: quoted-printable diff --git a/notmuch.c b/notmuch.c index c47e640..446c810 100644 --- a/notmuch.c +++ b/notmuch.c @@ -157,23 +157,23 @@ command_t commands[] =3D { }; =20 static void -usage (void) +usage (FILE *out) { command_t *command; unsigned int i; =20 - fprintf (stderr, "Usage: notmuch [args...]\n"); - fprintf (stderr, "\n"); - fprintf (stderr, "Where and [args...] are as follows:\n"); - fprintf (stderr, "\n"); + fprintf (out, "Usage: notmuch [args...]\n"); + fprintf (out, "\n"); + fprintf (out, "Where and [args...] are as follows:\n"); + fprintf (out, "\n"); =20 for (i =3D 0; i < ARRAY_SIZE (commands); i++) { command =3D &commands[i]; =20 - fprintf (stderr, "\t%s\t%s\n\n", command->name, command->summary); + fprintf (out, "\t%s\t%s\n\n", command->name, command->summary); } =20 - fprintf (stderr, "Use \"notmuch help \" for more details on e= ach command.\n\n"); + fprintf (out, "Use \"notmuch help \" for more details on each= command.\n\n"); } =20 static int @@ -183,8 +183,8 @@ notmuch_help_command (unused (void *ctx), int argc, cha= r *argv[]) unsigned int i; =20 if (argc =3D=3D 0) { - fprintf (stderr, "The notmuch mail system.\n\n"); - usage (); + fprintf (stdout, "The notmuch mail system.\n\n"); + usage (stdout); return 0; } =20 @@ -192,8 +192,8 @@ notmuch_help_command (unused (void *ctx), int argc, cha= r *argv[]) command =3D &commands[i]; =20 if (strcmp (argv[0], command->name) =3D=3D 0) { - fprintf (stderr, "Help for \"notmuch %s\":\n\n", argv[0]); - fprintf (stderr, "\t%s\t%s\n\n%s\n\n", command->name, + fprintf (stdout, "Help for \"notmuch %s\":\n\n", argv[0]); + fprintf (stdout, "\t%s\t%s\n\n%s\n\n", command->name, command->summary, command->documentation); return 0; } --KdquIMZPjGJQvRdI-- --ZInfyf7laFu/Kiw7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQEcBAEBCAAGBQJLA0dcAAoJENdGlQYxQazY4nIIAIBCds86/uTmnouvyoPruUUR Bg5mXcnjuopz1Nwotl9s9U5sGeZuZngxyEvDz1Z1aTEjwab8ndNTf1xCwIoqBs+l i/sc4nPYubLdy1Ab/84DKVtCSbj+v5rtqhegwUWV7S1BY7t8dKNPNv7YBg7P0Azs 6s3CUxDV5eJCcxCGxxWHH8JDKRf7rDs6vzDwyPWLxlg1Xb1lEM/sRgPCKiShPdO3 Ak2hECusjskALhSDYX8/FLMd9HwLBC13sfWuSi/pHUAIOI2jru2p5sXrVSlTnFIJ fiMbPhKWiEaJj2kmm4pRwAhbTWp/J8ZvXWp0AyosxXQhQUWqujiyxgfiXS70SdQ= =t3Yc -----END PGP SIGNATURE----- --ZInfyf7laFu/Kiw7-- From stewart@flamingspork.com Tue Nov 17 17:06:13 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 28F2E431FBC for ; Tue, 17 Nov 2009 17:06:13 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 NooLWEvN2Gmf for ; Tue, 17 Nov 2009 17:06:12 -0800 (PST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by olra.theworths.org (Postfix) with ESMTP id 81798431FAE for ; Tue, 17 Nov 2009 17:06:12 -0800 (PST) Received: from kaylee.flamingspork.com (kaylee.flamingspork.com [74.207.245.61]) by mx.perfora.net (node=mxus1) with ESMTP (Nemesis) id 0MCK5p-1NJ7ic2t5V-0095KU for notmuch@notmuchmail.org; Tue, 17 Nov 2009 20:06:12 -0500 Received: from willster (localhost [127.0.0.1]) by kaylee.flamingspork.com (Postfix) with ESMTPS id 6FE636333; Wed, 18 Nov 2009 01:05:48 +0000 (UTC) Received: by willster (Postfix, from userid 1000) id 85CA410F5D86; Wed, 18 Nov 2009 12:06:08 +1100 (EST) From: Stewart Smith To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 12:05:53 +1100 Message-Id: <1258506353-20352-1-git-send-email-stewart@flamingspork.com> X-Mailer: git-send-email 1.6.3.3 Subject: [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 01:06:13 -0000 Previously, Ubuntu 9.10, gcc 4.4.1 was getting: ccache gcc `pkg-config --libs glib-2.0 gmime-2.4 talloc` `xapian-config --libs` notmuch.o notmuch-config.o notmuch-dump.o notmuch-new.o notmuch-reply.o notmuch-restore.o notmuch-search.o notmuch-setup.o notmuch-show.o notmuch-tag.o notmuch-time.o gmime-filter-reply.o query-string.o show-message.o lib/notmuch.a -o notmuch /usr/bin/ld: lib/notmuch.a(database.o): in function global constructors keyed to BOOLEAN_PREFIX_INTERNAL:database.cc(.text+0x3a): error: undefined reference to 'std::ios_base::Init::Init()' --- Makefile.local | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.local b/Makefile.local index f824bed..dbd3e20 100644 --- a/Makefile.local +++ b/Makefile.local @@ -18,7 +18,7 @@ notmuch_client_srcs = \ notmuch_client_modules = $(notmuch_client_srcs:.c=.o) notmuch: $(notmuch_client_modules) lib/notmuch.a - $(CC) $(LDFLAGS) $^ -o $@ + $(CXX) $(LDFLAGS) $^ -o $@ notmuch.1.gz: gzip --stdout notmuch.1 > notmuch.1.gz -- 1.6.3.3 From stewart@flamingspork.com Tue Nov 17 17:56:50 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id AE743431FBC for ; Tue, 17 Nov 2009 17:56:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 48J5iP+XseiQ for ; Tue, 17 Nov 2009 17:56:49 -0800 (PST) X-Greylist: delayed 3037 seconds by postgrey-1.32 at olra; Tue, 17 Nov 2009 17:56:48 PST Received: from kaylee.flamingspork.com (kaylee.flamingspork.com [74.207.245.61]) by olra.theworths.org (Postfix) with ESMTP id E59B3431FAE for ; Tue, 17 Nov 2009 17:56:48 -0800 (PST) Received: from willster (localhost [127.0.0.1]) by kaylee.flamingspork.com (Postfix) with ESMTPS id 348C16333; Wed, 18 Nov 2009 01:56:26 +0000 (UTC) Received: by willster (Postfix, from userid 1000) id 186B710F5D9A; Wed, 18 Nov 2009 12:56:46 +1100 (EST) From: Stewart Smith To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 12:56:40 +1100 Message-Id: <1258509400-32511-1-git-send-email-stewart@flamingspork.com> X-Mailer: git-send-email 1.6.3.3 Subject: [notmuch] [PATCH 2/2] Read mail directory in inode number order X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 01:56:50 -0000 This gives a rather decent reduction in number of seeks required when reading a Maildir that isn't in pagecache. Most filesystems give some locality on disk based on inode numbers. In ext[234] this is the inode tables, in XFS groups of sequential inode numbers are together on disk and the most significant bits indicate allocation group (i.e inode 1,000,000 is always after inode 1,000). With this patch, we read in the whole directory, sort by inode number before stat()ing the contents. Ideally, directory is sequential and then we make one scan through the file system stat()ing. Since the universe is not ideal, we'll probably seek during reading the directory and a fair bit while reading the inodes themselves. However... with readahead, and stat()ing in inode order, we should be in the best place possible to hit the cache. In a (not very good) benchmark of "how long does it take to find the first 15,000 messages in my Maildir after 'echo 3 > /proc/sys/vm/drop_caches'", this patch consistently cut at least 8 seconds off the scan time. Without patch: 50 seconds With patch: 38-42 seconds. (I did this in a previous maildir reading project and saw large improvements too) --- notmuch-new.c | 32 +++++++++++++++----------------- 1 files changed, 15 insertions(+), 17 deletions(-) diff --git a/notmuch-new.c b/notmuch-new.c index 83a05ba..11fad8c 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -73,6 +73,11 @@ add_files_print_progress (add_files_state_t *state) fflush (stdout); } +static int ino_cmp(const struct dirent **a, const struct dirent **b) +{ + return ((*a)->d_ino < (*b)->d_ino)? -1: 1; +} + /* Examine 'path' recursively as follows: * * o Ask the filesystem for the mtime of 'path' (path_mtime) @@ -100,13 +105,12 @@ add_files_recursive (notmuch_database_t *notmuch, add_files_state_t *state) { DIR *dir = NULL; - struct dirent *e, *entry = NULL; - int entry_length; - int err; + struct dirent *entry = NULL; char *next = NULL; time_t path_mtime, path_dbtime; notmuch_status_t status, ret = NOTMUCH_STATUS_SUCCESS; notmuch_message_t *message = NULL; + struct dirent **namelist = NULL; /* If we're told to, we bail out on encountering a read-only * directory, (with this being a clear clue from the user to @@ -122,31 +126,23 @@ add_files_recursive (notmuch_database_t *notmuch, path_mtime = st->st_mtime; path_dbtime = notmuch_database_get_timestamp (notmuch, path); + int n_entries= scandir(path, &namelist, 0, ino_cmp); - dir = opendir (path); - if (dir == NULL) { + if (n_entries == -1) { fprintf (stderr, "Error opening directory %s: %s\n", path, strerror (errno)); ret = NOTMUCH_STATUS_FILE_ERROR; goto DONE; } - entry_length = offsetof (struct dirent, d_name) + - pathconf (path, _PC_NAME_MAX) + 1; - entry = malloc (entry_length); + int i=0; while (!interrupted) { - err = readdir_r (dir, entry, &e); - if (err) { - fprintf (stderr, "Error reading directory: %s\n", - strerror (errno)); - ret = NOTMUCH_STATUS_FILE_ERROR; - goto DONE; - } - - if (e == NULL) + if (i == n_entries) break; + entry= namelist[i++]; + /* If this directory hasn't been modified since the last * add_files, then we only need to look further for * sub-directories. */ @@ -243,6 +239,8 @@ add_files_recursive (notmuch_database_t *notmuch, free (entry); if (dir) closedir (dir); + if (namelist) + free (namelist); return ret; } -- 1.6.3.3 From keithp@keithp.com Tue Nov 17 17:59:55 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id BC045431FBC for ; Tue, 17 Nov 2009 17:59:55 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 0Rle6kj9qJfY for ; Tue, 17 Nov 2009 17:59:53 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 7F758431FAE for ; Tue, 17 Nov 2009 17:59:53 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id A5E62760129; Tue, 17 Nov 2009 17:59:52 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id OxbFdtLC7kgM; Tue, 17 Nov 2009 17:59:49 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id D8C1576012A; Tue, 17 Nov 2009 17:59:49 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id CA9B3760129; Tue, 17 Nov 2009 17:59:49 -0800 (PST) From: Keith Packard To: Israel Herraiz , notmuch In-Reply-To: <1258498485-sup-142@elly> References: <1258498485-sup-142@elly> Date: Tue, 17 Nov 2009 17:59:49 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] New to the list X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 01:59:56 -0000 On Tue, 17 Nov 2009 23:57:18 +0100, Israel Herraiz wrote: > "Not much" sounds interesting, and I wonder whether it could be > integrated with the views of Sup (inbox, threads, etc). So I have > subscribed to the list to keep an eye on what's going on here. We've tried to clone much of the sup UI inside emacs, including the inbox and threaded message presentation. Of course, we had to "improve" it a bit, as much due to the differences between curses and emacs as due to personal preferences... -keith From keithp@keithp.com Tue Nov 17 18:03:22 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8B5BE431FBF for ; Tue, 17 Nov 2009 18:03:22 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 X6Xn9sVeXoGk for ; Tue, 17 Nov 2009 18:03:22 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id C9043431FAE for ; Tue, 17 Nov 2009 18:03:21 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 23EC7760129; Tue, 17 Nov 2009 18:03:21 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BU4FCcQv1E0k; Tue, 17 Nov 2009 18:03:18 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id 2118976012A; Tue, 17 Nov 2009 18:03:18 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 14437760129; Tue, 17 Nov 2009 18:03:18 -0800 (PST) From: Keith Packard To: Adrian Perez de Castro , notmuch@notmuchmail.org In-Reply-To: <20091118002059.067214ed@hikari> References: <20091118002059.067214ed@hikari> Date: Tue, 17 Nov 2009 18:03:17 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] Introducing myself X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 02:03:22 -0000 On Wed, 18 Nov 2009 00:20:59 +0100, Adrian Perez de Castro wrote: > Some time ago I thought > about doing something like Not Much and in fact I played a bit with the > Python+Xapian and the Python+Whoosh combinations, because I find relaxing > to code things in Python when I am not working and also it is installed > by default on most distribution. I got to have some mailboxes indexed and > basic searching working a couple of months ago. Sup certainly started a lot of people thinking... > Also, I would like to share one idea I had in mind, that you might find > interesting: One thing I have found very annoying is having to re-tag my > mail when the indexes get b0rked (it happened a couple of times to me while > using Sup), so I was planning to mails as read/unread and adding the tags > not just to the index, but to the mail text itself, e.g. by adding a > "X-Tags" header field or by reusing the "Keywords" one. Easier than that, notmuch (and sup too), provide a 'dump' command which just lists all of the message IDs and their associated tags. Makes saving tags easy and doesn't involve rewriting messages. I do this once a day just before my computer is backed up to an external drive. If the index is destroyed, you can reindex the messages and then reapply all of the tags with 'notmuch restore'. -- keith.packard@intel.com From keithp@keithp.com Tue Nov 17 18:04:36 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1B9BF431FBC for ; Tue, 17 Nov 2009 18:04:36 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 3jRnQSdUykmm for ; Tue, 17 Nov 2009 18:04:35 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 7E0A0431FAE for ; Tue, 17 Nov 2009 18:04:35 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id F2EA776012B; Tue, 17 Nov 2009 18:04:34 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id B6XhHCkLIZrh; Tue, 17 Nov 2009 18:04:32 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id 47DC376012A; Tue, 17 Nov 2009 18:04:32 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 3CF8C760129; Tue, 17 Nov 2009 18:04:32 -0800 (PST) From: Keith Packard To: Aron Griffis , notmuch In-Reply-To: <20091117232137.GA7669@griffis1.net> References: <20091117232137.GA7669@griffis1.net> Date: Tue, 17 Nov 2009 18:04:31 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] archive X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 02:04:36 -0000 On Tue, 17 Nov 2009 18:21:38 -0500, Aron Griffis wrote: > Just subscribed, I'd like to catch up on the previous postings, > but the archive link seems to be bogus? Yeah, the archive appears broken and will need to wait until Carl arrives in Barcelona to get fixed. -- keith.packard@intel.com From stewart@flamingspork.com Tue Nov 17 18:22:25 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B0EF3431FBC for ; Tue, 17 Nov 2009 18:22:25 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 o-waKGygo4MD for ; Tue, 17 Nov 2009 18:22:25 -0800 (PST) Received: from kaylee.flamingspork.com (kaylee.flamingspork.com [74.207.245.61]) by olra.theworths.org (Postfix) with ESMTP id 1AEA9431FAE for ; Tue, 17 Nov 2009 18:22:25 -0800 (PST) Received: from willster (localhost [127.0.0.1]) by kaylee.flamingspork.com (Postfix) with ESMTPS id 9B6F46333; Wed, 18 Nov 2009 02:22:02 +0000 (UTC) Received: by willster (Postfix, from userid 1000) id 0029810F5D92; Wed, 18 Nov 2009 13:22:21 +1100 (EST) From: Stewart Smith To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 13:22:20 +1100 Message-Id: <1258510940-7018-1-git-send-email-stewart@flamingspork.com> X-Mailer: git-send-email 1.6.3.3 Subject: [notmuch] [PATCH] count_files: sort directory in inode order before statting X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 02:22:25 -0000 --- notmuch-new.c | 30 ++++++++++-------------------- 1 files changed, 10 insertions(+), 20 deletions(-) diff --git a/notmuch-new.c b/notmuch-new.c index 11fad8c..c5f841a 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -308,36 +308,26 @@ add_files (notmuch_database_t *notmuch, static void count_files (const char *path, int *count) { - DIR *dir; - struct dirent *e, *entry = NULL; - int entry_length; - int err; + struct dirent *entry = NULL; char *next; struct stat st; + struct dirent **namelist = NULL; - dir = opendir (path); + int n_entries= scandir(path, &namelist, 0, ino_cmp); - if (dir == NULL) { + if (n_entries == -1) { fprintf (stderr, "Warning: failed to open directory %s: %s\n", path, strerror (errno)); goto DONE; } - entry_length = offsetof (struct dirent, d_name) + - pathconf (path, _PC_NAME_MAX) + 1; - entry = malloc (entry_length); + int i=0; while (!interrupted) { - err = readdir_r (dir, entry, &e); - if (err) { - fprintf (stderr, "Error reading directory: %s\n", - strerror (errno)); - free (entry); - goto DONE; - } + if (i == n_entries) + break; - if (e == NULL) - break; + entry= namelist[i++]; /* Ignore special directories to avoid infinite recursion. * Also ignore the .notmuch directory. @@ -376,8 +366,8 @@ count_files (const char *path, int *count) DONE: if (entry) free (entry); - - closedir (dir); + if (namelist) + free (namelist); } int -- 1.6.3.3 From gzjjgod@gmail.com Tue Nov 17 19:50:18 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 7E5C4431FBC for ; Tue, 17 Nov 2009 19:50:18 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 tjKRftIw+Uaz for ; Tue, 17 Nov 2009 19:50:18 -0800 (PST) Received: from mail-pw0-f51.google.com (mail-pw0-f51.google.com [209.85.160.51]) by olra.theworths.org (Postfix) with ESMTP id D476C431FAE for ; Tue, 17 Nov 2009 19:50:17 -0800 (PST) Received: by pwj10 with SMTP id 10so428706pwj.30 for ; Tue, 17 Nov 2009 19:50:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=UxorCAHmz8fcwlbcgw02L136i9g0fH9uqR+jpiJh4a0=; b=GfVWg/IHguZMuP08Q6OyBVO87H8yiKjXxmtCrtqqveWu91JKdHf5g3/ZnHEwjkupcP Nrd6qpf1a7p8xR4IHJK0JnmahiEI/vOsUaAAf54a2idsmlqT8rctYkJ6z4MC6+tKsx3c TsFpNKebLtFgsi25hY1jBQIea9kyVhnVff5U4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=eDHkm9Aqgs7nKVogFhC3JS2J+zHJyTzE/TkzAgg8Z85BSo16Spimug/tkhXgeqF9IN lduF8jgEhglbGK0RFUu6wwZQ7Z1rPJHtybn6NPpkP8KCgGu9lZALIFIxWSgwgNwH8nPo 0mYT7/FZvCGn91FLlPL8nv/VCuCa+elUISsCs= MIME-Version: 1.0 Received: by 10.114.7.10 with SMTP id 10mr11064999wag.90.1258516217264; Tue, 17 Nov 2009 19:50:17 -0800 (PST) Date: Wed, 18 Nov 2009 11:50:17 +0800 Message-ID: From: Jjgod Jiang To: notmuch@notmuchmail.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [notmuch] Mac OS X/Darwin compatibility issues X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 03:50:18 -0000 Hi, When I tried to compile notmuch under Mac OS X 10.6, several issues arisen: 1. g++ reports 'warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++' 2. notmuch-reply.c: In function =E2=80=98address_is_users=E2=80=99: notmuch-reply.c:87: warning: passing argument 2 of =E2=80=98notmuch_config_get_user_other_email=E2=80=99 from incompatible poi= nter type That's due to the size incompatibility of 'unsigned int' and 'size_t' (size_t is uint64_t in Mac OS X). 3. Several errors about missing GNU extensions like getline() and strndup()= : warning: implicit declaration of function =E2=80=98getline=E2=80=99 error: =E2=80=98strndup=E2=80=99 was not declared in this scope We can implement these with fgets() and strncpy() though. - Jiang From jan@iptel.org Tue Nov 17 20:57:08 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A77AB431FBC for ; Tue, 17 Nov 2009 20:57:08 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 5GfykVyL0XQe for ; Tue, 17 Nov 2009 20:57:08 -0800 (PST) X-Greylist: delayed 23897 seconds by postgrey-1.32 at olra; Tue, 17 Nov 2009 20:57:07 PST Received: from mail.iptel.org (smtp.iptel.org [213.192.59.67]) by olra.theworths.org (Postfix) with ESMTP id AFF89431FAE for ; Tue, 17 Nov 2009 20:57:07 -0800 (PST) Received: by mail.iptel.org (Postfix, from userid 103) id 6A03E370823; Wed, 18 Nov 2009 05:57:06 +0100 (CET) Received: from x61s.janakj (r2c34.net.upc.cz [62.245.66.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.iptel.org (Postfix) with ESMTPSA id 9A42937082E for ; Wed, 18 Nov 2009 05:57:05 +0100 (CET) Received: by x61s.janakj (Postfix, from userid 1000) id CA6AC440655; Wed, 18 Nov 2009 05:57:03 +0100 (CET) From: Jan Janak To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 05:57:03 +0100 Message-Id: <1258520223-15328-1-git-send-email-jan@ryngle.com> X-Mailer: git-send-email 1.6.3.3 Subject: [notmuch] [PATCH] notmuch new: Support for conversion of spool subdirectories into tags X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 04:57:08 -0000 This patch makes it possible to convert subdirectory names inside the spool directory into message tags. Messages stored in subdirectory "foo" will be marked with tag "foo". Message duplicates found in several subdirectories will be given one tag per subdirectory. This feature can be used to synchronize notmuch's tags with with gmail tags, for example. Gmail IMAP servers convert tags to IMAP subdirectories and those subdirectories can be converted back to tags in notmuch. The patch modifies notmuch_database_add_message function to return a pointer to the message even if a message duplicate was found in the database. This is needed if we want to add a tag for each subdirectory in which a message duplicate was found. In addition to that, it makes the pointer to notmuch_config_t global (previously it was a local variable in notmuch_new_command). The configuration data structure is used by the function which converts subdirectory names to tags. Finally, there is a new function called subdir_to_tag. The function extracts the name of the subdirectory inside the spool from the full path of the message (also removing Maildir's cur,dir,and tmp subdirectories) and adds it as a new tag to the message. Signed-off-by: Jan Janak --- lib/database.cc | 3 +- notmuch-new.c | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 74 insertions(+), 3 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 3c8d626..f7799d2 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -949,7 +949,8 @@ notmuch_database_add_message (notmuch_database_t *notmuch, DONE: if (message) { - if (ret == NOTMUCH_STATUS_SUCCESS && message_ret) + if ((ret == NOTMUCH_STATUS_SUCCESS || + ret == NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID) && message_ret) *message_ret = message; else notmuch_message_destroy (message); diff --git a/notmuch-new.c b/notmuch-new.c index 83a05ba..d94ce16 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -19,6 +19,9 @@ */ #include "notmuch-client.h" +#include + +static notmuch_config_t *config = 0; static volatile sig_atomic_t do_add_files_print_progress = 0; @@ -45,6 +48,69 @@ tag_inbox_and_unread (notmuch_message_t *message) notmuch_message_add_tag (message, "unread"); } +/* + * Extracts the sub-directory from the filename and adds it as a new tag to + * the message. The filename must begin with the database directory configured + * in the configuration file. This prefix is then removed. If the remaining + * sub-directory ends with one of the Maildir special directories (/tmp, /new, + * /cur) then they are removed as well. If there is anything left then the + * function adds it as a new tag to the message. + * + * The function does nothing if it cannot extract a sub-directory from + * filename. + */ +static void +subdir_to_tag (char* filename, notmuch_message_t *message) +{ + const char* db_path; + char *msg_dir, *tmp; + int db_path_len, msg_dir_len; + + if (config == NULL) return; + db_path = notmuch_config_get_database_path (config); + if (db_path == NULL) return; + db_path_len = strlen(db_path); + + /* Make a copy of the string as dirname may need to modify it. */ + tmp = talloc_strdup(message, filename); + msg_dir = dirname(tmp); + msg_dir_len = strlen(msg_dir); + + /* If msg_dir starts with db_path, remove it, including the / which delimits + * it from the rest of the directory name. */ + if (db_path_len < msg_dir_len && + !strncmp(db_path, msg_dir, db_path_len)) { + msg_dir += db_path_len + 1; + msg_dir_len -= db_path_len + 1; + } else { + /* If we get here, either the message filename is not inside the + * database directory configured in the configuration file, or it is a + * file in the root directory of the database. Either way we just skip + * it because we do not know how to convert it to a meaningful + * subdirectory string that we could add as tag. */ + goto out; + } + + /* Special conditioning for Maildirs. If the remainder of the directory + * name ends with /new, /cur, or /tmp then remove it. */ + if ((msg_dir_len >= 4) && + (!strncmp(msg_dir + msg_dir_len - 4, "/new", 4) || + !strncmp(msg_dir + msg_dir_len - 4, "/cur", 4) || + !strncmp(msg_dir + msg_dir_len - 4, "/tmp", 4))) { + msg_dir[msg_dir_len - 4] = '\0'; + } + + /* If, after all the modifications, we still have a subdirectory, add it + * as tag. */ + if (strlen(msg_dir)) { + notmuch_message_add_tag (message, msg_dir); + } + +out: + talloc_free(tmp); +} + + static void add_files_print_progress (add_files_state_t *state) { @@ -186,10 +252,15 @@ add_files_recursive (notmuch_database_t *notmuch, case NOTMUCH_STATUS_SUCCESS: state->added_messages++; tag_inbox_and_unread (message); + subdir_to_tag(next, message); break; /* Non-fatal issues (go on to next file) */ case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID: - /* Stay silent on this one. */ + /* Stay silent on this one. The message already exists in the + * database, that means we may have found a duplicate in + * another directory. If that's the case then we add another + * tag to the message with the sub-directory. */ + subdir_to_tag(next, message); break; case NOTMUCH_STATUS_FILE_NOT_EMAIL: fprintf (stderr, "Note: Ignoring non-mail file: %s\n", @@ -386,7 +457,6 @@ int notmuch_new_command (void *ctx, unused (int argc), unused (char *argv[])) { - notmuch_config_t *config; notmuch_database_t *notmuch; add_files_state_t add_files_state; double elapsed; -- 1.6.3.3 From rollandsantimano@yahoo.com Tue Nov 17 21:12:25 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1C6A2431FBC for ; Tue, 17 Nov 2009 21:12:25 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 zeviMyPxaBjN for ; Tue, 17 Nov 2009 21:12:24 -0800 (PST) Received: from web113505.mail.gq1.yahoo.com (web113505.mail.gq1.yahoo.com [98.136.167.45]) by olra.theworths.org (Postfix) with SMTP id 7528B431FAE for ; Tue, 17 Nov 2009 21:12:24 -0800 (PST) Received: (qmail 52894 invoked by uid 60001); 18 Nov 2009 05:12:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1258521143; bh=8otilBP5M4lCcgp3Q5IxDzOltPpjKF8q4F8D91Z1wqs=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=tL5lHs0/OQs8VN5FEr4JQXnDlHWOotX9QTIe8TUBQT4i6JBGKHVlr8Zgh3SaGRx40qWPVS/9/nYYnIoqXenruhaOI62Dvqo4sdO4OoEvH8kOso/f5mxbc2Gy4fTFIH56RwcOLqPpz5jKSPSJnOGVi4jPNWCv9i3VeGEvEt/IRSo= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=wCHPM6KpWJYKhKgAiWB5tHyf+iFe+pUj26pqS1/WXW88aV/uaSHlKnuw076Ci+vIwjyMUlqzrPhaXkRJLjemG0p5RG61WdCHB240VTc+CcB/R35qQkXhaJvbQYH7s0aSd1s86gP8MIaM/J+0e5qe1NCL6fQpttMbW7Qbo5OvTiQ=; Message-ID: <736613.51770.qm@web113505.mail.gq1.yahoo.com> X-YMail-OSG: hXlzzSYVM1nxJFnk0nWVqPUUxYp4NrkDULXGlNojDbhDnCcg4Wz2PsYWj2_BHK9kxHGkAetocGFA52PSlPLRkL5wCFvFoayO2CQmzxVSrpo0fYI2MbGt3qCTEQXn9zojhvPm8Dv9dsaaWekIlwyhO3gQLScNNdFxrJuj.hmU30.8eczB29vGlCSTpYDIpxEUjJPNbzIsWYUdkaMcn.F4awmEfwkRGvv9Uhe5eTwDbW60xMup1nsn4T.BGLAELwklBw5pSonpUB5iE4UM27Bsf39VpLyTxJHFI7Djclx4_LWbof08os5ZqSLFfmnhkmveZihCn_NXzKsWmwAJCeDP5AREUL2OObKjmx07pHV_dqhJtKgjT7fsB_74Og.SQxWVTWBB97BxhiSeGSs9soP58s92RcLq7It6 Received: from [202.3.120.9] by web113505.mail.gq1.yahoo.com via HTTP; Tue, 17 Nov 2009 21:12:23 PST X-Mailer: YahooMailRC/211.6 YahooMailWebService/0.8.100.260964 Date: Tue, 17 Nov 2009 21:12:23 -0800 (PST) From: Rolland Santimano To: notmuch@notmuchmail.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [notmuch] Link to mailing list archives ? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 05:12:25 -0000 The link[1] provided on the list page[2] is broken: [1] http://notmuchmail.org/pipermail/notmuch/ [2] http://notmuchmail.org/mailman/listinfo/notmuch From alex.boterolowry@gmail.com Tue Nov 17 22:04:17 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1D544431FBC for ; Tue, 17 Nov 2009 22:04:17 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 UO74-BodVXUw for ; Tue, 17 Nov 2009 22:04:16 -0800 (PST) Received: from mail-pz0-f197.google.com (mail-pz0-f197.google.com [209.85.222.197]) by olra.theworths.org (Postfix) with ESMTP id 03454431FAE for ; Tue, 17 Nov 2009 22:04:15 -0800 (PST) Received: by pzk35 with SMTP id 35so601314pzk.22 for ; Tue, 17 Nov 2009 22:04:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:subject :in-reply-to:references:date:message-id:mime-version:content-type :content-transfer-encoding; bh=K7hwaZwFTl9x5Nnf7sR6HBvmJ5Hy8CSXoIQ2VXG95dI=; b=v33IvTbqyUiADGv0eSg1EMHzTtT1rogTgwWcsh5Dy/2ZhIivZxTfqD7hfcFRKKu3Ja cPDWmQW59ecL1YAIP/Cf4KZ8si71jTgu4kOyOo+5RQcxmYFueR49X3CiS36JIwtCA+bR Fc9oU1kFD9aE7LU+70cIxCX8p/h5HwPxFBCno= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-type:content-transfer-encoding; b=fSJJmp+PTTd0PsEldkwJVRqOq39RGlYBNwPkZycPMsHt4apQJhfSC/CNoagje46uWc kzgt7qPKAWsOSuRiiqYBTfwGkeI+P45ObUmKfaJW44txIxQ2mv4CIB4+L0QamGvhWZVy xaqdg6yXkPDl7/hMcUS8I+H4rCAZ2sjMd3DZk= Received: by 10.114.3.15 with SMTP id 15mr1935536wac.181.1258524255404; Tue, 17 Nov 2009 22:04:15 -0800 (PST) Received: from fortitudo (70-36-144-85.dsl.dynamic.sonic.net [70.36.144.85]) by mx.google.com with ESMTPS id 22sm1771538pxi.14.2009.11.17.22.04.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Nov 2009 22:04:14 -0800 (PST) Received: from alexbl (uid 1001) (envelope-from alexbl@fortitudo.i-did-not-set--mail-host-address--so-tickle-me) id 7287 by fortitudo (DragonFly Mail Agent) Tue, 17 Nov 2009 21:45:36 -0800 From: Alexander Botero-Lowry To: Jjgod Jiang , notmuch@notmuchmail.org In-Reply-To: References: Date: Tue, 17 Nov 2009 21:45:36 -0800 Message-ID: <86einw2xof.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [notmuch] Mac OS X/Darwin compatibility issues X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 06:04:17 -0000 On Wed, 18 Nov 2009 11:50:17 +0800, Jjgod Jiang wrote: > Hi, >=20 > When I tried to compile notmuch under Mac OS X 10.6, several issues > arisen: >=20 > 1. g++ reports 'warning: command line option "-Wmissing-declarations" > is valid for C/ObjC but not for C++' >=20 I got that too. I presume it's newly supported in GCC4.4? > 3. Several errors about missing GNU extensions like getline() and strndup= (): >=20 strndup from V8: char* strndup(char* str, size_t n) { // Stupid implementation of strndup since macos isn't born with // one. size_t len =3D strlen(str); if (len <=3D n) return StrDup(str); char* result =3D new char[n+1]; size_t i; for (i =3D 0; i <=3D n; i++) result[i] =3D str[i]; result[i] =3D '\0'; return result; } > warning: implicit declaration of function =E2=80=98getline=E2=80=99 > error: =E2=80=98strndup=E2=80=99 was not declared in this scope >=20 for getline do you mind trying #define _GNU_SOURCE 1 before #include in the offending files? The FreeBSD man pages mentions that as a way of enabling the GNU version of getline(). Alex From gzjjgod@gmail.com Tue Nov 17 22:14:28 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A376B431FBC for ; Tue, 17 Nov 2009 22:14:28 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 0Xyz2-oZMadI for ; Tue, 17 Nov 2009 22:14:27 -0800 (PST) Received: from mail-px0-f173.google.com (mail-px0-f173.google.com [209.85.216.173]) by olra.theworths.org (Postfix) with ESMTP id B34D8431FAE for ; Tue, 17 Nov 2009 22:14:27 -0800 (PST) Received: by pxi3 with SMTP id 3so607848pxi.22 for ; Tue, 17 Nov 2009 22:14:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=FkL6Oyv8O4rZcbwr7ZacO0zJEDLECbhUxHJe1ICXCeU=; b=OaYFLpTlBcq+CPdTUPCBkJ5319I7H3blAC6043oPqEMy+tpiTwbSnExqNhGCXFXKV7 g2YvSv+lyviZZdFKAXqERqdtgZmHkacdBeEfkvqeGNy+ur9gbbpDC6F7VUFhDk4NE4a0 Eqx3GLxNFr4ot3mpRPGHpXiTHy96aSkBPzrzg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Ddek1En7VrEW0nlu5SUAlX1aHPUMD3K+vQUenIUak0VndRTk2r7kWsukWZCoQw+/Cl J5RtDJVH64fQG4BKcGAFgmvKWZ4bP1ItNb4/QG3T5KrYtF18/qCdUw2q886xUY+q9J1E /3KgYX7Zwj15gKzzpLTGZ9Iha9OBVeXcatjsk= MIME-Version: 1.0 Received: by 10.115.85.6 with SMTP id n6mr2213140wal.74.1258524867121; Tue, 17 Nov 2009 22:14:27 -0800 (PST) In-Reply-To: <86einw2xof.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> References: <86einw2xof.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> Date: Wed, 18 Nov 2009 14:14:27 +0800 Message-ID: From: Jjgod Jiang To: Alexander Botero-Lowry Content-Type: text/plain; charset=UTF-8 Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] Mac OS X/Darwin compatibility issues X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 06:14:28 -0000 Hi, On Wed, Nov 18, 2009 at 1:45 PM, Alexander Botero-Lowry wrote: > for getline do you mind trying #define _GNU_SOURCE 1 > before #include in the offending files? The FreeBSD man pages > mentions that as a way of enabling the GNU version of getline(). It seems even _GNU_SOURCE is defined, getline is still not present. the C lib in Mac OS X simply doesn't have it. See also [1]. - Jiang [1] http://stackoverflow.com/questions/1117108/compiling-c-code-using-gnu-c-getline-on-mac-osx From alex.boterolowry@gmail.com Tue Nov 17 22:19:31 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6F59F431FBC for ; Tue, 17 Nov 2009 22:19:31 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 nnGn01K-kUHd for ; Tue, 17 Nov 2009 22:19:30 -0800 (PST) Received: from mail-gx0-f221.google.com (mail-gx0-f221.google.com [209.85.217.221]) by olra.theworths.org (Postfix) with ESMTP id D35CA431FAE for ; Tue, 17 Nov 2009 22:19:30 -0800 (PST) Received: by gxk21 with SMTP id 21so776862gxk.10 for ; Tue, 17 Nov 2009 22:19:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :in-reply-to:references:date:message-id:mime-version:content-type; bh=b0TThtmQWUbIN6r+buvp9/ZPXPOkHlXNNrw468CSDC0=; b=H2qV/CajPum4GaxEDW+hSNZEIUfP4qlbgRztEPgh4khbrU3P6x0WnlN0ohlB34os9m a48loeRITNysoEh9trwBMJoFQNYtiRzcrIb35X788R5z/AWOpULHB2IUvyY3Cs8FYx4X dXoBln2PtpT0zVm+uklJRPFcsRCiHlAEUQRTU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; b=L4CE1CShr6vusyhXFFO+mCZZTi0memRC5Murv8pv1RQru1WSntxr/zPwcktKg8D9NB fvu1ENBS7/Pdw5lmHsiCU9NIQaFyNwaS5Fuozj3clUuSqrfIshmji08Bfn3C5nW8mu96 h/HLai+/E9FJhWqKJPqhfDjcVNDR0+vyu6s0s= Received: by 10.91.199.3 with SMTP id b3mr1521224agq.88.1258525170504; Tue, 17 Nov 2009 22:19:30 -0800 (PST) Received: from fortitudo (70-36-144-85.dsl.dynamic.sonic.net [70.36.144.85]) by mx.google.com with ESMTPS id 5sm219122yxg.46.2009.11.17.22.19.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Nov 2009 22:19:30 -0800 (PST) Received: from alexbl (uid 1001) (envelope-from alexbl@fortitudo.i-did-not-set--mail-host-address--so-tickle-me) id 7292 by fortitudo (DragonFly Mail Agent) Tue, 17 Nov 2009 22:19:29 -0800 From: Alexander Botero-Lowry To: Jjgod Jiang In-Reply-To: References: <86einw2xof.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> Date: Tue, 17 Nov 2009 22:19:29 -0800 Message-ID: <86d43g2w3y.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] Mac OS X/Darwin compatibility issues X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 06:19:31 -0000 On Wed, 18 Nov 2009 14:14:27 +0800, Jjgod Jiang wrote: > Hi, > > On Wed, Nov 18, 2009 at 1:45 PM, Alexander Botero-Lowry > wrote: > > for getline do you mind trying #define _GNU_SOURCE 1 > > before #include in the offending files? The FreeBSD man pages > > mentions that as a way of enabling the GNU version of getline(). > > It seems even _GNU_SOURCE is defined, getline is still not present. > the C lib in Mac OS X simply doesn't have it. See also [1]. > Alas. Since it's ostensibly based on the FreeBSD one, I figured there was a chance that would fix the problem. :/ From alex.boterolowry@gmail.com Wed Nov 18 00:02:58 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id ADAD1431FBC for ; Wed, 18 Nov 2009 00:02:58 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 vKz9CaWUJ8nn for ; Wed, 18 Nov 2009 00:02:58 -0800 (PST) Received: from mail-yx0-f204.google.com (mail-yx0-f204.google.com [209.85.210.204]) by olra.theworths.org (Postfix) with ESMTP id 13034431FAE for ; Wed, 18 Nov 2009 00:02:58 -0800 (PST) Received: by yxe42 with SMTP id 42so968976yxe.22 for ; Wed, 18 Nov 2009 00:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:subject:date :message-id:mime-version:content-type; bh=1s6t0weK58IOHc6IvPSDrpdejY5lnCtQKPWlFBKxDUo=; b=etYkPPlf1oR38jEjQvPiZmBLpvPrFl2brD7DxldachiVGIcpMCd0FlqASVx+AyXYX8 zToH7qE85bGrIhINCrCviPoKc4OvOJJXEZTuQFu08Rd3tN3k4UxytOQOvhtOLPxoq4qD I85kdg5nDJ97DeSoltSTuCaYv9J24sZ6W064s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type; b=ifHw5Efu6B9avLxnW2lxh0et0WUgvfjN74KOcmdqlPl3SntQWikYsUk5KP7ECUUQrA hgZkk4toNBxAcxRircOfPJCptGKUNtOM4x3J2cFsAlVb55vBrpHolz88W7deLL7augTm QFZrb4DqkeIm6PU1W2lT6bvi4j3vsxNxsP8JA= Received: by 10.150.28.5 with SMTP id b5mr1682370ybb.232.1258531377544; Wed, 18 Nov 2009 00:02:57 -0800 (PST) Received: from fortitudo (70-36-144-85.dsl.dynamic.sonic.net [70.36.144.85]) by mx.google.com with ESMTPS id 14sm1168121gxk.2.2009.11.18.00.02.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 00:02:56 -0800 (PST) Received: from alexbl (uid 1001) (envelope-from alexbl@fortitudo.i-did-not-set--mail-host-address--so-tickle-me) id 72b8 by fortitudo (DragonFly Mail Agent) Wed, 18 Nov 2009 00:02:56 -0800 From: Alexander Botero-Lowry To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 00:02:56 -0800 Message-ID: <86aayk2rbj.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [notmuch] request for pull X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 08:02:58 -0000 The following changes since commit e8c9c3e6a534fc6c2919c2c1de63cea7250eb488: Ingmar Vanhassel (1): Makefile: Manual pages shouldn't be executable are available in the git repository at: git://alexbl.net/notmuch.git master Alexander Botero-Lowry (2): Error out if no query is supplied to search instead of going into an infinite loop set a local truncate-line variable in notmuch-search-mode, so that subjects don't wrap and make the output look weird notmuch-search.c | 5 +++++ notmuch.el | 1 + 2 files changed, 6 insertions(+), 0 deletions(-) From keithp@keithp.com Wed Nov 18 00:30:05 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6CCEE431FBC for ; Wed, 18 Nov 2009 00:30:05 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 5JoDiArpbwe9 for ; Wed, 18 Nov 2009 00:30:04 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id A2E46431FAE for ; Wed, 18 Nov 2009 00:30:04 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 909D876012B for ; Wed, 18 Nov 2009 00:30:03 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nprqy3XbpY7A; Wed, 18 Nov 2009 00:30:00 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id A2B8A76012A; Wed, 18 Nov 2009 00:30:00 -0800 (PST) Received: from koto.keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id A057E760129; Wed, 18 Nov 2009 00:30:00 -0800 (PST) Received: by koto.keithp.com (Postfix, from userid 1488) id 4C6041581A5; Wed, 18 Nov 2009 00:30:00 -0800 (PST) From: Keith Packard To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 00:29:59 -0800 Message-Id: <1258532999-9316-1-git-send-email-keithp@keithp.com> X-Mailer: git-send-email 1.6.5.2 Subject: [notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 08:30:05 -0000 I created the notmuch-show-hook precisely so I could add these two options, but I suspect most people will want them, so I just made them the default. If you don't want them, you can use remove-hook to get rid of this. Signed-off-by: Keith Packard --- notmuch.el | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/notmuch.el b/notmuch.el index 1bb1294..c95cb43 100644 --- a/notmuch.el +++ b/notmuch.el @@ -698,6 +698,14 @@ view, (remove the \"inbox\" tag from each), with either :options '(goto-address) :group 'notmuch) +; Make show mode a bit prettier, highlighting URLs and using word wrap + +(defun notmuch-show-pretty-hook () + (goto-address-mode 1) + (visual-line-mode)) + +(add-hook 'notmuch-show-hook 'notmuch-show-pretty-hook) + (defun notmuch-show (thread-id &optional parent-buffer) "Run \"notmuch show\" with the given thread ID and display results. -- 1.6.5.2 From alex.boterolowry@gmail.com Wed Nov 18 00:52:40 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8B22B431FBC for ; Wed, 18 Nov 2009 00:52:40 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 MWMHpYN7UOv3 for ; Wed, 18 Nov 2009 00:52:39 -0800 (PST) Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.211.173]) by olra.theworths.org (Postfix) with ESMTP id 9A6B9431FAE for ; Wed, 18 Nov 2009 00:52:38 -0800 (PST) Received: by ywh3 with SMTP id 3so965069ywh.22 for ; Wed, 18 Nov 2009 00:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:subject :in-reply-to:references:date:message-id:mime-version:content-type; bh=PWRKB1lFxfwuMdaDZrKVnPeqezy1hztkiBoWMBjSnkI=; b=XGw7CAOTwT7b59grUOary3IwxbMjY6hgY2u8Tp7KDBWqqujXeq7Sv+RygOpRqg+6o3 P5GUtrez9tDDqKeNRyqd24Ysz8NRqus4bm5/3Av3hK9wPptTVDTHdWLMe9i6CSFTnS+X +/doJBdg8fGiqrOAQ91J82qIRTuf6ahf6Cco0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-type; b=tYsfCK02F6v/9WfgHdVgre9ASITCbNl3wntuuC+peCsiFpZo5Zhd/b6Zn2uWsC4F4u Zdg0euFRg6kWdBYvF4ZpdWKNvhbjFbSCiZ/jTRTed1jdvjNl0SnQ+PRO0eUatQCjcGDI UUMVy2kBoutsYk0VjUWUile41edPHbMXjaxqk= Received: by 10.91.144.16 with SMTP id w16mr1802322agn.21.1258534356431; Wed, 18 Nov 2009 00:52:36 -0800 (PST) Received: from fortitudo (70-36-144-85.dsl.dynamic.sonic.net [70.36.144.85]) by mx.google.com with ESMTPS id 7sm382759yxg.68.2009.11.18.00.52.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 00:52:36 -0800 (PST) Received: from alexbl (uid 1001) (envelope-from alexbl@fortitudo.i-did-not-set--mail-host-address--so-tickle-me) id 72c1 by fortitudo (DragonFly Mail Agent) Wed, 18 Nov 2009 00:52:34 -0800 From: Alexander Botero-Lowry To: Keith Packard , notmuch@notmuchmail.org In-Reply-To: <1258532999-9316-1-git-send-email-keithp@keithp.com> References: <1258532999-9316-1-git-send-email-keithp@keithp.com> Date: Wed, 18 Nov 2009 00:52:34 -0800 Message-ID: <867hto2p0t.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 08:52:40 -0000 On Wed, 18 Nov 2009 00:29:59 -0800, Keith Packard wrote: > I created the notmuch-show-hook precisely so I could add these two > options, but I suspect most people will want them, so I just made them > the default. If you don't want them, you can use remove-hook to get > rid of this. > Yes, hooks should be added for search as well. :) > +; Make show mode a bit prettier, highlighting URLs and using word wrap > + > +(defun notmuch-show-pretty-hook () > + (goto-address-mode 1) > + (visual-line-mode)) > + visual-line-mode turns out to make subject look pretty ugly if there is a continuation. It doesn't do much good for the citation headers either. We probably need to do our own intelligent wrapping rather then use visual-line-mode to make this actually look right. goto-address-mode is important though. :) alex From cworth@cworth.org Wed Nov 18 01:42:17 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 59BC3431FBF; Wed, 18 Nov 2009 01:42:17 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 j-W1SQlJ7v4j; Wed, 18 Nov 2009 01:42:16 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6C6B8431FAE; Wed, 18 Nov 2009 01:42:16 -0800 (PST) From: Carl Worth To: Keith Packard , Mikhail Gusarov , notmuch@notmuchmail.org In-Reply-To: References: <1258471718-6781-1-git-send-email-dottedmag@dottedmag.net> <87lji5cbwo.fsf@yoom.home.cworth.org> Date: Wed, 18 Nov 2009 01:42:02 -0800 Message-ID: <87pr7gqidx.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH 1/2] Close message file after parsing message headers X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 09:42:17 -0000 On Tue, 17 Nov 2009 13:15:25 -0800, Keith Packard wrote: > Threading the message also involves displaying the from and to contents, > which requires opening the message file. The alternative to the fix I > provided is to just parse all of the message headers when first opening > the message; it could then be immediately closed and the hash referred > to for all header data. Given the choice, just having the caller say > when it has finished with a message is probably a reasonable option... Hi Keith, Once I finally got back on the ground again, I pushed out a revised version of your patch, (didn't need the reply-to stuff anymore since I had fixed that differently in the meantime). I'm pretty happy with the state of this portion of the code now. Thanks Keith and Mikhail for your input on and code to fix this bug. -Carl From cworth@cworth.org Wed Nov 18 02:08:24 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D7335431FBF; Wed, 18 Nov 2009 02:08:24 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 7n8Z4n49br0P; Wed, 18 Nov 2009 02:08:24 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8B556431FAE; Wed, 18 Nov 2009 02:08:23 -0800 (PST) From: Carl Worth To: Lars Kellogg-Stedman , notmuch@notmuchmail.org In-Reply-To: <20091117190054.GU3165@dottiness.seas.harvard.edu> References: <20091117190054.GU3165@dottiness.seas.harvard.edu> Date: Wed, 18 Nov 2009 02:08:10 -0800 Message-ID: <87ocn0qh6d.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] Working with Maildir storage? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 10:08:25 -0000 On Tue, 17 Nov 2009 14:00:54 -0500, Lars Kellogg-Stedman wrote: > I saw the LWN article and decided to take a look at notmuch. I'm > currently using mutt and mairix to index and read a collection of > Maildir mail folders (around 40,000 messages total). Welcome, Lars! I hadn't even seen that Keith's blog post had been picked up by lwn.net. That's very interesting. So, thanks for coming and trying out notmuch. > Error opening > /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S: > Too many open files Sadly, the lwn article coincided with me having just introduced this bug, and then getting on a Trans-Atlantic flight. So I fixed the bug fairly quickly, but there was quite a bit of latency before I could push the fix out. It should be fixed now. > I'm curious if this is expected behavior (i.e., notmuch does not work > with Maildir) or if something else is going on. Notmuch works just fine with maildir---it's one of the things that it likes the best. Happy hacking, -Carl From cworth@cworth.org Wed Nov 18 02:19:41 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0C28D431FC0; Wed, 18 Nov 2009 02:19:41 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 rHvOVeab1ieM; Wed, 18 Nov 2009 02:19:40 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id AD2A7431FAE; Wed, 18 Nov 2009 02:19:39 -0800 (PST) From: Carl Worth To: Keith Packard , notmuch@notmuchmail.org In-Reply-To: <1258493565-13508-1-git-send-email-keithp@keithp.com> References: <1258493565-13508-1-git-send-email-keithp@keithp.com> Date: Wed, 18 Nov 2009 02:19:26 -0800 Message-ID: <87k4xoqgnl.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 10:19:41 -0000 On Tue, 17 Nov 2009 13:32:45 -0800, Keith Packard wrote: > When closing a thread view, mark the thread as archived by removing > the "inbox" tag, and for the 'x' variant, the "unread" tag as well, > then kill the buffer and update the search window view as well. > > This makes 'x' much the same as 'a', but instead of taking you to the > next message, it takes you back to the search window instead. I don't like this---but that's because I use 'x' precisely *because* it preserves these tags. Otherwise, you might as well just remove inbox and unread as soon as the message is presented to the user. And that's a bug in a lot of other email programs that I'm unwilling to replicate. We may run into a need to define different ways that people like to work with their email here. (I know that so far I've just been coding up the way I want my mail to work.) -Carl From cworth@cworth.org Wed Nov 18 02:22:27 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 78333431FC0; Wed, 18 Nov 2009 02:22:27 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 tKniijFRKHay; Wed, 18 Nov 2009 02:22:27 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 91669431FAE; Wed, 18 Nov 2009 02:22:26 -0800 (PST) From: Carl Worth To: Keith Packard , Aron Griffis , notmuch In-Reply-To: References: <20091117232137.GA7669@griffis1.net> Date: Wed, 18 Nov 2009 02:22:12 -0800 Message-ID: <87iqd8qgiz.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] archive X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 10:22:27 -0000 On Tue, 17 Nov 2009 18:04:31 -0800, Keith Packard wrote: > On Tue, 17 Nov 2009 18:21:38 -0500, Aron Griffis wrote: > > > Just subscribed, I'd like to catch up on the previous postings, > > but the archive link seems to be bogus? > > Yeah, the archive appears broken and will need to wait until Carl > arrives in Barcelona to get fixed. Fixed it in transit in Frankfurt---with only moments to spare on my battery and no outlets in sight. Thanks for the report, Aron. And welcome to notmuch! -Carl (who wants to reply to a lot more mail, but will have to wait until later for that) From cworth@cworth.org Wed Nov 18 02:44:05 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id CC0F4431FBF; Wed, 18 Nov 2009 02:44:05 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 7cfQHxTxtpso; Wed, 18 Nov 2009 02:44:04 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 817A4431FAE; Wed, 18 Nov 2009 02:44:04 -0800 (PST) From: Carl Worth To: Jan Janak , notmuch@notmuchmail.org In-Reply-To: <1258496327-12086-1-git-send-email-jan@ryngle.com> References: <1258496327-12086-1-git-send-email-jan@ryngle.com> Date: Wed, 18 Nov 2009 02:43:50 -0800 Message-ID: <87hbssqfix.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Older versions of install do not support -C. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 10:44:06 -0000 On Tue, 17 Nov 2009 23:18:47 +0100, Jan Janak wrote: > Do not use -C cmdline option of install, older versions, commonly found in > distributions like Debian, do not seem to support it. Running make install > on such systems (tested on Debian Lenny) fails. > > Signed-off-by: Jan Janak Thanks, Jan. This is pushed now. And did I say welcome to notmuch yet? (It's easy to lose track with all the newcomers---which I'm not complaining about---especially since so many are sharing code.) -Carl PS. I actually really like the behavior of -C (especially when installing a low-level library to avoid big waterfalls of needless recompiles). But since we're *not* actually installing a library (yet) I'm happy with this patch rather than writing code in configure to check if "install -C" works or not. From cworth@cworth.org Wed Nov 18 02:50:07 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 119B7431FBF; Wed, 18 Nov 2009 02:50:07 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 D97l+zjsIpSC; Wed, 18 Nov 2009 02:50:06 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9F83C431FAE; Wed, 18 Nov 2009 02:50:05 -0800 (PST) From: Carl Worth To: Jan Janak , notmuch@notmuchmail.org In-Reply-To: References: Date: Wed, 18 Nov 2009 02:49:52 -0800 Message-ID: <87fx8cqf8v.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] What a great idea! X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 10:50:07 -0000 On Tue, 17 Nov 2009 23:35:30 +0100, Jan Janak wrote: > First of all, notmuch is a wonderful idea, both the cmdline tool and > the emacs interface! Thanks a lot for writing it, I was really excited > when I read the announcement today. Ah, here's where I planned a nice welcome. So welcome (again), Jan! :-) I've been having a lot of fun with notmuch already, (though there have been some days of pain before it was functional enough and my email-reply latency went way up). But regardless---I got through that, and I'm able to work more efficiently with notmuch now than I could with sup before. So I'm happy. And I'm delighted when other people find this interesting as well. > Have you considered sending an announcement to the org-mode mailing list? > http://orgmode.org Thanks for the idea. I think I may have looked into org-mode years ago, (when I was investigating planner-mode and various emacs "personal wiki" systems for keeping random notes and what-not). > Various ways of searching/referencing emails from emacs were discussed > there several times and none of them were as elegant as notmuch (not > even close). Maybe notmuch would attract some of the developers > there.. Yeah. I'll drop them a mail. Having a real emacs wizard on board would be nice. (I'm afraid the elisp I've written so far for this project is fairly grim.) -Carl From cworth@cworth.org Wed Nov 18 03:02:59 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1F9AE431FBF; Wed, 18 Nov 2009 03:02:59 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 X1HDQnaxp0hs; Wed, 18 Nov 2009 03:02:58 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 13CAB431FAE; Wed, 18 Nov 2009 03:02:57 -0800 (PST) From: Carl Worth To: Israel Herraiz , notmuch In-Reply-To: <1258498485-sup-142@elly> References: <1258498485-sup-142@elly> Date: Wed, 18 Nov 2009 03:02:43 -0800 Message-ID: <87bpj0qeng.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] New to the list X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 11:02:59 -0000 On Tue, 17 Nov 2009 23:57:18 +0100, Israel Herraiz wrote: > I have subscribed to the list. As suggested by the welcome message, I > am introducing myself. My name is Israel Herraiz, and I have done a > couple of contributions to Sup, the probably well-known here e-mail > client. Welcome, Israel! I'm glad people read that little bit of text in the welcome email and are introducing themselves. I like to think of our new notmuch community as a very personable place. > "Not much" sounds interesting, and I wonder whether it could be > integrated with the views of Sup (inbox, threads, etc). So I have > subscribed to the list to keep an eye on what's going on here. > > I have just heard of "Not much". I have not even tried to download the > code yet. Yes, take a look. If you're already an emacs user, then you'll find the interface of notmuch very comfortable, (looks a lot like sup, but lives inside of emacs). Even outside of emacs, the command line interface of notmuch gives view *fairly* similar to those of sup: notmuch search tag:inbox # Very much like sup's inbox notmuch show thread:some-thread-id # A lot like sup's thread -view The command-line output right now isn't nearly as neat as sup's, (it doesn't elide comments--it doesn't do the indenting of threads, etc.), even though the command-line interface has all the information it needs to do that. The reason for that is to let the emacs code own most of the formatting, (so that it can be more flexible--such as making hidden things visible, changing column widths, etc.). But one thing I wonder is if there would be situations where it would make sense to get the cleaner output directly out of the command-line tool. For example, for someone who isn't an emacs user, the command-line interface might be their only introduction to what the "notmuch experience" is like. So maybe "notmuch show" should give nice clean output by default and then the emacs code could call "notmuch show --format=emacs-friendly" or something to get the current output. That's an idea anyway. -Carl From cworth@cworth.org Wed Nov 18 03:15:46 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D754F431FBF; Wed, 18 Nov 2009 03:15:46 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 ylkT+u1j2Xno; Wed, 18 Nov 2009 03:15:45 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 66155431FAE; Wed, 18 Nov 2009 03:15:45 -0800 (PST) From: Carl Worth To: Adrian Perez de Castro , notmuch@notmuchmail.org In-Reply-To: <20091118002059.067214ed@hikari> References: <20091118002059.067214ed@hikari> Date: Wed, 18 Nov 2009 03:15:31 -0800 Message-ID: <87aaykqe24.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] Introducing myself X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 11:15:47 -0000 On Wed, 18 Nov 2009 00:20:59 +0100, Adrian Perez de Castro wrote: > I have just heard about Not Much today in some random Linux-related news > site (LWN?), my name is Adrian Perez and I work as systems administrator Welcome to notmuch, Adrian! We're glad to have you here. > by default on most distribution. I got to have some mailboxes indexed and > basic searching working a couple of months ago. Lately I have been very > busy and had no time for coding, and them... boom! Not Much appears -- and > it is almost exactly what I was trying to do, but faster. I have been > playing a bit with Not Much today, and I think it has potential. It's funny, because I had the exact same experience with sup a couple of months ago. I had been frustrated for years with email programs, and had been thinking about how I'd like things to work n the back of my mind for a long time, (but never *quite* getting to the point where I would commit to writing an email system myself). And then... boom! I found sup and was instantly hooked. It had so much of what I had imagined, (and much of what I hadn't yet imagined) that I was quite delighted. It was really quite by accident that I ended up inventing a different system. I had started out just trying to speedup index creation for sup. If I hadn't run into the problem that it was very difficult[*] to create a sup-compatible index from C code, I might have stopped there. So I'd written a bunch of functional code, only to find myself stuck at the very last step, (hooking it up to the existing sup interface). Then Keith suggested emacs and it all seemed pretty easy since I'd already done all the Xapian work. So it's funny, I was only willing to commit to this project because I wasn't consciously aware I was working on it. Otherwise it would have seemed to overwhelming to start. :-) Anyway, that's a lot of off-topic rambling off of your introduction. But I'm glad that notmuch can now give that same "boom!" to others, and I'm glad you see potential in it. > Also, I would like to share one idea I had in mind, that you might find > interesting: One thing I have found very annoying is having to re-tag my > mail when the indexes get b0rked (it happened a couple of times to me while > using Sup), so I was planning to mails as read/unread and adding the tags > not just to the index, but to the mail text itself, e.g. by adding a > "X-Tags" header field or by reusing the "Keywords" one. This way, the index > could be totally recreated by re-reading the mail directories, and this > would also allow to a tools like OfflineIMAP [1] to get the mails into a > local maildir, tagging and indexing the mails with the e-mail reader and > then syncing back the messages with the "X-Tags" header to the IMAP server. > This would allow to use the mail reader from a different computer and still > have everything tagged finely. It is an interesting idea. But there's also something really comforting about the email indexed never modifying the mail files. If you're reading the notmuch commit logs closely you'll see that I'm not actually careful enough to be trusted with your mail (but I try). So I like that I don't even have to trust myself---the worst that happens is that I have to recreate my index. And as Keith mentioned, we've got the "notmuch dump; notmuch restore" idea working exactly as it did in sup. (Though I am thinking of also adding thread IDs to that now---more on that later.) The big annoyance I had with sup index creation, (I ended up having to do it more than once too), was that it takes *forever*. Right now, notmuch is a little bit faster, but not a lot faster. And I've got some ideas to fix that. It would be really nice if index creation were pain free. (And maybe it is for some user with small amounts of mail---oh, to have only 40000 messages to have to index!). -Carl [*] The problem here is that sup puts serialized ruby data structures into the data field of its Xapian documents. So being compatible with sup means being able to recreate serialized data structures for a particular version of ruby. From cworth@cworth.org Wed Nov 18 03:22:46 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 94E71431FBF; Wed, 18 Nov 2009 03:22:46 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 tyu8Yhj5nJ27; Wed, 18 Nov 2009 03:22:46 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B550F431FAE; Wed, 18 Nov 2009 03:22:45 -0800 (PST) From: Carl Worth To: Ingmar Vanhassel , notmuch@notmuchmail.org In-Reply-To: <1258500222-32066-1-git-send-email-ingmar@exherbo.org> References: <1258500222-32066-1-git-send-email-ingmar@exherbo.org> Date: Wed, 18 Nov 2009 03:22:32 -0800 Message-ID: <878we4qdqf.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Typsos X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 11:22:46 -0000 On Wed, 18 Nov 2009 00:23:42 +0100, Ingmar Vanhassel wrote: > 17 files changed, 30 insertions(+), 30 deletions(-) Yikes. That's a lot of typos. Thanks Ingmar, for cleaning up after my sloppy keyboarding. Pushed. -Carl From cworth@cworth.org Wed Nov 18 03:31:38 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9A7CD431FBF; Wed, 18 Nov 2009 03:31:38 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 lIkozQzDmLNW; Wed, 18 Nov 2009 03:31:37 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 51CE8431FAE; Wed, 18 Nov 2009 03:31:37 -0800 (PST) From: Carl Worth To: Alex Botero-Lowry , notmuch@notmuchmail.org In-Reply-To: References: Date: Wed, 18 Nov 2009 03:31:23 -0800 Message-ID: <877htoqdbo.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 11:31:38 -0000 On Tue, 17 Nov 2009 16:23:53 -0800, Alex Botero-Lowry wrote: > In this case error out when no query is supplied. There seems to be an > infinite-loop casued by i think notmuch_query_search_threads having > an exception: > A Xapian exception occurred: Syntax: AND > A Xapian exception occurred: Syntax: AND > A Xapian exception occurred: Syntax: AND > > I'll look into that bug specifically a bit later. > > It might be better to do a usage instead of just throwing an error here? Definitely. Priit Laes reported the same thing in IRC and I've just committed a patch to give a nice error message: $ ./notmuch search Error: notmuch search requires at least one search term. Thanks for the report! -Carl From chris@chris-wilson.co.uk Wed Nov 18 03:36:40 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 04C3E431FBC for ; Wed, 18 Nov 2009 03:36:40 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 EK1EJVf3FXp4 for ; Wed, 18 Nov 2009 03:36:39 -0800 (PST) Received: from orsmga101.jf.intel.com (mga06.intel.com [134.134.136.21]) by olra.theworths.org (Postfix) with ESMTP id 3EC64431FAE for ; Wed, 18 Nov 2009 03:36:39 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 18 Nov 2009 03:22:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,764,1249282800"; d="scan'208";a="570709306" Received: from unknown (HELO localhost.localdomain) ([10.255.16.119]) by orsmga001.jf.intel.com with ESMTP; 18 Nov 2009 03:36:28 -0800 From: Chris Wilson To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 11:34:54 +0000 Message-Id: <1258544095-16616-1-git-send-email-chris@chris-wilson.co.uk> X-Mailer: git-send-email 1.6.5.2 Subject: [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 11:36:40 -0000 Currently the same `pkg-config ...` is executed for every target, so just store the results in a variable. --- Makefile | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 96aaa73..023b2ec 100644 --- a/Makefile +++ b/Makefile @@ -4,15 +4,16 @@ CFLAGS=-O2 # Additional flags that we will append to whatever the user set. # These aren't intended for the user to manipulate. -extra_cflags = `pkg-config --cflags glib-2.0 gmime-2.4 talloc` -extra_cxxflags = `xapian-config --cxxflags` +extra_cflags := $(shell pkg-config --cflags glib-2.0 gmime-2.4 talloc) +extra_cxxflags := $(shell xapian-config --cxxflags) # Now smash together user's values with our extra values override CFLAGS += $(WARN_FLAGS) $(extra_cflags) override CXXFLAGS += $(WARN_FLAGS) $(extra_cflags) $(extra_cxxflags) -override LDFLAGS += `pkg-config --libs glib-2.0 gmime-2.4 talloc` \ - `xapian-config --libs` +override LDFLAGS += \ + $(shell pkg-config --libs glib-2.0 gmime-2.4 talloc) \ + $(shell xapian-config --libs) # Include our local Makefile.local first so that its first target is default include Makefile.local -- 1.6.5.2 From chris@chris-wilson.co.uk Wed Nov 18 03:36:43 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8DCC7431FC2 for ; Wed, 18 Nov 2009 03:36:43 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 8pJlIDckt9RA for ; Wed, 18 Nov 2009 03:36:42 -0800 (PST) Received: from orsmga101.jf.intel.com (mga06.intel.com [134.134.136.21]) by olra.theworths.org (Postfix) with ESMTP id BA043431FBC for ; Wed, 18 Nov 2009 03:36:40 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 18 Nov 2009 03:22:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,764,1249282800"; d="scan'208";a="570709311" Received: from unknown (HELO localhost.localdomain) ([10.255.16.119]) by orsmga001.jf.intel.com with ESMTP; 18 Nov 2009 03:36:30 -0800 From: Chris Wilson To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 11:34:55 +0000 Message-Id: <1258544095-16616-2-git-send-email-chris@chris-wilson.co.uk> X-Mailer: git-send-email 1.6.5.2 In-Reply-To: <1258544095-16616-1-git-send-email-chris@chris-wilson.co.uk> References: <1258544095-16616-1-git-send-email-chris@chris-wilson.co.uk> Subject: [notmuch] [PATCH 2/2] reply: Pointer mismatch. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 11:36:43 -0000 Apparently typeof (size_t) != unsigned int on my x86-64. --- notmuch-reply.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch-reply.c b/notmuch-reply.c index 4a4a782..344b6e3 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -78,7 +78,7 @@ address_is_users (const char *address, notmuch_config_t *config) { const char *primary; char **other; - unsigned int i, other_len; + size_t i, other_len; primary = notmuch_config_get_user_primary_email (config); if (strcmp (primary, address) == 0) -- 1.6.5.2 From jan@ryngle.com Wed Nov 18 06:36:53 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 94657431FBC for ; Wed, 18 Nov 2009 06:36:53 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 XsRRfXFzUd6y for ; Wed, 18 Nov 2009 06:36:53 -0800 (PST) Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com [209.85.218.224]) by olra.theworths.org (Postfix) with ESMTP id D8FDA431FAE for ; Wed, 18 Nov 2009 06:36:52 -0800 (PST) Received: by bwz24 with SMTP id 24so127170bwz.30 for ; Wed, 18 Nov 2009 06:36:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.34.201 with SMTP id m9mr6601936bkd.77.1258555011799; Wed, 18 Nov 2009 06:36:51 -0800 (PST) Date: Wed, 18 Nov 2009 15:36:51 +0100 Message-ID: From: Jan Janak To: notmuch@notmuchmail.org Content-Type: text/plain; charset=UTF-8 Subject: [notmuch] Why is no. of files from count_files reset to 0? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 14:36:53 -0000 Hello, The function count_file returns the total number of files to be processed, the result is then stored in add_files_state.total_files. But that variable is reset back to 0 in notmuch_new_command. When I comment out the following line (before add_files is called): add_files_state.total_files = 0; The progress indicator shows the total number of files to be processed, as well as the time remaining. This is, IMHO, much better, especially if you process a large collection of emails. Is there any reason for having the variable reset to 0 before calling add_files? Thanks! -- Jan From aneesh.kumar@linux.vnet.ibm.com Wed Nov 18 07:05:37 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 786E0431FBC for ; Wed, 18 Nov 2009 07:05:37 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 iiAWNFdOWcrU for ; Wed, 18 Nov 2009 07:05:36 -0800 (PST) Received: from e23smtp02.au.ibm.com (e23smtp02.au.ibm.com [202.81.31.144]) by olra.theworths.org (Postfix) with ESMTP id 6B77D431FAE for ; Wed, 18 Nov 2009 07:05:36 -0800 (PST) Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp02.au.ibm.com (8.14.3/8.13.1) with ESMTP id nAIF2w6I009588 for ; Thu, 19 Nov 2009 02:02:58 +1100 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nAIF2BVc1667100 for ; Thu, 19 Nov 2009 02:02:11 +1100 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id nAIF5XFb019025 for ; Thu, 19 Nov 2009 02:05:33 +1100 Received: from skywalker.linux.vnet.ibm.com ([9.77.125.7]) by d23av03.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id nAIF5VFJ018941 for ; Thu, 19 Nov 2009 02:05:32 +1100 From: aneesh.kumar@linux.vnet.ibm.com (Aneesh Kumar K.V) To: notmuch Date: Wed, 18 Nov 2009 20:35:26 +0530 Message-ID: <87pr7f6fgp.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [notmuch] How to list archived mails X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 15:05:37 -0000 Hi, Once i mark the mail as archived how do i search for them ? Right now with notmuch.el i am adding a tag "archive" when i am archiving the mail. I am just wondering is this the right way ? -aneesh From aneesh.kumar@linux.vnet.ibm.com Wed Nov 18 07:15:04 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 7DD8E431FBC for ; Wed, 18 Nov 2009 07:15:04 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 bvGyeqzC8e89 for ; Wed, 18 Nov 2009 07:15:03 -0800 (PST) Received: from e23smtp06.au.ibm.com (e23smtp06.au.ibm.com [202.81.31.148]) by olra.theworths.org (Postfix) with ESMTP id 23E0A431FAE for ; Wed, 18 Nov 2009 07:15:02 -0800 (PST) Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp06.au.ibm.com (8.14.3/8.13.1) with ESMTP id nAIFExRC018885 for ; Thu, 19 Nov 2009 02:14:59 +1100 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nAIFBhIi1585350 for ; Thu, 19 Nov 2009 02:11:43 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id nAIFF0Bf028507 for ; Thu, 19 Nov 2009 02:15:01 +1100 Received: from skywalker.linux.vnet.ibm.com ([9.77.125.7]) by d23av01.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id nAIFEwlt028394 for ; Thu, 19 Nov 2009 02:15:00 +1100 From: aneesh.kumar@linux.vnet.ibm.com (Aneesh Kumar K.V) To: notmuch Date: Wed, 18 Nov 2009 20:44:58 +0530 Message-ID: <87my2jrhjh.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [notmuch] [PATCH] notmuch: Add hooks for show-mode and search-mode X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 15:15:04 -0000 >From e3a801c90ed5e037b68bd16807606388e6dbe6e8 Mon Sep 17 00:00:00 2001 From: Aneesh Kumar K.V Date: Wed, 18 Nov 2009 20:43:13 +0530 Subject: [PATCH] notmuch: Add hooks for show-mode and search-mode This enables to do things like (add-hook 'notmuch-search-mode-hook (lambda() (hl-line-mode 1) )) Signed-off-by: Aneesh Kumar K.V --- notmuch.el | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/notmuch.el b/notmuch.el index 014d15b..87116f9 100644 --- a/notmuch.el +++ b/notmuch.el @@ -57,6 +57,12 @@ "Keymap for \"notmuch show\" buffers.") (fset 'notmuch-show-mode-map notmuch-show-mode-map) +(defvar notmuch-show-mode-hook nil + "Hooks run when notmuch-show-mode is enabled") + +(defvar notmuch-search-mode-hook nil + "Hooks run when notmuch-search-mode is enabled") + (defvar notmuch-show-signature-regexp "\\(-- ?\\|_+\\)$" "Pattern to match a line that separates content from signature. @@ -636,7 +642,8 @@ view, (remove the \"inbox\" tag from each), with (use-local-map notmuch-show-mode-map) (setq major-mode 'notmuch-show-mode mode-name "notmuch-show") - (setq buffer-read-only t)) + (setq buffer-read-only t) + (run-hooks 'notmuch-show-mode-hook)) (defun notmuch-show (thread-id &optional parent-buffer) "Run \"notmuch show\" with the given thread ID and display results. @@ -759,7 +766,8 @@ global search. (use-local-map notmuch-search-mode-map) (setq major-mode 'notmuch-search-mode mode-name "notmuch-search") - (setq buffer-read-only t)) + (setq buffer-read-only t) + (run-hooks 'notmuch-search-mode-hook)) (defun notmuch-search-find-thread-id () (save-excursion -- 1.6.5.2.74.g610f9 From aneesh.kumar@linux.vnet.ibm.com Wed Nov 18 07:17:19 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 7591A431FBC for ; Wed, 18 Nov 2009 07:17:19 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 3arCpMP4J6k9 for ; Wed, 18 Nov 2009 07:17:18 -0800 (PST) Received: from e28smtp05.in.ibm.com (e28smtp05.in.ibm.com [122.248.162.5]) by olra.theworths.org (Postfix) with ESMTP id 3E5FF431FAE for ; Wed, 18 Nov 2009 07:17:17 -0800 (PST) Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by e28smtp05.in.ibm.com (8.14.3/8.13.1) with ESMTP id nAIFHG7s003833 for ; Wed, 18 Nov 2009 20:47:16 +0530 Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nAIFHGSI2715758 for ; Wed, 18 Nov 2009 20:47:16 +0530 Received: from d28av05.in.ibm.com (loopback [127.0.0.1]) by d28av05.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id nAIFHGSn005478 for ; Thu, 19 Nov 2009 02:17:16 +1100 Received: from skywalker.linux.vnet.ibm.com ([9.77.125.7]) by d28av05.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id nAIFHF0e005470 for ; Thu, 19 Nov 2009 02:17:15 +1100 From: aneesh.kumar@linux.vnet.ibm.com (Aneesh Kumar K.V) To: notmuch Date: Wed, 18 Nov 2009 20:47:14 +0530 Message-ID: <87k4xnrhfp.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [notmuch] [PATCH] notmuch: Add tag archive when archiving the mails X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 15:17:19 -0000 >From a2325b950016f39290a0c6f0d6aa3417584eb4e8 Mon Sep 17 00:00:00 2001 From: Aneesh Kumar K.V Date: Wed, 18 Nov 2009 20:45:45 +0530 Subject: [PATCH] notmuch: Add tag archive when archiving the mails This enables us to search for archived mails later Signed-off-by: Aneesh Kumar K.V --- notmuch.el | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/notmuch.el b/notmuch.el index 87116f9..ec2155a 100644 --- a/notmuch.el +++ b/notmuch.el @@ -196,6 +196,7 @@ Unlike builtin `next-line' this version accepts no arguments." (if markread (notmuch-show-remove-tag "unread" "inbox") (notmuch-show-remove-tag "inbox")) + (notmuch-show-add-tag "archive") (if (not (eobp)) (forward-char)) (if (not (re-search-forward notmuch-show-message-begin-regexp nil t)) -- 1.6.5.2.74.g610f9 From aneesh.kumar@linux.vnet.ibm.com Wed Nov 18 07:55:35 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4F8FF431FBC for ; Wed, 18 Nov 2009 07:55:35 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 N50h8iyRuDGV for ; Wed, 18 Nov 2009 07:55:34 -0800 (PST) Received: from e23smtp04.au.ibm.com (e23smtp04.au.ibm.com [202.81.31.146]) by olra.theworths.org (Postfix) with ESMTP id EEE52431FAE for ; Wed, 18 Nov 2009 07:55:33 -0800 (PST) Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp04.au.ibm.com (8.14.3/8.13.1) with ESMTP id nAIFqMx7015553 for ; Thu, 19 Nov 2009 02:52:22 +1100 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nAIFqDHn1667326 for ; Thu, 19 Nov 2009 02:52:13 +1100 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id nAIFtVNl024406 for ; Thu, 19 Nov 2009 02:55:31 +1100 Received: from skywalker.linux.vnet.ibm.com ([9.77.125.7]) by d23av04.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id nAIFtT4s024387 for ; Thu, 19 Nov 2009 02:55:30 +1100 From: aneesh.kumar@linux.vnet.ibm.com (Aneesh Kumar K.V) To: notmuch Date: Wed, 18 Nov 2009 21:25:28 +0530 Message-ID: <87fx8bygi7.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [notmuch] [PATCH] notmuch: Add Maildir directory name as tag name for messages X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 15:55:35 -0000 >From 24711481dfe770417aa0a13308a9bb842dfb03f4 Mon Sep 17 00:00:00 2001 From: Aneesh Kumar K.V Date: Wed, 18 Nov 2009 21:20:12 +0530 Subject: [PATCH] notmuch: Add Maildir directory name as tag name for messages This patch adds maildir directory name as the tag name for messages. This helps in adding tags using filtering already provided by procmail. Signed-off-by: Aneesh Kumar K.V --- notmuch-new.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/notmuch-new.c b/notmuch-new.c index 5405a9f..50d0a5a 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -96,6 +96,7 @@ add_files_print_progress (add_files_state_t *state) static notmuch_status_t add_files_recursive (notmuch_database_t *notmuch, const char *path, + const char *tag, struct stat *st, add_files_state_t *state) { @@ -186,6 +187,7 @@ add_files_recursive (notmuch_database_t *notmuch, case NOTMUCH_STATUS_SUCCESS: state->added_messages++; tag_inbox_and_unread (message); + notmuch_message_add_tag (message, tag); break; /* Non-fatal issues (go on to next file) */ case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID: @@ -223,7 +225,13 @@ add_files_recursive (notmuch_database_t *notmuch, } } } else if (S_ISDIR (st->st_mode)) { - status = add_files_recursive (notmuch, next, st, state); + if ((strcmp (entry->d_name, "cur") == 0) || + (strcmp (entry->d_name, "new") == 0) || + (strcmp (entry->d_name, "tmp") == 0)) { + status = add_files_recursive (notmuch, next, tag, st, state); + } else { + status = add_files_recursive (notmuch, next, entry->d_name, st, state); + } if (status && ret == NOTMUCH_STATUS_SUCCESS) ret = status; } @@ -285,7 +293,7 @@ add_files (notmuch_database_t *notmuch, timerval.it_value.tv_usec = 0; setitimer (ITIMER_REAL, &timerval, NULL); - status = add_files_recursive (notmuch, path, &st, state); + status = add_files_recursive (notmuch, path, basename(path), &st, state); /* Now stop the timer. */ timerval.it_interval.tv_sec = 0; -- 1.6.5.2.74.g610f9 From cworth@cworth.org Wed Nov 18 08:29:37 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 086BC431FC2; Wed, 18 Nov 2009 08:29:37 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 DsOqqwEWzYp2; Wed, 18 Nov 2009 08:29:36 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A961F431FBF; Wed, 18 Nov 2009 08:29:35 -0800 (PST) From: Carl Worth To: Lars Kellogg-Stedman , notmuch In-Reply-To: <20091118010116.GC25380@dottiness.seas.harvard.edu> References: <20091118005829.GB25380@dottiness.seas.harvard.edu> <20091118010116.GC25380@dottiness.seas.harvard.edu> Date: Wed, 18 Nov 2009 08:29:20 -0800 Message-ID: <874ooraja7.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] "notmuch help" outputs to stderr? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 16:29:37 -0000 On Tue, 17 Nov 2009 20:01:16 -0500, Lars Kellogg-Stedman wrote: > > I've attached a patch that lets usage() take a FILE * argument so that > > you can output to stderr in response to usage errors, and stdout in > > response to an explicit request. > > Whoops, missed a couple of stderr's in that last patch. New one > attached. > > -- > Lars Kellogg-Stedman > Senior Technologist, Computing and Information Technology > Harvard University School of Engineering and Applied Sciences Thanks Lars! That was obviously a bug, so I really appreciate both your report and your fix. BTW, for future patches, it would be easier for me, (and hopefully not too much harder for you), if you could format your mails so that "git am" will find a good commit message in them. There are a few different ways you can do that: Option (1) takes more work upfront to get comfortable with it and to make sure it works, but it's probably less work (particuarly 1.b with "git send-email) once you get into the flow of it. Option (2) is probably the least different from what you're currently doing. 1. Make a commit locally with the commit message. Then run "git format-patch", (with "git format-patch HEAD~N" where N is the number of commits you want to generate), to generate formatted email messages, (or even an entire mbox). a. Suck those messages up into an email program. Add any commentary (to not be part of the commit message) after the --- separator and send. b. Use "git send-email" to fire the messages off. 2. Just attach the "git diff" output like you did, but then carefully word the subject and body of the email message to look like a commit message. You can again use a --- separator for commentary that's not part of the patch. For example, option (2) would have looked like the below to generate the commit message I ended up using for your commit. Anyway, thanks again, -Carl Subject: [Patch] notmuch help: Print to stdout, not to stderr. Let usage() take a FILE * argument so that you can output to stderr in response to usage errors, and stdout in response to an explicit request. --- Whoops, missed a couple of stderr's in that last patch. New one attached. -- Lars Kellogg-Stedman Senior Technologist, Computing and Information Technology Harvard University School of Engineering and Applied Sciences From cworth@cworth.org Wed Nov 18 08:29:43 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D3612431FC2; Wed, 18 Nov 2009 08:29:43 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 l0M9j6ZpENyt; Wed, 18 Nov 2009 08:29:43 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id EAD2D431FAE; Wed, 18 Nov 2009 08:29:42 -0800 (PST) From: Carl Worth To: Stewart Smith , notmuch@notmuchmail.org In-Reply-To: <1258506353-20352-1-git-send-email-stewart@flamingspork.com> References: <1258506353-20352-1-git-send-email-stewart@flamingspork.com> Date: Wed, 18 Nov 2009 08:29:28 -0800 Message-ID: <873a4baj9z.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 16:29:44 -0000 On Wed, 18 Nov 2009 12:05:53 +1100, Stewart Smith wrote: > Previously, Ubuntu 9.10, gcc 4.4.1 was getting: Thanks, Stewart! It's always nice to get portability fixes. This should have beeen pushed by the time I will have been able to send this email. :-) -Carl From cworth@cworth.org Wed Nov 18 08:29:49 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id F2D2F431FCB; Wed, 18 Nov 2009 08:29:48 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 HTI6i3TkYLZB; Wed, 18 Nov 2009 08:29:48 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 21BD7431FAE; Wed, 18 Nov 2009 08:29:47 -0800 (PST) From: Carl Worth To: Rolland Santimano , notmuch@notmuchmail.org In-Reply-To: <736613.51770.qm@web113505.mail.gq1.yahoo.com> References: <736613.51770.qm@web113505.mail.gq1.yahoo.com> Date: Wed, 18 Nov 2009 08:29:33 -0800 Message-ID: <871vjvaj9u.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] Link to mailing list archives ? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 16:29:49 -0000 On Tue, 17 Nov 2009 21:12:23 -0800 (PST), Rolland Santimano wrote: > The link[1] provided on the list page[2] is broken: Hi Rolland, Welcome to the notmuch community. Thanks for the report. This should be fixed now. Do let me know if you run into any further problems. -Carl From cworth@cworth.org Wed Nov 18 08:30:09 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C8723431FBF; Wed, 18 Nov 2009 08:30:09 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 6KfrsRF4F0Sb; Wed, 18 Nov 2009 08:30:09 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C4B8F431FAE; Wed, 18 Nov 2009 08:30:08 -0800 (PST) From: Carl Worth To: Alexander Botero-Lowry , notmuch@notmuchmail.org In-Reply-To: <86aayk2rbj.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> References: <86aayk2rbj.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> Date: Wed, 18 Nov 2009 08:29:41 -0800 Message-ID: <87zl6j94p6.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] request for pull X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 16:30:10 -0000 On Wed, 18 Nov 2009 00:02:56 -0800, Alexander Botero-Lowry wrote: > The following changes since commit e8c9c3e6a534fc6c2919c2c1de63cea7250eb488: > > are available in the git repository at: > > git://alexbl.net/notmuch.git master > > Alexander Botero-Lowry (2): > Error out if no query is supplied to search instead of going into an infinite loop > set a local truncate-line variable in notmuch-search-mode, so that subjects don't wrap and make the output look weird Hmm... I used to think pull requests were the best, (and it's true that they still do things better than mail---"git am" and even "git am -3" seem to put git into useless states in some merge-conflict cases). But now that I'm working through this list of patches while I'm on a plane I'm wishing the patches were actually here with me. :-) Well, that's what I have a "todo" tag for. So I'll look at this later when I've got internet access again. (But I believe the first commit is already addressed independently.) BTW, thanks for the patches! -Carl From aperez@igalia.com Wed Nov 18 08:47:28 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C2E19431FBC for ; Wed, 18 Nov 2009 08:47:28 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 GoflEpQLBiFf for ; Wed, 18 Nov 2009 08:47:28 -0800 (PST) Received: from smtp2.mundo-r.com (smtp3.mundo-r.com [212.51.32.191]) by olra.theworths.org (Postfix) with ESMTP id AB98B431FAE for ; Wed, 18 Nov 2009 08:47:27 -0800 (PST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEAIRzdkpbdWOb/2dsb2JhbACBUsAwCI10CYI8CIFLBQ X-IronPort-AV: E=Sophos;i="4.44,766,1249250400"; d="asc'?scan'208";a="158833161" Received: from 155.99.117.91.static.mundo-r.com (HELO fanzine.igalia.com) ([91.117.99.155]) by smtp2.mundo-r.com with ESMTP; 18 Nov 2009 17:47:26 +0100 Received: from maestria.local.igalia.com ([192.168.10.14] helo=mail.igalia.com) by fanzine.igalia.com with esmtps (Cipher TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim) id 1NAngk-0005aJ-7r for ; Wed, 18 Nov 2009 17:47:26 +0100 Received: from ip129.dynamic.igalia.com ([192.168.10.129] helo=hikari.localdomain) by mail.igalia.com with esmtp (Exim) id 1NAngj-0001w6-00 for ; Wed, 18 Nov 2009 17:47:25 +0100 Received: from hikari (localhost [127.0.0.1]) by hikari.localdomain (Postfix) with ESMTP id D05E331CAD21 for ; Wed, 18 Nov 2009 17:47:25 +0100 (CET) Date: Wed, 18 Nov 2009 17:47:25 +0100 From: Adrian Perez de Castro To: notmuch@notmuchmail.org Message-ID: <20091118174725.7d023544@hikari> In-Reply-To: References: <20091118002059.067214ed@hikari> Organization: Igalia X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.3; x86_64-redhat-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAADBQTFRFBwcHFhYWKCgoNzc3SEhIV1dXaGhod3d3iIiIlpaWqKiouLi4x8fH2NjY5+fn/v7+rSjDkgAAAjVJREFUOE9l07tvE0EQwOHfrkV9O+eko7g701BBfECJsIigT2IpooIqaSiRUEB0REj00FBQgYSCkhry+gecUPJybJeIxLumTbilsH2PMNXufDOa3ZVW+1JkpbUmD/8+vXR3c7or4Gz93mH309Kz8/C9/RQge7VfhW/LW+PF8IkrQ7Z6OKmQr1tl+LU/yWP9mxJka9O88fZHPwf/7u0kLyCnX3I4fQhgjAgIfi+HHw5A1Y2ggIMcFKAEnRoL0M3BosI4TI2IATjuT8DvSNJoNNJgkIhxlr9TUHeSpDnfohlIrMBlU+BGmsZqfr69FMfGMw4NoG835+J62riWyjQ/uXlTQjNUIoYegMsBM0pCD8oDas7n4HQsBghXFxJTW42KDs+4XLfjsN0wOYgABqARjMKIHIaAQnmHjsI5Cvi9Cf6k03OoWBkpIP3Q7354+dEimFBKHbMP9oKjwfd9gbrxR5KDToczK4uPF8UgNomKU2GaENRi77zyDKICxKBS4xXYbONPMQMdYZTBwMiMWiUg9g6UJ3OBogzjV8E7sBVwyvfAOYdQhsABzuOxI1MGZbs98Q6Md5UOfbbR2R0eWOesrnRw5ajT6f60LrNhWIHZpBnUWv2s14ukArWWTqTes3YQxRXgFkcMu70TPYqqUBs0YwmO967OVIdTG4bY4a7WLaqgLm5vbHdH5np0Dri//fmg7y8scB4u3+zsuNlH0X+g19bby69b+TYH6isvns8VdQWgxj9tHP8AR5/hSdYqkwsAAAAASUVORK5CYII= Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/GRjMqWnaYuAAn71Dfh5/d=C"; protocol="application/pgp-signature" Subject: Re: [notmuch] Introducing myself X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 16:47:28 -0000 --Sig_/GRjMqWnaYuAAn71Dfh5/d=C Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 17 Nov 2009 18:03:17 -0800, Keith wrote: > On Wed, 18 Nov 2009 00:20:59 +0100, Adrian Perez de Castro wrote: > > > Also, I would like to share one idea I had in mind, that you might find > > interesting: One thing I have found very annoying is having to re-tag my > > mail when the indexes get b0rked (it happened a couple of times to me w= hile > > using Sup), so I was planning to mails as read/unread and adding the ta= gs > > not just to the index, but to the mail text itself, e.g. by adding a > > "X-Tags" header field or by reusing the "Keywords" one. >=20 > Easier than that, notmuch (and sup too), provide a 'dump' command which > just lists all of the message IDs and their associated tags. Makes > saving tags easy and doesn't involve rewriting messages. I do this once > a day just before my computer is backed up to an external drive. >=20 > If the index is destroyed, you can reindex the messages and then reapply > all of the tags with 'notmuch restore'. I already knew about "dump" and "restore", just wanted to share my (wild) thought. I have been thinking a bit more, and if I understand correctly the philosophy of Not Much is that it will only read my mail and that it will never write to my mailboxes. So my idea makes no sense. The nice thing is that I could make a script to read the index (or the output of "notmuch dump") to add the "X-Tags" headers and mark mail :P Taking into account this and the "do one thing well" motto: there is no point in adding that to Not Much :) Regards, --=20 Adrian Perez de Castro Igalia - Free Software Engineering --Sig_/GRjMqWnaYuAAn71Dfh5/d=C Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) iEYEARECAAYFAksEJR0ACgkQkcVZ2+TJEjupQACaAjOI0kOZ/K9gPiZcg/7rCdES J4cAnRiseq2eCnXw+81Sfs0jKXz7WtFD =N3jk -----END PGP SIGNATURE----- --Sig_/GRjMqWnaYuAAn71Dfh5/d=C-- From aperez@igalia.com Wed Nov 18 08:47:36 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E2BEF431FC2 for ; Wed, 18 Nov 2009 08:47:36 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 eyyRR6KkCiRY for ; Wed, 18 Nov 2009 08:47:36 -0800 (PST) Received: from smtp2.mundo-r.com (smtp3.mundo-r.com [212.51.32.191]) by olra.theworths.org (Postfix) with ESMTP id 631BE431FBC for ; Wed, 18 Nov 2009 08:47:35 -0800 (PST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEAIRzdkpbdWOb/2dsb2JhbACBUs4sCYQPBQ X-IronPort-AV: E=Sophos;i="4.44,766,1249250400"; d="asc'?scan'208";a="158833199" Received: from 155.99.117.91.static.mundo-r.com (HELO fanzine.igalia.com) ([91.117.99.155]) by smtp2.mundo-r.com with ESMTP; 18 Nov 2009 17:47:33 +0100 Received: from maestria.local.igalia.com ([192.168.10.14] helo=mail.igalia.com) by fanzine.igalia.com with esmtps (Cipher TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim) id 1NAngr-0005ag-Po for ; Wed, 18 Nov 2009 17:47:33 +0100 Received: from ip129.dynamic.igalia.com ([192.168.10.129] helo=hikari.localdomain) by mail.igalia.com with esmtp (Exim) id 1NAngr-0001wH-00 for ; Wed, 18 Nov 2009 17:47:33 +0100 Received: from hikari (localhost [127.0.0.1]) by hikari.localdomain (Postfix) with ESMTP id 6719E31CAD21 for ; Wed, 18 Nov 2009 17:47:33 +0100 (CET) Date: Wed, 18 Nov 2009 17:47:32 +0100 From: Adrian Perez de Castro To: notmuch@notmuchmail.org Message-ID: <20091118174732.371ae432@hikari> In-Reply-To: <87aaykqe24.fsf@yoom.home.cworth.org> References: <20091118002059.067214ed@hikari> <87aaykqe24.fsf@yoom.home.cworth.org> Organization: Igalia X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.3; x86_64-redhat-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAADBQTFRFBwcHFhYWKCgoNzc3SEhIV1dXaGhod3d3iIiIlpaWqKiouLi4x8fH2NjY5+fn/v7+rSjDkgAAAjVJREFUOE9l07tvE0EQwOHfrkV9O+eko7g701BBfECJsIigT2IpooIqaSiRUEB0REj00FBQgYSCkhry+gecUPJybJeIxLumTbilsH2PMNXufDOa3ZVW+1JkpbUmD/8+vXR3c7or4Gz93mH309Kz8/C9/RQge7VfhW/LW+PF8IkrQ7Z6OKmQr1tl+LU/yWP9mxJka9O88fZHPwf/7u0kLyCnX3I4fQhgjAgIfi+HHw5A1Y2ggIMcFKAEnRoL0M3BosI4TI2IATjuT8DvSNJoNNJgkIhxlr9TUHeSpDnfohlIrMBlU+BGmsZqfr69FMfGMw4NoG835+J62riWyjQ/uXlTQjNUIoYegMsBM0pCD8oDas7n4HQsBghXFxJTW42KDs+4XLfjsN0wOYgABqARjMKIHIaAQnmHjsI5Cvi9Cf6k03OoWBkpIP3Q7354+dEimFBKHbMP9oKjwfd9gbrxR5KDToczK4uPF8UgNomKU2GaENRi77zyDKICxKBS4xXYbONPMQMdYZTBwMiMWiUg9g6UJ3OBogzjV8E7sBVwyvfAOYdQhsABzuOxI1MGZbs98Q6Md5UOfbbR2R0eWOesrnRw5ajT6f60LrNhWIHZpBnUWv2s14ukArWWTqTes3YQxRXgFkcMu70TPYqqUBs0YwmO967OVIdTG4bY4a7WLaqgLm5vbHdH5np0Dri//fmg7y8scB4u3+zsuNlH0X+g19bby69b+TYH6isvns8VdQWgxj9tHP8AR5/hSdYqkwsAAAAASUVORK5CYII= Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/T7w99KBq38_NHN42rs0naPD"; protocol="application/pgp-signature" Subject: Re: [notmuch] Introducing myself X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 16:47:37 -0000 --Sig_/T7w99KBq38_NHN42rs0naPD Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 18 Nov 2009 03:15:31 -0800, Carl wrote: > So I'd written a bunch of functional code, only to find myself stuck at > the very last step, (hooking it up to the existing sup interface). Then > Keith suggested emacs and it all seemed pretty easy since I'd already > done all the Xapian work. So it's funny, I was only willing to commit to > this project because I wasn't consciously aware I was working on it. > Otherwise it would have seemed to overwhelming to start. :-) I tried the "notmuch.el" Emacs mode, and have just installed Emacs in order to be able to try it out. As I have been using Vim for the last ~9 years, probably that was the reason why I found it not very comfortable. Even so, I am able of searching, sending and tagging mail quite happily. Apart from it being a bit Spartan, the only issue I have found so far is that I keep pushing the Escape key a lot -- which is my fault as that is a compulsive behaviour derived of using a Vi-like editor :D (Side note: I would not like to start an editor-religion debate, I just want you to know that most probably it is my fault when I say that I am not very comfortable with the Emacs mode) I showed the thing to my work mates this morning and most of them said that they would like to have Mutt-like keybindings *with* Not Much's search and tagging running behind it. I also think it would be great to have a curses-based UI, so this may be a good opportunity to start doing some serious coding with it in my spare time. =20 > > Also, I would like to share one idea [...] adding a "X-Tags" header > > field or by reusing the "Keywords" one. This way, the index could > > be totally recreated by re-reading the mail directories, and this > > would also allow to a tools like OfflineIMAP [1] to get the mails into a > > local maildir, tagging and indexing the mails with the e-mail reader and > > then syncing back the messages with the "X-Tags" header to the IMAP ser= ver. > > This would allow to use the mail reader from a different computer and s= till > > have everything tagged finely. >=20 > It is an interesting idea. But there's also something really comforting > about the email indexed never modifying the mail files. If you're > reading the notmuch commit logs closely you'll see that I'm not actually > careful enough to be trusted with your mail (but I try). So I like that > I don't even have to trust myself---the worst that happens is that I > have to recreate my index. I already made a comment about this in another reply, I could make the modifications e.g. from a script, so no need to add this in Not Much. Moreover, I agree that if one of the goals is to never modify mailboxes, then the current behaviour is just perfect. > And as Keith mentioned, we've got the "notmuch dump; notmuch restore" > idea working exactly as it did in sup. (Though I am thinking of also > adding thread IDs to that now---more on that later.) >=20 > The big annoyance I had with sup index creation, (I ended up having to > do it more than once too), was that it takes *forever*. Right now, > notmuch is a little bit faster, but not a lot faster. And I've got some > ideas to fix that. It would be really nice if index creation were pain > free. (And maybe it is for some user with small amounts of mail---oh, to > have only 40000 messages to have to index!). Wow, that is a lot of mail. Definitely people having as much mail as you (er... I mean "_not much_ mail as you") would benefit from faster indexing. > [*] The problem here is that sup puts serialized ruby data structures > into the data field of its Xapian documents. So being compatible with > sup means being able to recreate serialized data structures for a > particular version of ruby. Scary... --=20 Adrian Perez de Castro Igalia - Free Software Engineering --Sig_/T7w99KBq38_NHN42rs0naPD Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) iEYEARECAAYFAksEJSQACgkQkcVZ2+TJEjt33wCeNsaa/01Bbt03as7LhdLsfSJY TVQAn38tGcD1RjMl2xCZAU8p9rxhf3qx =zA5/ -----END PGP SIGNATURE----- --Sig_/T7w99KBq38_NHN42rs0naPD-- From keithp@keithp.com Wed Nov 18 09:34:57 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E1386431FBC for ; Wed, 18 Nov 2009 09:34:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 646zd5mDcETm for ; Wed, 18 Nov 2009 09:34:57 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 31ADC431FAE for ; Wed, 18 Nov 2009 09:34:57 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 4FB81B94048 for ; Wed, 18 Nov 2009 09:34:56 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id m7qKpHm0mT0O; Wed, 18 Nov 2009 09:34:53 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id 35D30B9402F; Wed, 18 Nov 2009 09:34:53 -0800 (PST) Received: from koto.keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 31C5DB88003; Wed, 18 Nov 2009 09:34:53 -0800 (PST) Received: by koto.keithp.com (Postfix, from userid 1488) id C587B1581A5; Wed, 18 Nov 2009 09:34:52 -0800 (PST) From: Keith Packard To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 09:34:51 -0800 Message-Id: <1258565691-17252-1-git-send-email-keithp@keithp.com> X-Mailer: git-send-email 1.6.5.2 Subject: [notmuch] [PATCH] We use the message mail system for new mail, let emacs know. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 17:34:58 -0000 This makes things like the goto-address system bring up the right message composition window. Signed-off-by: Keith Packard --- notmuch.el | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/notmuch.el b/notmuch.el index c95cb43..4498200 100644 --- a/notmuch.el +++ b/notmuch.el @@ -1008,4 +1008,6 @@ current search results AND that are tagged with the given tag." (interactive) (notmuch-search "tag:inbox" t)) +(setq mail-user-agent 'message-user-agent) + (provide 'notmuch) -- 1.6.5.2 From keithp@keithp.com Wed Nov 18 09:45:07 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 06674431FBF for ; Wed, 18 Nov 2009 09:45:07 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 Lh0r83L3alJ3 for ; Wed, 18 Nov 2009 09:45:06 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 2A3DA431FAE for ; Wed, 18 Nov 2009 09:45:06 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 7ECC6B94046; Wed, 18 Nov 2009 09:45:05 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IRWGnEXbVMKT; Wed, 18 Nov 2009 09:45:02 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id 4C1A5B9402F; Wed, 18 Nov 2009 09:45:02 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 3EA9EB88003; Wed, 18 Nov 2009 09:45:02 -0800 (PST) From: Keith Packard To: Carl Worth , notmuch@notmuchmail.org In-Reply-To: <87k4xoqgnl.fsf@yoom.home.cworth.org> References: <1258493565-13508-1-git-send-email-keithp@keithp.com> <87k4xoqgnl.fsf@yoom.home.cworth.org> Date: Wed, 18 Nov 2009 09:45:01 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 17:45:07 -0000 --=-=-= On Wed, 18 Nov 2009 02:19:26 -0800, Carl Worth wrote: > I don't like this---but that's because I use 'x' precisely *because* it > preserves these tags. You can use kill-buffer directly (C-X k); adding a new special binding for that command seems unnecessary to me. > Otherwise, you might as well just remove inbox and unread as soon as the > message is presented to the user. And that's a bug in a lot of other > email programs that I'm unwilling to replicate. My mail flow doesn't involve moving directly from one message to the next; I go back to the index after reviewing each one; there isn't a way to mark a buffer as read/archived and *not* view another message -- keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLBDKdQp8BWwlsTdMRAiOOAJ9t4AssqTWThl9pHdQPapHK72onkQCgiSe6 tPRvo9MOlR1xNgicmzRd0Iw= =RWhs -----END PGP SIGNATURE----- --=-=-=-- From saptarshi.guha@gmail.com Wed Nov 18 09:47:52 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 36F6E431FBC for ; Wed, 18 Nov 2009 09:47:52 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 oOCAz+mbxrA6 for ; Wed, 18 Nov 2009 09:47:50 -0800 (PST) Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.144]) by olra.theworths.org (Postfix) with ESMTP id 779FF431FAE for ; Wed, 18 Nov 2009 09:47:50 -0800 (PST) Received: by qw-out-1920.google.com with SMTP id 5so286669qwc.32 for ; Wed, 18 Nov 2009 09:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=M5R4ArfWAmpdD2mxp1Rsi72bvnTMsudKeuYow+uqmvw=; b=mQXOesETb4BzObI/7YV4VSygNsKzyom8I7rvURm6ctExcLTjNWZZ9ri8DJstf1uHvM IKWU00FY0n1uU6ru8nqfaxbNCqyjJkKU/3apR76106FJ8UHSTVCoCw7MAhjW47pjNyLZ PzWQDGwMh8UflcbZgXRvMc0e90DyaQLFFPf6E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=FjdEMeAetWO15uz7vQ0UlK0EDinjUmHttrhW0YyDJX21/tjddr2PDHgT2ljAnHuqlR N91AJZ0uFm+7+78GMdnOZaaaCab6TO9+X0uNx7sEn+ylzibOEk6qnqs2BHY4ir9t9eca lvWnvGj/PEaCW4/4gAjBrgmZtm3+Orcmm2L7k= Received: by 10.224.81.138 with SMTP id x10mr6576321qak.299.1258566470040; Wed, 18 Nov 2009 09:47:50 -0800 (PST) Received: from dhcp-196-232.stat.purdue.edu (dhcp-196-232.stat.purdue.edu [128.210.196.232]) by mx.google.com with ESMTPS id 21sm203428qyk.12.2009.11.18.09.47.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 09:47:49 -0800 (PST) Message-Id: From: Saptarshi Guha To: notmuch@notmuchmail.org Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Date: Wed, 18 Nov 2009 12:47:47 -0500 X-Mailer: Apple Mail (2.936) Subject: [notmuch] Problem Building on OSX leopard 10.5.8 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 17:47:52 -0000 Hello, Having given up on most email clients yet trapped by them, I came =20 across notmuch. Quite eager to build, 1.download xapian, A suggestion : In the INSTALL/README file, mention that xapian-config should be on path and that it be called xapian-config. When I installed the latest, it was installed in /usr/local/bin (not =20 in my path) at xapian-config-1.1 2. download gmime (no problem here) 3. Install talloc (the makefile has errors in it) Problem Building notmuch: I got this error: lib/index.cc: In function =91void =20 _index_address_mailbox(notmuch_message_t*, const char*, =20 InternetAddress*)=92: lib/index.cc:46: error: =91strndup=92 was not declared in this scope Any ideas? Thank you Saptarshi From jeff@ocjtech.us Wed Nov 18 10:00:12 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9A62B431FBC for ; Wed, 18 Nov 2009 10:00:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 qiqjcXbLyIWA for ; Wed, 18 Nov 2009 10:00:12 -0800 (PST) Received: from mail-yx0-f204.google.com (mail-yx0-f204.google.com [209.85.210.204]) by olra.theworths.org (Postfix) with ESMTP id 38392431FAE for ; Wed, 18 Nov 2009 10:00:12 -0800 (PST) Received: by yxe42 with SMTP id 42so1466551yxe.22 for ; Wed, 18 Nov 2009 10:00:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.91.26.5 with SMTP id d5mr2700164agj.16.1258567210434; Wed, 18 Nov 2009 10:00:10 -0800 (PST) Date: Wed, 18 Nov 2009 12:00:10 -0600 Message-ID: <935ead450911181000w2cddfe95qe9efd5bea9f9209d@mail.gmail.com> From: Jeffrey Ollie To: notmuch@notmuchmail.org Content-Type: text/plain; charset=UTF-8 Subject: [notmuch] Segfault searching for tags X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 18:00:12 -0000 Getting the following segfault with 306635c2 on Fedora 12. Seems to be happening with any 'tag:' search that returns results. For example, 'notmuch search tag:inbox' and 'notmuch search tag:unread' segfault but 'notmuch search tag:nosuchtag', 'notmuch search subject:logwatch' and 'notmuch search video' seem to work fine. Core was generated by `/usr/bin/notmuch search --sort=oldest-first tag:inbox'. Program terminated with signal 11, Segmentation fault. \#0 Xapian::TermIterator::operator* (this=) at api/omtermlistiterator.cc:78 78 RETURN(internal->get_termname()); Current language: auto The current source language is "auto; currently c++". Thread 1 (Thread 15005): \#0 Xapian::TermIterator::operator* (this=) at api/omtermlistiterator.cc:78 No locals. \#1 0x000000000040d213 in _notmuch_message_get_in_reply_to (message=0x1594f70) at lib/message.cc:288 prefix = 0x415b77 "XREPLYTO" prefix_len = 0 i = {internal = {dest = 0x0}} in_reply_to = "" \#2 0x000000000040f842 in _resolve_thread_relationships (thread=0x1595a00) at lib/thread.cc:157 node = 0x1596130 message = 0x1594f70 parent = 0x7fff2cade9c8 prev = 0x1595cd0 in_reply_to = \#3 _notmuch_thread_create (thread=0x1595a00) at lib/thread.cc:285 thread = 0x1595a00 thread_id_query = 0x158beb0 matched_query = messages = 0x7fff2cade948 message = thread_id_query_string = matched_query_string = \#4 0x000000000040f3d0 in notmuch_query_search_threads ( query=, first=, max_threads=) at lib/query.cc:217 threads = 0x158b5f0 thread = 0x6e00000077 messages = 0x158b7c0 message = 0x158c580 thread_id = 0x158b890 "2065b08615b4cbbb22d9ee874bb84d3e" seen = 0x15454a0 messages_seen = 0 threads_seen = 0 \#5 0x00000000004089a1 in do_search_threads (ctx=0x1543140, query= 0x7fff2cade8a0, sort=NOTMUCH_SORT_OLDEST_FIRST, first=, max_threads=) at notmuch-search.c:40 thread = threads = 0x1551290 tags = 0x2 date = relative_date = 0x2
\#6 0x0000000000408ddd in notmuch_search_command (ctx=, argc=1, argv=) at notmuch-search.c:156 config = query = 0x158b510 query_str = i = 1 first = max_threads = opt = end = 0x0 sort = \#7 0x000000000040636f in main (argc=4, argv=0x7fff2cadec98) at notmuch.c:400 local = 0x1543140 command = -- Jeff Ollie From keithp@keithp.com Wed Nov 18 11:07:13 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4D9EE431FBC for ; Wed, 18 Nov 2009 11:07:13 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 QwyDkBKZrcFf for ; Wed, 18 Nov 2009 11:07:12 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 97B62431FAE for ; Wed, 18 Nov 2009 11:07:12 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id CFEBEB9404C; Wed, 18 Nov 2009 11:07:11 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yVh897pirz72; Wed, 18 Nov 2009 11:07:07 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id E327FB9402F; Wed, 18 Nov 2009 11:07:07 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id D8CAEB88003; Wed, 18 Nov 2009 11:07:07 -0800 (PST) From: Keith Packard To: "Aneesh Kumar K.V" , notmuch In-Reply-To: <87k4xnrhfp.fsf@linux.vnet.ibm.com> References: <87k4xnrhfp.fsf@linux.vnet.ibm.com> Date: Wed, 18 Nov 2009 11:07:07 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] [PATCH] notmuch: Add tag archive when archiving the mails X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 19:07:13 -0000 --=-=-= > This enables us to search for archived mails later I think you can just use 'not tag:inbox' as 'archived' really just means 'doesn't have the inbox tag'. -- keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLBEXbQp8BWwlsTdMRAo2gAKCGWHZULh7ZM2cRbkTxZbEvZ3r2ewCfUpeR UL3n2kzFyObEgqzacPflf6Q= =JUk2 -----END PGP SIGNATURE----- --=-=-=-- From jroys3@sis-JRR.stl.gtri.gatech.edu Wed Nov 18 11:43:26 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id DBF92431FBC for ; Wed, 18 Nov 2009 11:43:26 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 FkEICRHpxRlg for ; Wed, 18 Nov 2009 11:43:26 -0800 (PST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by olra.theworths.org (Postfix) with ESMTP id 53D7C431FAE for ; Wed, 18 Nov 2009 11:43:26 -0800 (PST) Received: from sis-JRR.stl.gtri.gatech.edu (sis-JRR.stl.gtri.gatech.edu [130.207.197.190]) by mx.perfora.net (node=mxus2) with ESMTP (Nemesis) id 0LmJ46-1NkjDb2CxO-00a2L0 for notmuch@notmuchmail.org; Wed, 18 Nov 2009 14:43:25 -0500 Received: from sis-JRR.stl.gtri.gatech.edu (sis-JRR.stl.gtri.gatech.edu [127.0.0.1]) by sis-JRR.stl.gtri.gatech.edu (8.14.3/8.14.3) with ESMTP id nAIJhN0a017220; Wed, 18 Nov 2009 14:43:23 -0500 Received: (from jroys3@localhost) by sis-JRR.stl.gtri.gatech.edu (8.14.3/8.14.3/Submit) id nAIJhMC9017215; Wed, 18 Nov 2009 14:43:22 -0500 From: Joshua Roys To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 14:43:22 -0500 Message-Id: <1258573402-16750-1-git-send-email-roysjosh@gmail.com> X-Mailer: git-send-email 1.6.2.5 Subject: [notmuch] [PATCH] Fix a compile warning under gcc-4.4.1 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 19:43:27 -0000 --- Hello, This fixes the following for me: notmuch-reply.c: In function ‘address_is_users’: notmuch-reply.c:87: warning: passing argument 2 of ‘notmuch_config_get_user_other_email’ from incompatible pointer type notmuch-client.h:174: note: expected ‘size_t *’ but argument is of type ‘unsigned int *’ notmuch-reply.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch-reply.c b/notmuch-reply.c index 4a4a782..344b6e3 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -78,7 +78,7 @@ address_is_users (const char *address, notmuch_config_t *config) { const char *primary; char **other; - unsigned int i, other_len; + size_t i, other_len; primary = notmuch_config_get_user_primary_email (config); if (strcmp (primary, address) == 0) -- 1.6.2.5 From jeff@ocjtech.us Wed Nov 18 11:51:01 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5C25E431FBC for ; Wed, 18 Nov 2009 11:51:01 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 tH+w2PLeG+4r for ; Wed, 18 Nov 2009 11:51:00 -0800 (PST) Received: from mail-gx0-f221.google.com (mail-gx0-f221.google.com [209.85.217.221]) by olra.theworths.org (Postfix) with ESMTP id CE297431FAE for ; Wed, 18 Nov 2009 11:51:00 -0800 (PST) Received: by gxk21 with SMTP id 21so1372980gxk.10 for ; Wed, 18 Nov 2009 11:50:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.91.18.5 with SMTP id v5mr2776139agi.91.1258573858716; Wed, 18 Nov 2009 11:50:58 -0800 (PST) In-Reply-To: References: <87k4xnrhfp.fsf@linux.vnet.ibm.com> Date: Wed, 18 Nov 2009 13:50:58 -0600 Message-ID: <935ead450911181150i4bda379bhcebc3ef52844a0a@mail.gmail.com> From: Jeffrey Ollie To: Not Much Mail Content-Type: text/plain; charset=UTF-8 Subject: Re: [notmuch] [PATCH] notmuch: Add tag archive when archiving the mails X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 19:51:01 -0000 On Wed, Nov 18, 2009 at 1:07 PM, Keith Packard wrote: > >> This enables us to search for archived mails later > > I think you can just use 'not tag:inbox' as 'archived' really just means > 'doesn't have the inbox tag'. That resulted in an error for me: $ notmuch search not tag:inbox A Xapian exception occurred: Syntax: NOT A Xapian exception occurred: Syntax: NOT -- Jeff Ollie From keithp@keithp.com Wed Nov 18 11:56:24 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D8CA8431FBC for ; Wed, 18 Nov 2009 11:56:24 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 aRx-6oOVOCf5 for ; Wed, 18 Nov 2009 11:56:23 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 12328431FAE for ; Wed, 18 Nov 2009 11:56:23 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 150DEB9404C for ; Wed, 18 Nov 2009 11:56:21 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wCZMnIzscRaV; Wed, 18 Nov 2009 11:56:15 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id 47B3DB9402F; Wed, 18 Nov 2009 11:56:15 -0800 (PST) Received: from koto.keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 3B1A1B88003; Wed, 18 Nov 2009 11:56:15 -0800 (PST) Received: by koto.keithp.com (Postfix, from userid 1488) id CE9901581A5; Wed, 18 Nov 2009 11:56:14 -0800 (PST) From: Keith Packard To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 11:56:13 -0800 Message-Id: <1258574173-19911-1-git-send-email-keithp@keithp.com> X-Mailer: git-send-email 1.6.5.2 Subject: [notmuch] [PATCH] Filter out carriage-returns in show and reply output. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 19:56:25 -0000 Thanks, windows mail clients. Signed-off-by: Keith Packard --- gmime-filter-reply.c | 7 ++++--- notmuch-show.c | 21 +++++++++++++++------ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/gmime-filter-reply.c b/gmime-filter-reply.c index 3e298e1..b269db4 100644 --- a/gmime-filter-reply.c +++ b/gmime-filter-reply.c @@ -130,8 +130,9 @@ filter_filter (GMimeFilter *filter, char *inbuf, size_t inlen, size_t prespace, reply->saw_nl = TRUE; else reply->saw_nl = FALSE; - - *outptr++ = *inptr++; + if (*inptr != '\r') + *outptr++ = *inptr; + inptr++; } } else { g_mime_filter_set_size (filter, inlen + 1, FALSE); @@ -150,7 +151,7 @@ filter_filter (GMimeFilter *filter, char *inbuf, size_t inlen, size_t prespace, else *outptr++ = *inptr; reply->saw_angle = FALSE; - } else { + } else if (*inptr != '\r') { if (*inptr == '\n') reply->saw_nl = TRUE; *outptr++ = *inptr; diff --git a/notmuch-show.c b/notmuch-show.c index 7749dbc..4c377e1 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -99,14 +99,23 @@ show_part (GMimeObject *part, int *part_count) if (g_mime_content_type_is_type (content_type, "text", "*") && !g_mime_content_type_is_type (content_type, "text", "html")) { - GMimeStream *stream = g_mime_stream_file_new (stdout); - g_mime_stream_file_set_owner (GMIME_STREAM_FILE (stream), FALSE); + GMimeStream *stream_stdout = g_mime_stream_file_new (stdout); + GMimeStream *stream_filter = NULL; + + if (stream_stdout) { + g_mime_stream_file_set_owner (GMIME_STREAM_FILE (stream_stdout), FALSE); + stream_filter = g_mime_stream_filter_new(stream_stdout); + g_mime_stream_filter_add(GMIME_STREAM_FILTER(stream_filter), + g_mime_filter_crlf_new(FALSE, FALSE)); + } wrapper = g_mime_part_get_content_object (GMIME_PART (part)); - if (wrapper && stream) - g_mime_data_wrapper_write_to_stream (wrapper, stream); - if (stream) - g_object_unref(stream); + if (wrapper && stream_filter) + g_mime_data_wrapper_write_to_stream (wrapper, stream_filter); + if (stream_filter) + g_object_unref(stream_filter); + if (stream_stdout) + g_object_unref(stream_stdout); } else { -- 1.6.5.2 From keithp@keithp.com Wed Nov 18 11:57:18 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8F790431FBC for ; Wed, 18 Nov 2009 11:57:18 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 qIkAWy2ll9he for ; Wed, 18 Nov 2009 11:57:17 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id BAB96431FAE for ; Wed, 18 Nov 2009 11:57:17 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 2D5C9B9404C for ; Wed, 18 Nov 2009 11:57:17 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9e8mFTHKGrJN; Wed, 18 Nov 2009 11:57:14 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id F1E9EB9402F; Wed, 18 Nov 2009 11:57:13 -0800 (PST) Received: from koto.keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id EFA4BB88003; Wed, 18 Nov 2009 11:57:13 -0800 (PST) Received: by koto.keithp.com (Postfix, from userid 1488) id 990871581A5; Wed, 18 Nov 2009 11:57:13 -0800 (PST) From: Keith Packard To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 11:57:12 -0800 Message-Id: <1258574232-19966-1-git-send-email-keithp@keithp.com> X-Mailer: git-send-email 1.6.5.2 Subject: [notmuch] [PATCH] Limit reverse searches to 100 threads. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 19:57:18 -0000 Yes, this is a lame default, but it serves my purposes. Signed-off-by: Keith Packard --- notmuch.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 4498200..91ed073 100644 --- a/notmuch.el +++ b/notmuch.el @@ -945,7 +945,7 @@ This function advances point to the next line when finished." (save-excursion (if oldest-first (call-process "notmuch" nil t nil "search" query) - (call-process "notmuch" nil t nil "search" "--reverse" query)) + (call-process "notmuch" nil t nil "search" "--max-threads=100" "--reverse" query)) (notmuch-search-markup-thread-ids) )))) -- 1.6.5.2 From keithp@keithp.com Wed Nov 18 11:58:15 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8F299431FBF for ; Wed, 18 Nov 2009 11:58:15 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 OrfvwKO5MBzg for ; Wed, 18 Nov 2009 11:58:15 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id AC26C431FBC for ; Wed, 18 Nov 2009 11:58:14 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id E3CECB9404C for ; Wed, 18 Nov 2009 11:58:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YGBypFG9hQVa; Wed, 18 Nov 2009 11:58:07 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id 5EA5AB9402F; Wed, 18 Nov 2009 11:58:07 -0800 (PST) Received: from koto.keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 581C1B88003; Wed, 18 Nov 2009 11:58:07 -0800 (PST) Received: by koto.keithp.com (Postfix, from userid 1488) id 00E8E1581A5; Wed, 18 Nov 2009 11:58:07 -0800 (PST) From: Keith Packard To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 11:58:06 -0800 Message-Id: <1258574286-20087-1-git-send-email-keithp@keithp.com> X-Mailer: git-send-email 1.6.5.2 Subject: [notmuch] [PATCH] Have git ignore etags file X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 19:58:15 -0000 --- .gitignore | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index d277c5a..367caa6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +TAGS .deps notmuch notmuch.1.gz -- 1.6.5.2 From keithp@keithp.com Wed Nov 18 12:17:51 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6ACD6431FBF for ; Wed, 18 Nov 2009 12:17:51 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 3SP-uoRhYx2q for ; Wed, 18 Nov 2009 12:17:50 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id B3F63431FBC for ; Wed, 18 Nov 2009 12:17:50 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 190C6B9404C; Wed, 18 Nov 2009 12:17:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Rmr5hkjvx-Rg; Wed, 18 Nov 2009 12:17:46 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id DACAAB9402F; Wed, 18 Nov 2009 12:17:46 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id CC3E5B88003; Wed, 18 Nov 2009 12:17:46 -0800 (PST) From: Keith Packard To: Jeffrey Ollie , Not Much Mail In-Reply-To: <935ead450911181150i4bda379bhcebc3ef52844a0a@mail.gmail.com> References: <87k4xnrhfp.fsf@linux.vnet.ibm.com> <935ead450911181150i4bda379bhcebc3ef52844a0a@mail.gmail.com> Date: Wed, 18 Nov 2009 12:17:46 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] [PATCH] notmuch: Add tag archive when archiving the mails X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 20:17:51 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, 18 Nov 2009 13:50:58 -0600, Jeffrey Ollie wrote: > That resulted in an error for me: >=20 > $ notmuch search not tag:inbox > A Xapian exception occurred: Syntax: NOT > A Xapian exception occurred: Syntax: NOT Yeah, NOT isn't a unary operator in xapian; it's a binary operator that means 'AND NOT'. The Xapian docs say that if you set the FLAG_PURE_NOT flag, you'll get the unary behaviour, but I haven't tried that. =2D- keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLBFZqQp8BWwlsTdMRAtMIAKCggiR6ySGe2douMOogoc81jixh5wCfUv2N inG5v6kdH1qT9SGI40uQe+U= =lVmk -----END PGP SIGNATURE----- --=-=-=-- From jeff@ocjtech.us Wed Nov 18 13:23:03 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1B06F431FBF for ; Wed, 18 Nov 2009 13:23:03 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 8Oi79r4YnJJM for ; Wed, 18 Nov 2009 13:23:02 -0800 (PST) Received: from mail-yx0-f204.google.com (mail-yx0-f204.google.com [209.85.210.204]) by olra.theworths.org (Postfix) with ESMTP id 7113C431FBC for ; Wed, 18 Nov 2009 13:23:02 -0800 (PST) Received: by yxe42 with SMTP id 42so1686954yxe.22 for ; Wed, 18 Nov 2009 13:23:02 -0800 (PST) Received: by 10.100.230.20 with SMTP id c20mr4293136anh.152.1258579382085; Wed, 18 Nov 2009 13:23:02 -0800 (PST) Received: from lt26923.campus.dmacc.edu ([69.57.47.215]) by mx.google.com with ESMTPS id 15sm178981yxh.58.2009.11.18.13.23.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 13:23:01 -0800 (PST) Received: from localhost ([127.0.0.1] helo=localhost.localdomain) by lt26923.campus.dmacc.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NApK3-0004Bn-9o for notmuch@notmuchmail.org; Wed, 18 Nov 2009 12:32:07 -0600 From: "Jeffrey C. Ollie" To: Not Much Mail Date: Wed, 18 Nov 2009 12:31:53 -0600 Message-Id: <1258569114-16034-1-git-send-email-jeff@ocjtech.us> X-Mailer: git-send-email 1.6.5.2 Subject: [notmuch] RPM spec file X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 21:23:03 -0000 I prefere managing all of the software on my system with RPM, so I came up with a quick spec file for building RPMS. Once notmuch settles down and I continue using it I may submit notmuch to Fedora as an official package. If you'd like your own RPMS build your own, I don't plan on offering a repository of binary packages. From jeff@ocjtech.us Wed Nov 18 13:23:06 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B83BF431FC0 for ; Wed, 18 Nov 2009 13:23:06 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 69Et9SgpYeSG for ; Wed, 18 Nov 2009 13:23:05 -0800 (PST) Received: from mail-yx0-f204.google.com (mail-yx0-f204.google.com [209.85.210.204]) by olra.theworths.org (Postfix) with ESMTP id A7B79431FC4 for ; Wed, 18 Nov 2009 13:23:04 -0800 (PST) Received: by mail-yx0-f204.google.com with SMTP id 42so1686954yxe.22 for ; Wed, 18 Nov 2009 13:23:04 -0800 (PST) Received: by 10.101.72.16 with SMTP id z16mr3865306ank.90.1258579384054; Wed, 18 Nov 2009 13:23:04 -0800 (PST) Received: from lt26923.campus.dmacc.edu ([69.57.47.215]) by mx.google.com with ESMTPS id 36sm180609yxh.31.2009.11.18.13.23.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 13:23:03 -0800 (PST) Received: from localhost ([127.0.0.1] helo=localhost.localdomain) by lt26923.campus.dmacc.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NApKA-0004Bn-67; Wed, 18 Nov 2009 12:32:14 -0600 From: "Jeffrey C. Ollie" To: Not Much Mail Date: Wed, 18 Nov 2009 12:31:54 -0600 Message-Id: <1258569114-16034-2-git-send-email-jeff@ocjtech.us> X-Mailer: git-send-email 1.6.5.2 In-Reply-To: <1258569114-16034-1-git-send-email-jeff@ocjtech.us> References: <1258569114-16034-1-git-send-email-jeff@ocjtech.us> Subject: [notmuch] [PATCH] notmuch build: add a RPM spec file X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 21:23:07 -0000 Add a spec file for building RPM packages. Signed-off-by: Jeffrey C. Ollie --- notmuch.spec | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 110 insertions(+), 0 deletions(-) create mode 100644 notmuch.spec diff --git a/notmuch.spec b/notmuch.spec new file mode 100644 index 0000000..cca3a1b --- /dev/null +++ b/notmuch.spec @@ -0,0 +1,110 @@ +%global git 306635c2 + +%if %($(pkg-config emacs) ; echo $?) +%global emacs_version 23.1 +%global emacs_lispdir %{_datadir}/emacs/site-lisp +%global emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d +%else +%global emacs_version %(pkg-config emacs --modversion) +%global emacs_lispdir %(pkg-config emacs --variable sitepkglispdir) +%global emacs_startdir %(pkg-config emacs --variable sitestartdir) +%endif + +Name: notmuch +Version: 0.0 +Release: 0.3.%{git}%{?dist} +Summary: Not much of an email program + +Group: Applications/Internet +License: GPLv3+ +URL: http://notmuchmail.org/ + +# +# To create a tarball: +# +# git clone git://notmuchmail.org/git/notmuch +# cd notmuch +# git archive --format=tar --prefix=notmuch/ HEAD | bzip2 > notmuch-`git show-ref --hash=8 HEAD`.tar.bz2 +# +Source0: notmuch-%{git}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: xapian-core-devel +BuildRequires: gmime-devel +BuildRequires: libtalloc-devel +BuildRequires: zlib-devel +BuildRequires: emacs-el +BuildRequires: emacs-nox + +Requires: emacs(bin) >= %{emacs_version} + +%description +* "Not much mail" is what Notmuch thinks about your email + collection. Even if you receive 12000 messages per month or have on + the order of millions of messages that you've been saving for + decades. Regardless, Notmuch will be able to quickly search all of + it. It's just plain not much mail. + +* "Not much mail" is also what you should have in your inbox at any + time. Notmuch gives you what you need, (tags and fast search), so + that you can keep your inbox tamed and focus on what really matters + in your life, (which is surely not email). + +* Notmuch is an answer to Sup. Sup is a very good email program + written by William Morgan (and others) and is the direct inspiration + for Notmuch. Notmuch began as an effort to rewrite + performance-critical pieces of Sup in C rather than ruby. From + there, it grew into a separate project. One significant contribution + Notmuch makes compared to Sup is the separation of the + indexer/searcher from the user interface. (Notmuch provides a + library interface so that its indexing/searching/tagging features + can be integrated into any email program.) + +* Notmuch is not much of an email program. It doesn't receive messages + (no POP or IMAP suport). It doesn't send messages (no mail composer, + no network code at all). And for what it does do (email search) that + work is provided by an external library, Xapian. So if Notmuch + provides no user interface and Xapian does all the heavy lifting, + then what's left here? Not much. + +Notmuch is still in the early stages of development, but it does +include one user interface, (implemented within emacs), which has at +least two users using it for reading all of their incoming mail. If +you've been looking for a fast, global-search and tag-based email +reader to use within emacs, then Notmuch may be exactly what you've +been looking for. + +Otherwise, if you're a developer of an existing email program and +would love a good library interface for fast, global search with +support for arbitrary tags, then Notmuch also may be exactly what +you've been looking for. + +%prep +%setup -q -n notmuch + +%build +make %{?_smp_mflags} CFLAGS="%{optflags}" +emacs -batch -f batch-byte-compile notmuch.el + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} prefix=%{_prefix} +mkdir -p %{buildroot}%{emacs_startdir} +install -m0644 -p notmuch.el* %{buildroot}%{emacs_startdir} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING COPYING-GPL-3 INSTALL README TODO + +%{_sysconfdir}/bash_completion.d/notmuch +%{_bindir}/notmuch +%{_mandir}/man1/notmuch.1* +%{emacs_startdir}/notmuch.el* + +%changelog +* Wed Nov 18 2009 Jeffrey C. Ollie - 0.0-0.3.306635c2 +- First version + -- 1.6.5.2 From keithp@keithp.com Wed Nov 18 13:46:04 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A3F0C431FBF for ; Wed, 18 Nov 2009 13:46:04 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 Na4UJR2xWfHB for ; Wed, 18 Nov 2009 13:46:03 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 90B99431FBC for ; Wed, 18 Nov 2009 13:46:03 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 0665EB9404C for ; Wed, 18 Nov 2009 13:46:03 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PNyzIBrT-lJf; Wed, 18 Nov 2009 13:46:00 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id 1609BB9402F; Wed, 18 Nov 2009 13:46:00 -0800 (PST) Received: from koto.keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 13B6EB88003; Wed, 18 Nov 2009 13:46:00 -0800 (PST) Received: by koto.keithp.com (Postfix, from userid 1488) id B11841581A5; Wed, 18 Nov 2009 13:45:59 -0800 (PST) From: Keith Packard To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 13:45:58 -0800 Message-Id: <1258580758-24474-1-git-send-email-keithp@keithp.com> X-Mailer: git-send-email 1.6.5.2 Subject: [notmuch] [PATCH] Make reply/show/tag all require at least one search term X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 21:46:04 -0000 In particular, notmuch tag -inbox "" tended to take a long time to run, happened if you hit 'a' on a blank line in the search view and probably didn't have the desired effect. Signed-off-by: Keith Packard --- notmuch-reply.c | 13 +++++++++---- notmuch-show.c | 13 +++++++++---- notmuch-tag.c | 8 ++++---- 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/notmuch-reply.c b/notmuch-reply.c index 4a4a782..31e2c87 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -196,16 +196,21 @@ notmuch_reply_command (void *ctx, int argc, char *argv[]) if (config == NULL) return 1; - notmuch = notmuch_database_open (notmuch_config_get_database_path (config)); - if (notmuch == NULL) - return 1; - query_string = query_string_from_args (ctx, argc, argv); if (query_string == NULL) { fprintf (stderr, "Out of memory\n"); return 1; } + if (*query_string == '\0') { + fprintf (stderr, "Error: notmuch reply requires at least one search term.\n"); + return 1; + } + + notmuch = notmuch_database_open (notmuch_config_get_database_path (config)); + if (notmuch == NULL) + return 1; + query = notmuch_query_create (notmuch, query_string); if (query == NULL) { fprintf (stderr, "Out of memory\n"); diff --git a/notmuch-show.c b/notmuch-show.c index 59a58c2..c0c3ca3 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -196,16 +196,21 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[])) if (config == NULL) return 1; - notmuch = notmuch_database_open (notmuch_config_get_database_path (config)); - if (notmuch == NULL) - return 1; - query_string = query_string_from_args (ctx, argc, argv); if (query_string == NULL) { fprintf (stderr, "Out of memory\n"); return 1; } + if (*query_string == '\0') { + fprintf (stderr, "Error: notmuch show requires at least one search term.\n"); + return 1; + } + + notmuch = notmuch_database_open (notmuch_config_get_database_path (config)); + if (notmuch == NULL) + return 1; + query = notmuch_query_create (notmuch, query_string); if (query == NULL) { fprintf (stderr, "Out of memory\n"); diff --git a/notmuch-tag.c b/notmuch-tag.c index 7d92ec4..12ab86c 100644 --- a/notmuch-tag.c +++ b/notmuch-tag.c @@ -83,8 +83,10 @@ notmuch_tag_command (void *ctx, unused (int argc), unused (char *argv[])) return 1; } - if (i == argc) { - fprintf (stderr, "Error: 'notmuch tag' requires at least one search term.\n"); + query_string = query_string_from_args (ctx, argc - i, &argv[i]); + + if (*query_string == '\0') { + fprintf (stderr, "Error: notmuch tag requires at least one search term.\n"); return 1; } @@ -96,8 +98,6 @@ notmuch_tag_command (void *ctx, unused (int argc), unused (char *argv[])) if (notmuch == NULL) return 1; - query_string = query_string_from_args (ctx, argc - i, &argv[i]); - query = notmuch_query_create (notmuch, query_string); if (query == NULL) { fprintf (stderr, "Out of memory.\n"); -- 1.6.5.2 From cworth@cworth.org Wed Nov 18 14:27:37 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4A34F431FC0; Wed, 18 Nov 2009 14:27:37 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 2H3gZ5qNkzph; Wed, 18 Nov 2009 14:27:36 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E3B13431FBC; Wed, 18 Nov 2009 14:27:35 -0800 (PST) From: Carl Worth To: Jjgod Jiang , notmuch@notmuchmail.org In-Reply-To: References: Date: Wed, 18 Nov 2009 23:27:20 +0100 Message-ID: <874oorfozb.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [notmuch] Mac OS X/Darwin compatibility issues X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 22:27:37 -0000 On Wed, 18 Nov 2009 11:50:17 +0800, Jjgod Jiang wrote: > 1. g++ reports 'warning: command line option "-Wmissing-declarations" > is valid for C/ObjC but not for C++' In cairo, what we do is have a huge list of desired warnings and then test each one in turn with a test-compile in the configure script. That's probably what we should do here, (I recently established a Makefile.config for this purpose that should be generated by the configure script.) > 2. > notmuch-reply.c: In function =E2=80=98address_is_users=E2=80=99: > notmuch-reply.c:87: warning: passing argument 2 of > =E2=80=98notmuch_config_get_user_other_email=E2=80=99 from incompatible p= ointer type Thanks for the report. I think I saw a fix for this in a commit from Chris Wilson that's in my queue. (Though from a quick glance I'm not sure where the size_t type got started in the code and propagated throught this part). > 3. Several errors about missing GNU extensions like getline() and strndup= (): >=20 > warning: implicit declaration of function =E2=80=98getline=E2=80=99 > error: =E2=80=98strndup=E2=80=99 was not declared in this scope >=20 > We can implement these with fgets() and strncpy() though. Yes. I knew I was "cheating" by using some GNU extensions here. I'm happy to accept portability patches for these things, but it's hard for me to get excited about writing them myself. Care to take a whack at these? -Carl From ingmar@exherbo.org Wed Nov 18 14:50:58 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A7733431FBF for ; Wed, 18 Nov 2009 14:50:58 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 SgJqAi+RQrD7 for ; Wed, 18 Nov 2009 14:50:57 -0800 (PST) X-Greylist: delayed 84428 seconds by postgrey-1.32 at olra; Wed, 18 Nov 2009 14:50:57 PST Received: from bach.exherbo.org (bach.exherbo.org [78.47.197.147]) by olra.theworths.org (Postfix) with ESMTP id A6D2D431FBC for ; Wed, 18 Nov 2009 14:50:57 -0800 (PST) Received: from [83.101.72.69] (helo=localhost) by bach.exherbo.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NAtMV-0005Kc-2e; Wed, 18 Nov 2009 22:50:55 +0000 From: Ingmar Vanhassel To: Date: Wed, 18 Nov 2009 23:50:40 +0100 Message-Id: <1258584640-29221-1-git-send-email-ingmar@exherbo.org> X-Mailer: git-send-email 1.6.5.2.433.g23cdb Subject: [notmuch] [PATCH 1/2] zsh: Initial zsh-completion for notmuch X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 22:50:58 -0000 Signed-off-by: Ingmar Vanhassel --- _notmuch | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 74 insertions(+), 0 deletions(-) create mode 100644 _notmuch diff --git a/_notmuch b/_notmuch new file mode 100644 index 0000000..00c9248 --- /dev/null +++ b/_notmuch @@ -0,0 +1,74 @@ +#compdef notmuch + +# ZSH completion for `notmuch` +# Copyright 2009 Ingmar Vanhassel + +_notmuch_commands() +{ + local -a notmuch_commands + notmuch_commands=( + 'setup:interactively set up notmuch for first use' + 'new:find and import any new message to the database' + 'search:search for messages matching the search terms, display matching threads as results' + 'reply:constructs a reply template for a set of messages' + 'show:show all messages matching the search terms' + 'tag:add or remove tags for all messages matching the search terms' + 'dump:creates a plain-text dump of the tags of each message' + 'restore:restores the tags from the given file' + 'help:show details on a command' + ) + + _describe -t command 'command' notmuch_commands +} + +_notmuch_dump() +{ + _files +} + +_notmuch_help_topics() +{ + local -a notmuch_help_topics + notmuch_help_topics=( + 'search-terms:show common search-terms syntax' + ) + _describe -t notmuch-help-topics 'topic' notmuch_help_topics +} + +_notmuch_help() +{ + _alternative \ + _notmuch_commands \ + _notmuch_help_topics +} + +_notmuch_restore() +{ + _files +} + +_notmuch_search() +{ + _arguments -s : \ + '--max-threads=[display only the first x threads from the search results]:number of threads to show: ' \ + '--first=[omit the first x threads from the search results]:number of threads to omit: ' \ + '--sort=[sort results]:sorting:((newest-first\:"reverse chronological order" oldest-first\:"chronological order"))' +} + +_notmuch() +{ + if (( CURRENT > 2 )) ; then + local cmd=${words[2]} + curcontext="${curcontext%:*:*}:notmuch-$cmd" + (( CURRENT-- )) + shift words + _call_function ret _notmuch_$cmd + return ret + else + _notmuch_commands + fi +} + +_notmuch "$@" + +# vim: set sw=2 sts=2 ts=2 et ft=zsh : -- 1.6.5.2.433.g23cdb From ingmar@exherbo.org Wed Nov 18 14:51:36 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E4F54431FBF for ; Wed, 18 Nov 2009 14:51:36 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 AmnpbjwTN0KH for ; Wed, 18 Nov 2009 14:51:36 -0800 (PST) Received: from bach.exherbo.org (bach.exherbo.org [78.47.197.147]) by olra.theworths.org (Postfix) with ESMTP id 418CE431FBC for ; Wed, 18 Nov 2009 14:51:36 -0800 (PST) Received: from [83.101.72.69] (helo=localhost) by bach.exherbo.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NAtN9-0005Kt-JW; Wed, 18 Nov 2009 22:51:35 +0000 From: Ingmar Vanhassel To: Date: Wed, 18 Nov 2009 23:51:31 +0100 Message-Id: <1258584691-29260-1-git-send-email-ingmar@exherbo.org> X-Mailer: git-send-email 1.6.5.2.433.g23cdb Subject: [notmuch] [PATCH 2/2] .gitignore: Add common editor droppings X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 22:51:37 -0000 --- .gitignore | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index d277c5a..a210779 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ notmuch notmuch.1.gz *.[ao] +*~ +.*.swp -- 1.6.5.2.433.g23cdb From cworth@cworth.org Wed Nov 18 15:06:07 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 7E8FF431FC0; Wed, 18 Nov 2009 15:06:07 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 pEd0TkiwL2bo; Wed, 18 Nov 2009 15:06:07 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6FDA2431FBC; Wed, 18 Nov 2009 15:06:06 -0800 (PST) From: Carl Worth To: Alexander Botero-Lowry , Keith Packard , notmuch@notmuchmail.org In-Reply-To: <1258532999-9316-1-git-send-email-keithp@keithp.com> References: <1258532999-9316-1-git-send-email-keithp@keithp.com> <867hto2p0t.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> Date: Thu, 19 Nov 2009 00:05:51 +0100 Message-ID: <87ws1nmo1c.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 23:06:07 -0000 On Wed, 18 Nov 2009 00:29:59 -0800, Keith Packard wrote: > I created the notmuch-show-hook precisely so I could add these two > options, but I suspect most people will want them, so I just made them > the default. If you don't want them, you can use remove-hook to get > rid of this. Thanks, Keith! I had actually held off on pushing your original commit to add the hook because I didn't like that it wasn't documenting what the hook was good for. But now that we've got some good, suggested behavior there, I'm much happier. So both are pushed now. On Wed, 18 Nov 2009 00:52:34 -0800, Alexander Botero-Lowry wrote: > Yes, hooks should be added for search as well. :) Not a bad idea at all. > visual-line-mode turns out to make subject look pretty ugly if there is a > continuation. It doesn't do much good for the citation headers > either. We probably need to do our own intelligent wrapping rather then > use visual-line-mode to make this actually look right. Yes, this stuff isn't perfect yet, but I think it's better than nothing. We can do our own wrapping if these things get too annoying. -Carl From cworth@cworth.org Wed Nov 18 15:22:54 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1C07E431FBF; Wed, 18 Nov 2009 15:22:54 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 ReKN0pUpv+Wg; Wed, 18 Nov 2009 15:22:53 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0F0D8431FBC; Wed, 18 Nov 2009 15:22:53 -0800 (PST) From: Carl Worth To: Chris Wilson , notmuch@notmuchmail.org In-Reply-To: <1258544095-16616-1-git-send-email-chris@chris-wilson.co.uk> References: <1258544095-16616-1-git-send-email-chris@chris-wilson.co.uk> <1258544095-16616-2-git-send-email-chris@chris-wilson.co.uk> Date: Thu, 19 Nov 2009 00:22:38 +0100 Message-ID: <87skcbmn9d.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH 2/2] reply: Pointer mismatch. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 23:22:54 -0000 On Wed, 18 Nov 2009 11:34:54 +0000, Chris Wilson wrote: > Currently the same `pkg-config ...` is executed for every target, so > just store the results in a variable. On Wed, 18 Nov 2009 11:34:55 +0000, Chris Wilson wrote: > Apparently typeof (size_t) != unsigned int on my x86-64. Thanks! Both pushed. -Carl From cworth@cworth.org Wed Nov 18 15:30:23 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id DB03C431FC0; Wed, 18 Nov 2009 15:30:23 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 RPwLLvpFU5z9; Wed, 18 Nov 2009 15:30:23 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 7EDA2431FBC; Wed, 18 Nov 2009 15:30:20 -0800 (PST) From: Carl Worth To: Jan Janak , notmuch@notmuchmail.org In-Reply-To: References: Date: Thu, 19 Nov 2009 00:29:47 +0100 Message-ID: <87r5rvmmxg.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] Why is no. of files from count_files reset to 0? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 23:30:24 -0000 On Wed, 18 Nov 2009 15:36:51 +0100, Jan Janak wrote: > When I comment out the following line (before add_files is called): > > add_files_state.total_files = 0; > > The progress indicator shows the total number of files to be > processed, as well as the time remaining. This is, IMHO, much better, > especially if you process a large collection of emails. > > Is there any reason for having the variable reset to 0 before calling > add_files? Thanks! Just a bug. Thanks for pointing this out. It's fixed now---and it will be nice for new users to have the countdown working once again. -Carl From cworth@cworth.org Wed Nov 18 15:38:17 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2ECAD431FC0; Wed, 18 Nov 2009 15:38:17 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 DuCMP4s-wqtd; Wed, 18 Nov 2009 15:38:16 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2CA94431FBC; Wed, 18 Nov 2009 15:38:15 -0800 (PST) From: Carl Worth To: "Aneesh Kumar K.V" , notmuch In-Reply-To: <87pr7f6fgp.fsf@linux.vnet.ibm.com> References: <87pr7f6fgp.fsf@linux.vnet.ibm.com> Date: Thu, 19 Nov 2009 00:38:01 +0100 Message-ID: <878we376au.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] How to list archived mails X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 23:38:17 -0000 On Wed, 18 Nov 2009 20:35:26 +0530, aneesh.kumar@linux.vnet.ibm.com (Aneesh Kumar K.V) wrote: > Once i mark the mail as archived how do i search for them ? > Right now with notmuch.el i am adding a tag "archive" when > i am archiving the mail. I am just wondering is this the right > way ? You might expect to be able to find all archived messages with: notmuch search not tag:inbox (And if I had written the query parser that would work fine.) But oddly, that fails because in Xapian's query parser the NOT operator is not a unary operator but is instead a binary operator of AND_NOT. I think the lack of a unary not is a bug in Xapian. In the meantime, what we could use here is some syntax for a query that is guaranteed to match all messages. Anyone have any ideas? Meanwhile, if it's not that you're trying to list all archived messages, (which I think would be a rare thing to want), but instead you want all archived messages matching then you can simply do: notmuch search and not tag:inbox I hope that helps. Happy hacking, -Carl From cworth@cworth.org Wed Nov 18 15:44:22 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 34178431FC0; Wed, 18 Nov 2009 15:44:22 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 W3K2jjCxsG4p; Wed, 18 Nov 2009 15:44:21 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3F0E7431FBC; Wed, 18 Nov 2009 15:44:21 -0800 (PST) From: Carl Worth To: "Aneesh Kumar K.V" , notmuch In-Reply-To: <87my2jrhjh.fsf@linux.vnet.ibm.com> References: <87my2jrhjh.fsf@linux.vnet.ibm.com> Date: Thu, 19 Nov 2009 00:44:07 +0100 Message-ID: <877htn760o.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] notmuch: Add hooks for show-mode and search-mode X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 23:44:22 -0000 On Wed, 18 Nov 2009 20:44:58 +0530, aneesh.kumar@linux.vnet.ibm.com (Aneesh Kumar K.V) wrote: > From: Aneesh Kumar K.V > Date: Wed, 18 Nov 2009 20:43:13 +0530 > Subject: [PATCH] notmuch: Add hooks for show-mode and search-mode > > This enables to do things like > > (add-hook 'notmuch-search-mode-hook > (lambda() > (hl-line-mode 1) )) Hi Aneesh, Thanks for the patch. I think the hooks will be genuinely useful. I haven't pushed this yet for two questions: 1. I recently merged an independent patch from Keith to add one hook already. (And it looks like Keith got fancy and used defcustom instead of defvar.) Could you re-do your patch on top of master and match the style he used? [*] 2. If this hl-line-mode thing is interesting for you, might it not be interesting for all users? (What does it do anyway?) One concern I have with hooks is that people will use them to fix things locally and prevent the defaults getting fixed to improve things for everybody. (Granted, sometimes there's an honest difference of opinion, so the defaults can't always satisfy everyone, and we'll want the hooks.) I guess I'm just hoping that people will at least attempt to get improvements to be integrated into the defaults instead of just changing local hooks. -Carl [*] Independently, it might be nice to switch all of our variables intended to be tweaked by the user from defvar to defcustom. From cworth@cworth.org Wed Nov 18 15:51:36 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 00B50431FC0; Wed, 18 Nov 2009 15:51:36 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 lLfhSiItCObh; Wed, 18 Nov 2009 15:51:35 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 04249431FBC; Wed, 18 Nov 2009 15:51:34 -0800 (PST) From: Carl Worth To: Jeffrey Ollie , Not Much Mail In-Reply-To: <935ead450911181150i4bda379bhcebc3ef52844a0a@mail.gmail.com> References: <87k4xnrhfp.fsf@linux.vnet.ibm.com> <935ead450911181150i4bda379bhcebc3ef52844a0a@mail.gmail.com> Date: Thu, 19 Nov 2009 00:51:20 +0100 Message-ID: <87639775on.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] notmuch: Add tag archive when archiving the mails X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 23:51:36 -0000 On Wed, 18 Nov 2009 13:50:58 -0600, Jeffrey Ollie wrote: > On Wed, Nov 18, 2009 at 1:07 PM, Keith Packard wrote: > > I think you can just use 'not tag:inbox' as 'archived' really just means > > 'doesn't have the inbox tag'. > > That resulted in an error for me: > > $ notmuch search not tag:inbox > A Xapian exception occurred: Syntax: NOT > A Xapian exception occurred: Syntax: NOT Like I said earlier. I think that's a bug we should report to the Xapian folks. Meanwhile, it just occurred to me that we can make "notmuch search not tag:inbox" work without any change to Xapian. For every document we store in the database we put a special term on it to indicate its type. (We mostly just have documents of type "mail" but we also have documents of type "timestamp"---see the comment at the top of lib/database.cc for details.) So if we take the string "not tag:inbox" and turn it into "type:mail and not tag:inbox" then that will work just fine. (That's close to what we're doing currently, but different. Right now we try to parse the query "not tag:inbox" on its own and then combine the result with another query generated from a term representing the "mail" type.) -Carl From stewart@flamingspork.com Wed Nov 18 15:52:51 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 26706431FC0 for ; Wed, 18 Nov 2009 15:52:51 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 yoIukPwqu2ye for ; Wed, 18 Nov 2009 15:52:50 -0800 (PST) Received: from kaylee.flamingspork.com (kaylee.flamingspork.com [74.207.245.61]) by olra.theworths.org (Postfix) with ESMTP id 38913431FBF for ; Wed, 18 Nov 2009 15:52:50 -0800 (PST) Received: from willster (localhost [127.0.0.1]) by kaylee.flamingspork.com (Postfix) with ESMTPS id 4DA6C6333; Wed, 18 Nov 2009 23:52:25 +0000 (UTC) Received: from flamingspork.com (localhost.localdomain [127.0.0.1]) by willster (Postfix) with ESMTPS id E07351002045; Thu, 19 Nov 2009 10:45:30 +1100 (EST) Date: Thu, 19 Nov 2009 10:45:28 +1100 From: Stewart Smith To: Carl Worth Message-ID: <20091118234527.GO9315@flamingspork.com> References: <874oorfozb.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874oorfozb.fsf@yoom.home.cworth.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] Mac OS X/Darwin compatibility issues X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 23:52:51 -0000 On Wed, Nov 18, 2009 at 11:27:20PM +0100, Carl Worth wrote: > Yes. I knew I was "cheating" by using some GNU extensions here. I'm > happy to accept portability patches for these things, but it's hard for > me to get excited about writing them myself. > > Care to take a whack at these? http://www.gnu.org/software/gnulib/ could be a partial answer. We've taken to using it where needed for Drizzle and seems to work fine. -- Stewart Smith From cworth@cworth.org Wed Nov 18 16:02:30 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5D0FF431FC2; Wed, 18 Nov 2009 16:02:30 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 M5c-AKJEuygs; Wed, 18 Nov 2009 16:02:29 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 72B6A431FBC; Wed, 18 Nov 2009 16:02:29 -0800 (PST) From: Carl Worth To: Keith Packard , notmuch@notmuchmail.org In-Reply-To: <1258565691-17252-1-git-send-email-keithp@keithp.com> References: <1258565691-17252-1-git-send-email-keithp@keithp.com> Date: Thu, 19 Nov 2009 01:02:15 +0100 Message-ID: <873a4b756g.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] We use the message mail system for new mail, let emacs know. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:02:30 -0000 On Wed, 18 Nov 2009 09:34:51 -0800, Keith Packard wrote: > This makes things like the goto-address system bring up the right > message composition window. Thanks. Pushed. -Carl From aperez@hikari.localdomain Wed Nov 18 16:08:48 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 11FAC431FBF for ; Wed, 18 Nov 2009 16:08:48 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 r9eENtqtINSZ for ; Wed, 18 Nov 2009 16:08:46 -0800 (PST) Received: from alice.connectical.com (alice.connectical.com [208.89.208.235]) by olra.theworths.org (Postfix) with ESMTP id 4BC42431FBC for ; Wed, 18 Nov 2009 16:08:46 -0800 (PST) Received: (qmail 23577 invoked from network); 19 Nov 2009 00:08:13 -0000 Received: from 97.126.60.213.dynamic.mundo-r.com (HELO hikari.localdomain) (aperez@213.60.126.97) by alice.connectical.com with ESMTPA; 19 Nov 2009 00:08:13 -0000 Received: by hikari.localdomain (Postfix, from userid 500) id E573D31DCB60; Thu, 19 Nov 2009 01:07:22 +0100 (CET) From: Adrian Perez To: notmuch@notmuchmail.org Date: Thu, 19 Nov 2009 01:07:22 +0100 Message-Id: <1258589242-4871-1-git-send-email-aperez@igalia.com> X-Mailer: git-send-email 1.6.5.2 Subject: [notmuch] [PATCH] Allow lone "not" search operators X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:08:48 -0000 As suggested by Keith in FLAG_PURE_NOT allows for expressions like: notmuch search NOT tag:inbox Note that this way a search like: notmuch search foobar NOT tag:inbox should not be written instead: notmuch search foobar AND NOT tag:inbox In my opinion, the latter feels more natural and is somewhat more explicit. It gives a better clue of what the search is about instead of assuming that an implicit AND operator is there. --- lib/query.cc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib/query.cc b/lib/query.cc index a869f3e..75f22b3 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -97,7 +97,8 @@ notmuch_query_search_messages (notmuch_query_t *query, Xapian::QueryParser::FLAG_PHRASE | Xapian::QueryParser::FLAG_LOVEHATE | Xapian::QueryParser::FLAG_BOOLEAN_ANY_CASE | - Xapian::QueryParser::FLAG_WILDCARD); + Xapian::QueryParser::FLAG_WILDCARD | + Xapian::QueryParser::FLAG_PURE_NOT); if (strcmp (query_string, "") == 0) { final_query = mail_query; -- 1.6.5.2 From alex.boterolowry@gmail.com Wed Nov 18 16:24:55 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 399FA431FBF for ; Wed, 18 Nov 2009 16:24:55 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 eWKv8uBeEQOD for ; Wed, 18 Nov 2009 16:24:55 -0800 (PST) Received: from mail-yx0-f204.google.com (mail-yx0-f204.google.com [209.85.210.204]) by olra.theworths.org (Postfix) with ESMTP id 134E4431FBC for ; Wed, 18 Nov 2009 16:24:55 -0800 (PST) Received: by yxe42 with SMTP id 42so1832481yxe.22 for ; Wed, 18 Nov 2009 16:24:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :in-reply-to:references:date:message-id:mime-version:content-type; bh=iMDsajYVtWPzRe7bSXRYP2yksbB58Z0NZ2/1KXFwrcQ=; b=WZMzgB7L6xTSPCwd7Si3SxFplMbWJ/bWyNqF3DZF3o3t9epp5wzdkmia59BpJMERt4 7a/PHPq8KCr70c/khBjdbo39uXBgLj8cKMAu/6qXk9usLlGdrwX1B0vZuqpnQWH682wK 9AjclevV1whVjHMvnBVfeMp/2wBNRJ8lq0j1U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; b=MRmVuOt/X/5BcyN7zW3o1iqaGzYADp3+qu3NWVPlansyDd+bD6/M5Uzl5b6wZVBJOQ 4o3eKzY2c3o5+kSceWY4rUP8ZpYP/rtYwIP8QcNvtVZO59cljxnKZs2Z06e+bd6srGIA WVkooLQAhHxeGlPRLo+DfAkJUEBVtmfAImjAY= Received: by 10.90.12.19 with SMTP id 19mr3199213agl.96.1258590284428; Wed, 18 Nov 2009 16:24:44 -0800 (PST) Received: from fortitudo (nat09.metaweb.com [208.68.111.136]) by mx.google.com with ESMTPS id 6sm12307yxg.12.2009.11.18.16.24.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 16:24:43 -0800 (PST) Received: from alexbl (uid 1001) (envelope-from alexbl@fortitudo.i-did-not-set--mail-host-address--so-tickle-me) id 7091 by fortitudo (DragonFly Mail Agent) Wed, 18 Nov 2009 16:24:42 -0800 From: Alexander Botero-Lowry To: Stewart Smith , Carl Worth In-Reply-To: <20091118234527.GO9315@flamingspork.com> References: <874oorfozb.fsf@yoom.home.cworth.org> <20091118234527.GO9315@flamingspork.com> Date: Wed, 18 Nov 2009 16:24:42 -0800 Message-ID: <86vdh7cqet.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] Mac OS X/Darwin compatibility issues X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:24:55 -0000 On Thu, 19 Nov 2009 10:45:28 +1100, Stewart Smith wrote: > On Wed, Nov 18, 2009 at 11:27:20PM +0100, Carl Worth wrote: > > Yes. I knew I was "cheating" by using some GNU extensions here. I'm > > happy to accept portability patches for these things, but it's hard for > > me to get excited about writing them myself. > > > > Care to take a whack at these? > > http://www.gnu.org/software/gnulib/ > > could be a partial answer. > Why add yet another dependency for a couple of functions? Especially considering how notmuch already depends on glib which includes portability functions for various things. alex From cworth@cworth.org Wed Nov 18 16:25:50 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C454D431FC0; Wed, 18 Nov 2009 16:25:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 ifeMnPN6BzE3; Wed, 18 Nov 2009 16:25:50 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 32941431FBC; Wed, 18 Nov 2009 16:25:49 -0800 (PST) From: Carl Worth To: Keith Packard , notmuch@notmuchmail.org In-Reply-To: References: <1258493565-13508-1-git-send-email-keithp@keithp.com> <87k4xoqgnl.fsf@yoom.home.cworth.org> Date: Thu, 19 Nov 2009 01:25:34 +0100 Message-ID: <87y6m35pj5.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:25:51 -0000 On Wed, 18 Nov 2009 09:45:01 -0800, Keith Packard wrote: > On Wed, 18 Nov 2009 02:19:26 -0800, Carl Worth wrote: > You can use kill-buffer directly (C-X k); adding a new special binding > for that command seems unnecessary to me. Well, that's "Control, X, K, Enter", so quite a bit harder than just 'x'. :-) But fine, I could move my convenience for "kill buffer" to just 'k'. I think I'd like to see a better mapping for "archive and kill buffer" to a key other than 'x'. Any ideas? > My mail flow doesn't involve moving directly from one message to the > next; I go back to the index after reviewing each one; there isn't a way > to mark a buffer as read/archived and *not* view another message OK, that's definitely different than me. Let me at least explain a couple of parts of my flow, (not intended to try to convince you to use it---just to explain): 1. Before I go into "read a bunch of messages with spacebar" mode I first arrange for filtered search results that I know I want to read all together. Most frequently this involves bringing up the inbox, and then hitting 't' for filter-to-tag and choosing a tag of mail that's all interesting, (like the "to-me" tag that gets applied automatically[*] to all mail addressed to me individually). 2. When I archive a thread with 'a', I'm not necessarily always planning to read the next message (just because notmuch is presenting it to me). And if not, I'll just press 'x' right away. a. An important point here is that that "undesired" presentation of a message results in no state changes. In far too many other email programs I've used, deleting one message causes another one to be displayed and *that* message gets immediately marked "unread" forcing me to read it immediately or risk losing it. Not nice. b. Sometimes, even if I wasn't really planning in advance to read the mail, just having it appear does encourage me to read it, (but with no risk if I choose not to---unlike the broken mailer I described above). So here's one way that notmuch encourages me to mow through my pending mail quickly. 3. There's one entirely different mode I use. The above is for a collection of "mostly interesting" messages where I want to at least see them all. The other mode is "mostly uninteresting" messages where I can take care of most everything from the search view, (and maybe just pop into one or two messages). Here your, 'archive and exit' key might be useful, but my 'exit without archiving' works fine too. The reason is that after I look at the one or two interesting messages, the next thing I'll do is to archive away all the messages from the search view. Of course, for this I need an "archive all" binding that doesn't exist yet. And I also really need to fix the Xapian bug so that archiving 100 threads doesn't take *forever* like it does currently. Anyway, thanks for letting me ramble a bit about how I deal with mail. -Carl [*] I'm currently getting "automatic" tags via a script (which I've named notmuch-poll) that calls "notmuch new" and then calls a bunch of "notmuch tag" commands not unlike the following: notmuch tag +notmuch to:notmuchmail.org and not tag:notmuch From cworth@cworth.org Wed Nov 18 16:31:39 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8D3D3431FC0; Wed, 18 Nov 2009 16:31:39 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 gWHHkHIbO-6l; Wed, 18 Nov 2009 16:31:38 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 64CDF431FBC; Wed, 18 Nov 2009 16:31:38 -0800 (PST) From: Carl Worth To: Joshua Roys , notmuch@notmuchmail.org In-Reply-To: <1258573402-16750-1-git-send-email-roysjosh@gmail.com> References: <1258573402-16750-1-git-send-email-roysjosh@gmail.com> Date: Thu, 19 Nov 2009 01:31:24 +0100 Message-ID: <87ws1n5p9f.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Fix a compile warning under gcc-4.4.1 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:31:39 -0000 On Wed, 18 Nov 2009 14:43:22 -0500, Joshua Roys wrote: > --- > Hello, > This fixes the following for me: Thanks so much for the report and patch, Joshua. This bug was recently fixed in a commit pushed out to the notmuch repository. Happy hacking, -Carl From cworth@cworth.org Wed Nov 18 16:32:11 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 55B69431FC0; Wed, 18 Nov 2009 16:32:11 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 M+fRQsA6oIX1; Wed, 18 Nov 2009 16:32:10 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4779C431FBC; Wed, 18 Nov 2009 16:32:10 -0800 (PST) From: Carl Worth To: Keith Packard , notmuch@notmuchmail.org In-Reply-To: <1258574173-19911-1-git-send-email-keithp@keithp.com> References: <1258574173-19911-1-git-send-email-keithp@keithp.com> Date: Thu, 19 Nov 2009 01:31:56 +0100 Message-ID: <87vdh75p8j.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Filter out carriage-returns in show and reply output. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:32:11 -0000 On Wed, 18 Nov 2009 11:56:13 -0800, Keith Packard wrote: > Thanks, windows mail clients. Very nice to have. Pushed. -Carl From aperez@igalia.com Wed Nov 18 16:32:44 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6B71B431FBF for ; Wed, 18 Nov 2009 16:32:44 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 joOtlurkbY1w for ; Wed, 18 Nov 2009 16:32:43 -0800 (PST) Received: from alice.connectical.com (alice.connectical.com [208.89.208.235]) by olra.theworths.org (Postfix) with ESMTP id B3BAA431FBC for ; Wed, 18 Nov 2009 16:32:43 -0800 (PST) Received: (qmail 17967 invoked from network); 19 Nov 2009 00:32:42 -0000 Received: from 97.126.60.213.dynamic.mundo-r.com (HELO hikari.localdomain) (aperez@213.60.126.97) by alice.connectical.com with ESMTPA; 19 Nov 2009 00:32:42 -0000 Received: from hikari (localhost [127.0.0.1]) by hikari.localdomain (Postfix) with ESMTP id DF16631DCB60 for ; Thu, 19 Nov 2009 01:32:40 +0100 (CET) Date: Thu, 19 Nov 2009 01:32:30 +0100 From: Adrian Perez de Castro To: notmuch@notmuchmail.org Message-ID: <20091119013230.5a9c29e5@hikari> Organization: Igalia X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.3; x86_64-redhat-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAADBQTFRFBwcHFhYWKCgoNzc3SEhIV1dXaGhod3d3iIiIlpaWqKiouLi4x8fH2NjY5+fn/v7+rSjDkgAAAjVJREFUOE9l07tvE0EQwOHfrkV9O+eko7g701BBfECJsIigT2IpooIqaSiRUEB0REj00FBQgYSCkhry+gecUPJybJeIxLumTbilsH2PMNXufDOa3ZVW+1JkpbUmD/8+vXR3c7or4Gz93mH309Kz8/C9/RQge7VfhW/LW+PF8IkrQ7Z6OKmQr1tl+LU/yWP9mxJka9O88fZHPwf/7u0kLyCnX3I4fQhgjAgIfi+HHw5A1Y2ggIMcFKAEnRoL0M3BosI4TI2IATjuT8DvSNJoNNJgkIhxlr9TUHeSpDnfohlIrMBlU+BGmsZqfr69FMfGMw4NoG835+J62riWyjQ/uXlTQjNUIoYegMsBM0pCD8oDas7n4HQsBghXFxJTW42KDs+4XLfjsN0wOYgABqARjMKIHIaAQnmHjsI5Cvi9Cf6k03OoWBkpIP3Q7354+dEimFBKHbMP9oKjwfd9gbrxR5KDToczK4uPF8UgNomKU2GaENRi77zyDKICxKBS4xXYbONPMQMdYZTBwMiMWiUg9g6UJ3OBogzjV8E7sBVwyvfAOYdQhsABzuOxI1MGZbs98Q6Md5UOfbbR2R0eWOesrnRw5ajT6f60LrNhWIHZpBnUWv2s14ukArWWTqTes3YQxRXgFkcMu70TPYqqUBs0YwmO967OVIdTG4bY4a7WLaqgLm5vbHdH5np0Dri//fmg7y8scB4u3+zsuNlH0X+g19bby69b+TYH6isvns8VdQWgxj9tHP8AR5/hSdYqkwsAAAAASUVORK5CYII= Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/hI/8O=bEOMJudOaPx/zdDH4"; protocol="application/pgp-signature" Subject: [notmuch] Fw: Introducing myself X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:32:44 -0000 --Sig_/hI/8O=bEOMJudOaPx/zdDH4 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable (Re-injecting this one in the list... it was my fault in reality because I sent two copies, one to the list and another to Carl, so he replied to me directly. It would have been enough to send my mail to the list -- I am sorry a lot for the noise) Begin forwarded message: Date: Thu, 19 Nov 2009 00:58:38 +0100 From: Carl Worth To: Adrian Perez de Castro Subject: Re: [notmuch] Introducing myself On Wed, 18 Nov 2009 16:47:06 +0100, Adrian Perez de Castro wrote: > On Wed, 18 Nov 2009 03:15:31 -0800, Carl wrote: > > I tried the "notmuch.el" Emacs mode, and have just installed Emacs in > order to be able to try it out. As I have been using Vim for the last ~9 > years, probably that was the reason why I found it not very comfortable. Wow, you're brave to give it a shot. And I'm glad that you were able to work your way through it. > I showed the thing to my work mates this morning and most of them said > that they would like to have Mutt-like keybindings *with* Not Much's > search and tagging running behind it. Any long-time mutt users want to suggest keybindings? I've mostly been making stuff up as I go (with some influence from sup), but I think it's early enough that I could still re-train my muscles. Get your votes in now for your favorite keybindings. > I also think it would be great to have a curses-based UI, so this may > be a good opportunity to start doing some serious coding with it in my > spare time. Sounds great. I would feel just fine seeing lots of interfaces built up around the notmuch search and tagging. I do hope people doing custom interfaces will consider implementing some of the things that I happen to consider part of the "notmuch experience", (viewing an entire, nested thread at once with citations/signatures elided---this feature comes exactly from sup; and my magic space-bar for reading lots of mail with only one key---though the most important part here is to not archive a message until it is paged *off* the screen---as opposed to many emailers that mark a message as "read" as soon as any of the message appears on the screen). Of course, if you're doing your own interface, then you get to do whatever you want. But I hope you might at least consider those ideas. Happy hacking! -Carl --=20 Adrian Perez de Castro Igalia - Free Software Engineering --Sig_/hI/8O=bEOMJudOaPx/zdDH4 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) iEYEARECAAYFAksEkicACgkQkcVZ2+TJEjuMIACfd4GFhEiHDhj1r7Vjz/CalcBJ ymcAnA/ZaqxKvdhmvrCbQMUvWVnp3e9+ =1tVh -----END PGP SIGNATURE----- --Sig_/hI/8O=bEOMJudOaPx/zdDH4-- From cworth@cworth.org Wed Nov 18 16:35:09 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 67FE1431FC0; Wed, 18 Nov 2009 16:35:09 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 MQAKwGb5WXTC; Wed, 18 Nov 2009 16:35:08 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 80A9C431FBC; Wed, 18 Nov 2009 16:35:08 -0800 (PST) From: Carl Worth To: Keith Packard , notmuch@notmuchmail.org In-Reply-To: <1258580758-24474-1-git-send-email-keithp@keithp.com> References: <1258580758-24474-1-git-send-email-keithp@keithp.com> Date: Thu, 19 Nov 2009 01:34:54 +0100 Message-ID: <87tywr5p3l.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Make reply/show/tag all require at least one search term X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:35:09 -0000 On Wed, 18 Nov 2009 13:45:58 -0800, Keith Packard wrote: > In particular, notmuch tag -inbox "" tended to take a long time to > run, happened if you hit 'a' on a blank line in the search view and > probably didn't have the desired effect. Another nice fix. Thanks again. This is pushed. -Carl From jan@iptel.org Wed Nov 18 16:37:31 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 710FC431FBF for ; Wed, 18 Nov 2009 16:37:31 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 FxVeyo4NEuzX for ; Wed, 18 Nov 2009 16:37:30 -0800 (PST) Received: from mail.iptel.org (smtp.iptel.org [213.192.59.67]) by olra.theworths.org (Postfix) with ESMTP id ACF0D431FBC for ; Wed, 18 Nov 2009 16:37:30 -0800 (PST) Received: by mail.iptel.org (Postfix, from userid 103) id 1EAA63707E1; Thu, 19 Nov 2009 01:37:27 +0100 (CET) Received: from x61s.janakj (r2c34.net.upc.cz [62.245.66.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.iptel.org (Postfix) with ESMTPSA id B33C03707BE for ; Thu, 19 Nov 2009 01:37:26 +0100 (CET) Received: by x61s.janakj (Postfix, from userid 1000) id DF4B3440655; Thu, 19 Nov 2009 01:37:25 +0100 (CET) From: Jan Janak To: notmuch@notmuchmail.org Date: Thu, 19 Nov 2009 01:37:25 +0100 Message-Id: <1258591045-16494-1-git-send-email-jan@ryngle.com> X-Mailer: git-send-email 1.6.3.3 Subject: [notmuch] [PATCH] Makefile: Make object targets depend on Makefiles X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:37:31 -0000 All objects need to be recompiled when any of the Makefiles changes, so we make them all depend on all the Makefiles. Signed-off-by: Jan Janak --- Makefile | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 96aaa73..2787aff 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,9 @@ CFLAGS=-O2 extra_cflags = `pkg-config --cflags glib-2.0 gmime-2.4 talloc` extra_cxxflags = `xapian-config --cxxflags` +all_deps = Makefile Makefile.local Makefile.config \ + lib/Makefile lib/Makefile.local + # Now smash together user's values with our extra values override CFLAGS += $(WARN_FLAGS) $(extra_cflags) override CXXFLAGS += $(WARN_FLAGS) $(extra_cflags) $(extra_cxxflags) @@ -21,19 +24,19 @@ include lib/Makefile.local # And get user settings from the output of configure include Makefile.config -%.o: %.cc +%.o: %.cc $(all_deps) $(CXX) -c $(CFLAGS) $(CXXFLAGS) $< -o $@ -%.o: %.c +%.o: %.c $(all_deps) $(CC) -c $(CFLAGS) $< -o $@ -.deps/%.d: %.c +.deps/%.d: %.c $(all_deps) @set -e; rm -f $@; mkdir -p $$(dirname $@) ; \ $(CC) -M $(CPPFLAGS) $(CFLAGS) $< > $@.$$$$; \ sed 's,'$$(basename $*)'\.o[ :]*,$*.o $@ : ,g' < $@.$$$$ > $@; \ rm -f $@.$$$$ -.deps/%.d: %.cc +.deps/%.d: %.cc $(all_deps) @set -e; rm -f $@; mkdir -p $$(dirname $@) ; \ $(CXX) -M $(CPPFLAGS) $(CXXFLAGS) $< > $@.$$$$; \ sed 's,'$$(basename $*)'\.o[ :]*,$*.o $@ : ,g' < $@.$$$$ > $@; \ -- 1.6.3.3 From keithp@keithp.com Wed Nov 18 16:43:24 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 75AF6431FC0 for ; Wed, 18 Nov 2009 16:43:24 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 Wfu-wHj0+CxM for ; Wed, 18 Nov 2009 16:43:23 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 97CAD431FBF for ; Wed, 18 Nov 2009 16:43:23 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id C38F3B9404B; Wed, 18 Nov 2009 16:43:22 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uz4avRnoGR2I; Wed, 18 Nov 2009 16:43:19 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id 95E6EB9402F; Wed, 18 Nov 2009 16:43:19 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 8A3A2B88003; Wed, 18 Nov 2009 16:43:19 -0800 (PST) From: Keith Packard To: Carl Worth , notmuch@notmuchmail.org In-Reply-To: <87y6m35pj5.fsf@yoom.home.cworth.org> References: <1258493565-13508-1-git-send-email-keithp@keithp.com> <87k4xoqgnl.fsf@yoom.home.cworth.org> <87y6m35pj5.fsf@yoom.home.cworth.org> Date: Wed, 18 Nov 2009 16:43:18 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:43:24 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 19 Nov 2009 01:25:34 +0100, Carl Worth wrote: > On Wed, 18 Nov 2009 09:45:01 -0800, Keith Packard wro= te: > > On Wed, 18 Nov 2009 02:19:26 -0800, Carl Worth wrot= e: > > You can use kill-buffer directly (C-X k); adding a new special binding > > for that command seems unnecessary to me. >=20 > Well, that's "Control, X, K, Enter", so quite a bit harder than just > 'x'. :-) I'd forgotten about the 'q' binding, which used to be the same as 'x' and is now different. Similar to how fdisk differentiates between 'q'uit without saving changes and 'w'rite table to disk and exit. > But fine, I could move my convenience for "kill buffer" to just 'k'. You've got 'q' already :-) > I think I'd like to see a better mapping for "archive and kill buffer" > to a key other than 'x'. Any ideas? I'm up for almost anything; but I'd have to retrain my fingers to use it instead of 'x' :-) > 1. Before I go into "read a bunch of messages with spacebar" mode I > first arrange for filtered search results that I know I want to read > all together. I generally do the same, but don't read mail in time sequence. One of the reasons I like the threaded reading mode is that I don't *have* to read mail in time sequence as I can review a thread and see the time ordering of the messages within that. > 2. When I archive a thread with 'a', I'm not necessarily always planning > to read the next message (just because notmuch is presenting it to > me). And if not, I'll just press 'x' right away. Right, if you use the 'a' key to flip to a new message, you probably don't want to use 'x' on the final (and still essentially ignored) message. > Of course, for this I need an "archive all" binding that > doesn't exist yet. And I also really need to fix the Xapian bug so > that archiving 100 threads doesn't take *forever* like it does > currently. yes, please! I'd even be willing to wait at this point... =2D- keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLBJSnQp8BWwlsTdMRAmtPAJ0Rr8LJsShAhO+foO4DOYsL0KOQLwCfQdBG FQGvhpS+dFNK5SU5Lzwox1A= =ED0n -----END PGP SIGNATURE----- --=-=-=-- From cworth@cworth.org Wed Nov 18 16:46:03 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 57FFB431FC0; Wed, 18 Nov 2009 16:46:03 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 5K+ndKzBOXmA; Wed, 18 Nov 2009 16:46:02 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0D74D431FBC; Wed, 18 Nov 2009 16:46:02 -0800 (PST) From: Carl Worth To: Adrian Perez , notmuch@notmuchmail.org In-Reply-To: <1258589242-4871-1-git-send-email-aperez@igalia.com> References: <1258589242-4871-1-git-send-email-aperez@igalia.com> Date: Thu, 19 Nov 2009 01:45:47 +0100 Message-ID: <87skcb5olg.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Allow lone "not" search operators X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:46:03 -0000 On Thu, 19 Nov 2009 01:07:22 +0100, Adrian Perez wrote: > As suggested by Keith in FLAG_PURE_NOT allows for expressions like: > > notmuch search NOT tag:inbox Oh, fantastic! I guess I'd run into enough QueryParser bugs recently that I was willing to blame it without cause this time. And I *thought* I had looked carefully at all the QueryParser tags to choose all the useful ones, but clearly I missed this one. Anyway, thanks for the research and the fix. This is pushed now. Happy hacking, -Carl From cworth@cworth.org Wed Nov 18 16:50:47 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 310EE431FC0; Wed, 18 Nov 2009 16:50:47 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 dax1k1G4914d; Wed, 18 Nov 2009 16:50:46 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E4886431FBC; Wed, 18 Nov 2009 16:50:45 -0800 (PST) From: Carl Worth To: "Aneesh Kumar K.V" , notmuch In-Reply-To: <878we376au.fsf@yoom.home.cworth.org> References: <87pr7f6fgp.fsf@linux.vnet.ibm.com> <878we376au.fsf@yoom.home.cworth.org> Date: Thu, 19 Nov 2009 01:50:31 +0100 Message-ID: <87hbsr72y0.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] How to list archived mails X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:50:47 -0000 On Thu, 19 Nov 2009 00:38:01 +0100, Carl Worth wrote: > On Wed, 18 Nov 2009 20:35:26 +0530, aneesh.kumar@linux.vnet.ibm.com (Aneesh Kumar K.V) wrote: > > Once i mark the mail as archived how do i search for them ? > > Right now with notmuch.el i am adding a tag "archive" when > > i am archiving the mail. I am just wondering is this the right > > way ? > > You might expect to be able to find all archived messages with: > > notmuch search not tag:inbox And now you can ignore everything else I said after this. Adrian Perez just discovered that we just weren't enabling an option in Xapian to allow this syntax to work. His commit is pushed, so now if you update your source *can* you use the above syntax and it should work just fine. Happy hacking, -Carl From cworth@cworth.org Wed Nov 18 16:52:06 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C282A431FC0; Wed, 18 Nov 2009 16:52:06 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 haI9EDumoZlB; Wed, 18 Nov 2009 16:52:06 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D70E2431FBC; Wed, 18 Nov 2009 16:52:05 -0800 (PST) From: Carl Worth To: Ingmar Vanhassel , notmuch@notmuchmail.org In-Reply-To: <1258584640-29221-1-git-send-email-ingmar@exherbo.org> References: <1258584640-29221-1-git-send-email-ingmar@exherbo.org> Date: Thu, 19 Nov 2009 01:51:51 +0100 Message-ID: <87fx8b72vs.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH 1/2] zsh: Initial zsh-completion for notmuch X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:52:06 -0000 On Wed, 18 Nov 2009 23:50:40 +0100, Ingmar Vanhassel wrote: > Signed-off-by: Ingmar Vanhassel > --- > _notmuch | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 74 insertions(+), 0 deletions(-) > create mode 100644 _notmuch Looks nice. Could you also add a Makefile.local target to install this in the right place so that it actually does something? And I'd like it to have a more descriptive name in the source tree (such as notmuch-completion.zsh). Thanks, -Carl From aperez@igalia.com Wed Nov 18 16:57:11 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9C1F7431FBF for ; Wed, 18 Nov 2009 16:57:11 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 fU-v00vpw+PA for ; Wed, 18 Nov 2009 16:57:11 -0800 (PST) Received: from alice.connectical.com (alice.connectical.com [208.89.208.235]) by olra.theworths.org (Postfix) with ESMTP id 04869431FBC for ; Wed, 18 Nov 2009 16:57:11 -0800 (PST) Received: (qmail 13555 invoked from network); 19 Nov 2009 00:57:09 -0000 Received: from 97.126.60.213.dynamic.mundo-r.com (HELO hikari.localdomain) (aperez@213.60.126.97) by alice.connectical.com with ESMTPA; 19 Nov 2009 00:57:09 -0000 Received: from hikari (localhost [127.0.0.1]) by hikari.localdomain (Postfix) with ESMTP id 7712C31DCB60 for ; Thu, 19 Nov 2009 01:57:08 +0100 (CET) Date: Thu, 19 Nov 2009 01:57:07 +0100 From: Adrian Perez de Castro To: notmuch@notmuchmail.org Message-ID: <20091119015707.1ab22e66@hikari> In-Reply-To: <20091119013230.5a9c29e5@hikari> References: <20091119013230.5a9c29e5@hikari> Organization: Igalia X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.3; x86_64-redhat-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAADBQTFRFBwcHFhYWKCgoNzc3SEhIV1dXaGhod3d3iIiIlpaWqKiouLi4x8fH2NjY5+fn/v7+rSjDkgAAAjVJREFUOE9l07tvE0EQwOHfrkV9O+eko7g701BBfECJsIigT2IpooIqaSiRUEB0REj00FBQgYSCkhry+gecUPJybJeIxLumTbilsH2PMNXufDOa3ZVW+1JkpbUmD/8+vXR3c7or4Gz93mH309Kz8/C9/RQge7VfhW/LW+PF8IkrQ7Z6OKmQr1tl+LU/yWP9mxJka9O88fZHPwf/7u0kLyCnX3I4fQhgjAgIfi+HHw5A1Y2ggIMcFKAEnRoL0M3BosI4TI2IATjuT8DvSNJoNNJgkIhxlr9TUHeSpDnfohlIrMBlU+BGmsZqfr69FMfGMw4NoG835+J62riWyjQ/uXlTQjNUIoYegMsBM0pCD8oDas7n4HQsBghXFxJTW42KDs+4XLfjsN0wOYgABqARjMKIHIaAQnmHjsI5Cvi9Cf6k03OoWBkpIP3Q7354+dEimFBKHbMP9oKjwfd9gbrxR5KDToczK4uPF8UgNomKU2GaENRi77zyDKICxKBS4xXYbONPMQMdYZTBwMiMWiUg9g6UJ3OBogzjV8E7sBVwyvfAOYdQhsABzuOxI1MGZbs98Q6Md5UOfbbR2R0eWOesrnRw5ajT6f60LrNhWIHZpBnUWv2s14ukArWWTqTes3YQxRXgFkcMu70TPYqqUBs0YwmO967OVIdTG4bY4a7WLaqgLm5vbHdH5np0Dri//fmg7y8scB4u3+zsuNlH0X+g19bby69b+TYH6isvns8VdQWgxj9tHP8AR5/hSdYqkwsAAAAASUVORK5CYII= Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/1qwewv7g0WBV+i+el+Mq2Bf"; protocol="application/pgp-signature" Subject: Re: [notmuch] Fw: Introducing myself X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 00:57:11 -0000 --Sig_/1qwewv7g0WBV+i+el+Mq2Bf Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 19 Nov 2009 01:32:30 +0100, Adrian wrote: > (Re-injecting this one in the list... it was my fault in reality because I > sent two copies, one to the list and another to Carl, so he replied to me > directly. It would have been enough to send my mail to the list -- I am > sorry a lot for the noise) >=20 > Begin forwarded message: >=20 > Date: Thu, 19 Nov 2009 00:58:38 +0100 > From: Carl Worth > To: Adrian Perez de Castro > Subject: Re: [notmuch] Introducing myself >=20 >=20 > On Wed, 18 Nov 2009 16:47:06 +0100, Adrian Perez de Castro > wrote: > > On Wed, 18 Nov 2009 03:15:31 -0800, Carl wrote: > > > > I tried the "notmuch.el" Emacs mode, and have just installed Emacs in > > order to be able to try it out. As I have been using Vim for the last ~9 > > years, probably that was the reason why I found it not very comfortable. >=20 > Wow, you're brave to give it a shot. And I'm glad that you were able to > work your way through it. After trying things a bit with some copied mailboxes, I am planning now on moving away from Claws-Mail... so Emacs will be sitting here for a while :D > > I also think it would be great to have a curses-based UI, so this may > > be a good opportunity to start doing some serious coding with it in my > > spare time. >=20 > Sounds great. I would feel just fine seeing lots of interfaces built up > around the notmuch search and tagging. Me too, and all sharing the same index. > [...] I do hope people doing custom > interfaces will consider implementing some of the things that I happen > to consider part of the "notmuch experience", (viewing an entire, nested > thread at once with citations/signatures elided---this feature comes > exactly from sup; and my magic space-bar for reading lots of mail with > only one key---though the most important part here is to not archive a > message until it is paged *off* the screen---as opposed to many emailers > that mark a message as "read" as soon as any of the message appears on > the screen). >=20 > Of course, if you're doing your own interface, then you get to do > whatever you want. But I hope you might at least consider those ideas. I am not totally sure about the elusion of citation and signatures, but that can be an user setting. My favourite feature is not marking messages as read until one decides to do so. For the rest of the lot, I agree that they should be there as well. Best regards, [1] http://fdm.sourceforge.net/ --=20 Adrian Perez de Castro Igalia - Free Software Engineering --Sig_/1qwewv7g0WBV+i+el+Mq2Bf Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) iEYEARECAAYFAksEl+MACgkQkcVZ2+TJEjs1kACfQ9ZPm7m2pM2ZVRWt0OW8DPAc LmQAnjqWAjc8wjM+BGexUxiKClmTuZiu =MZuJ -----END PGP SIGNATURE----- --Sig_/1qwewv7g0WBV+i+el+Mq2Bf-- From ingmar@exherbo.org Wed Nov 18 17:00:57 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 67349431FBF for ; Wed, 18 Nov 2009 17:00:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 RRCUbNuIas-U for ; Wed, 18 Nov 2009 17:00:56 -0800 (PST) Received: from bach.exherbo.org (bach.exherbo.org [78.47.197.147]) by olra.theworths.org (Postfix) with ESMTP id EAE60431FBC for ; Wed, 18 Nov 2009 17:00:55 -0800 (PST) Received: from [83.101.72.69] (helo=localhost) by bach.exherbo.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NAvOI-0005hS-HQ; Thu, 19 Nov 2009 01:00:55 +0000 Content-Type: text/plain; charset=utf8 From: Ingmar Vanhassel To: Carl Worth In-reply-to: <87fx8b72vs.fsf@yoom.home.cworth.org> References: <1258584640-29221-1-git-send-email-ingmar@exherbo.org> <87fx8b72vs.fsf@yoom.home.cworth.org> Date: Thu, 19 Nov 2009 02:00:48 +0100 Message-Id: <1258592310-sup-6625@cannonball> User-Agent: Sup/git Content-Transfer-Encoding: 8bit Cc: notmuch Subject: Re: [notmuch] [PATCH 1/2] zsh: Initial zsh-completion for notmuch X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 01:00:57 -0000 Excerpts from Carl Worth's message of Thu Nov 19 01:51:51 +0100 2009: > On Wed, 18 Nov 2009 23:50:40 +0100, Ingmar Vanhassel wrote: > > Signed-off-by: Ingmar Vanhassel > > --- > > _notmuch | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > 1 files changed, 74 insertions(+), 0 deletions(-) > > create mode 100644 _notmuch > > Looks nice. Could you also add a Makefile.local target to install this > in the right place so that it actually does something? Sure, any suggestions on the name? Or did you mean to add it to the install target? > And I'd like it to have a more descriptive name in the source tree (such > as notmuch-completion.zsh). Alright, will do. I just named it what it'll be installed as, but either works. > Thanks, > > -Carl -- Exherbo KDE, X.org maintainer From cworth@cworth.org Wed Nov 18 17:03:31 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C5B47431FC2; Wed, 18 Nov 2009 17:03:31 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 rBxDkWoglNXZ; Wed, 18 Nov 2009 17:03:31 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id DFC49431FBF; Wed, 18 Nov 2009 17:03:30 -0800 (PST) From: Carl Worth To: "Jeffrey C. Ollie" , Not Much Mail In-Reply-To: <1258569114-16034-1-git-send-email-jeff@ocjtech.us> References: <1258569114-16034-1-git-send-email-jeff@ocjtech.us> Date: Thu, 19 Nov 2009 02:03:16 +0100 Message-ID: <87einv72cr.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] RPM spec file X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 01:03:32 -0000 On Wed, 18 Nov 2009 12:31:53 -0600, "Jeffrey C. Ollie" wrote: > I prefere managing all of the software on my system with RPM, so I > came up with a quick spec file for building RPMS. Once notmuch > settles down and I continue using it I may submit notmuch to Fedora as > an official package. If you'd like your own RPMS build your own, I > don't plan on offering a repository of binary packages. This sounds great, Jeffrey. What makes the most sense for this file? Shall we just leave it in the central repository? Or put it in its own rpm branch? I'm open to your suggestions here. -Carl From cworth@cworth.org Wed Nov 18 17:06:56 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 25380431FC0; Wed, 18 Nov 2009 17:06:56 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 krKsjJWkmAJM; Wed, 18 Nov 2009 17:06:55 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C5119431FAE; Wed, 18 Nov 2009 17:06:54 -0800 (PST) From: Carl Worth To: Alexander Botero-Lowry , notmuch@notmuchmail.org In-Reply-To: <87zl6j94p6.fsf@yoom.home.cworth.org> References: <86aayk2rbj.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> <87zl6j94p6.fsf@yoom.home.cworth.org> Date: Thu, 19 Nov 2009 02:06:40 +0100 Message-ID: <87d43f7273.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] request for pull X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 01:06:56 -0000 On Wed, 18 Nov 2009 08:29:41 -0800, Carl Worth wrote: > On Wed, 18 Nov 2009 00:02:56 -0800, Alexander Botero-Lowry wrote: > > The following changes since commit e8c9c3e6a534fc6c2919c2c1de63cea7250eb488: > > > > are available in the git repository at: > > > > git://alexbl.net/notmuch.git master ... > Well, that's what I have a "todo" tag for. So I'll look at this later > when I've got internet access again. (But I believe the first commit is > already addressed independently.) > > BTW, thanks for the patches! Looks like by the time I got back there's nothing left to get here, (presumably the changes got pushed up separately). But I've at least got your repository as a "git remote" now, and after I'm done travelling this week I'll have a stable internet connection and pull requests will be easier to handle. Happy hacking, -Carl From cworth@cworth.org Wed Nov 18 17:08:30 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D87DC431FC7; Wed, 18 Nov 2009 17:08:30 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 6tlv959k5CTc; Wed, 18 Nov 2009 17:08:30 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id AEF69431FAE; Wed, 18 Nov 2009 17:08:29 -0800 (PST) From: Carl Worth To: Mikhail Gusarov , notmuch@notmuchmail.org In-Reply-To: <1258491078-29658-1-git-send-email-dottedmag@dottedmag.net> References: <1258491078-29658-1-git-send-email-dottedmag@dottedmag.net> Date: Thu, 19 Nov 2009 02:08:15 +0100 Message-ID: <87bpiz724g.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Handle rename of message file X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 01:08:31 -0000 On Wed, 18 Nov 2009 02:51:18 +0600, Mikhail Gusarov wrote: > If message file has been renamed, just update filename in the DB. > > Signed-off-by: Mikhail Gusarov I believe you said in IRC that this patch is not ready yet. I'd love to hear more from you on any experiments/ideas you have in this area. It would be a really nice feature to have, (particularly for people who are experimenting with notmuch while still using some other primary email program that keeps fiddling with the filenames). -Carl From dottedmag@dottedmag.net Wed Nov 18 17:14:49 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 782F0431FAE for ; Wed, 18 Nov 2009 17:14:49 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 m2SQx2dY4mjr for ; Wed, 18 Nov 2009 17:14:48 -0800 (PST) Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82]) by olra.theworths.org (Postfix) with ESMTP id B91AA431FC7 for ; Wed, 18 Nov 2009 17:14:48 -0800 (PST) Received: from vertex.dottedmag (unknown [91.197.127.125]) by dottedmag.net (Postfix) with ESMTPSA id 479E18C009; Thu, 19 Nov 2009 02:14:47 +0100 (CET) Received: from dottedmag by vertex.dottedmag with local (Exim 4.69) (envelope-from ) id 1NAvbg-0005o9-P5; Thu, 19 Nov 2009 07:14:44 +0600 From: Mikhail Gusarov To: Carl Worth References: <1258491078-29658-1-git-send-email-dottedmag@dottedmag.net> <87bpiz724g.fsf@yoom.home.cworth.org> Date: Thu, 19 Nov 2009 07:14:41 +0600 In-Reply-To: <87bpiz724g.fsf@yoom.home.cworth.org> (Carl Worth's message of "Thu, 19 Nov 2009 02:08:15 +0100") Message-ID: <87tywr2u4e.fsf@vertex.dottedmag> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] [PATCH] Handle rename of message file X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 01:14:49 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable Twas brillig at 02:08:15 19.11.2009 UTC+01 when cworth@cworth.org did gyre = and gimble: CW> I believe you said in IRC that this patch is not ready yet. Yes. CW> I'd love to hear more from you on any experiments/ideas you have in CW> this area. It would be a really nice feature to have, (particularly CW> for people who are experimenting with notmuch while still using CW> some other primary email program that keeps fiddling with the CW> filenames). Did not have time to work on it further yet. The only dumb idea I have in mind is hardlinking all mail to separate directory in order to make a "pristine copy" which does not change as time goes. This directory could be cleaned up: if some file has only 1 link, then it was deleted from main mail spool and should be deleted From=20copy too. =2D-=20 http://fossarchy.blogspot.com/ --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAEBAgAGBQJLBJwBAAoJEJ0g9lA+M4iI+TQP/3qUMxvh5n5ewvMHetcz6cIg iU/suxI6DFAUImRaOBJvTrYjV6agSgXnTh3Q00J7pE7Jlm/x9ThVueVEG3VUJZfV mql5oRJQAKYy/QqsVfjeMC/Zf80QbACpeC9T92J8pvN/yD/WapzzV4hflZr6Cs8W CBeZZwXMkhl2qCRvJPbjzXhC6lUKF8uX1TWAAdxboTbwAKLTOYJEd8bV9OIHaCgV iMMcCf/Vhfn+EWB2VXu6xA2kppbwNhxsjWamvcnjCNSFS10yIJzornKg+RnnhPiK OagWjmGqS6wLKCimx/efU2o5KSaWJgGridWAAdbdyFlQsXFGsiKwsnQJxnjZfyxf tZHbJZ3Y93bU1glb4Xi/DeYZ4bUz0kyCqBUskTZEVkx9OrKtkMrbkLA1L/D1ZZ3k 2b7OY3Nn6FfpIn364JsjjcR4ocZDXbuLVOEAoOFcGn5za+kOGGLOBAbcoYU9+6E1 YaEg4OTap0hmGPpeYzS/I4Q8CX674+ecldiAxTt0lPOpbI/0J+kae60w14XKC+DB dCV6+37Hrw80JZ7beTc/eElEPo5O/wy1gkgh56uPAwuiavZXEhHiuOseeJC7iOk9 KV9hJ+wv1KORZ9lv64x8SvSO4JcINsHOjJpR815AWVHLRr92ZSkfmGbnWdFsYSXX Em5ahwY8Cqi7oZZVebv+ =kWdd -----END PGP SIGNATURE----- --=-=-=-- From alex.boterolowry@gmail.com Wed Nov 18 17:16:08 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 20FDC431FCB for ; Wed, 18 Nov 2009 17:16:08 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 SvxW1mSAiuNS for ; Wed, 18 Nov 2009 17:16:07 -0800 (PST) Received: from mail-gx0-f221.google.com (mail-gx0-f221.google.com [209.85.217.221]) by olra.theworths.org (Postfix) with ESMTP id 8A962431FAE for ; Wed, 18 Nov 2009 17:16:07 -0800 (PST) Received: by gxk21 with SMTP id 21so1611563gxk.10 for ; Wed, 18 Nov 2009 17:16:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :date:message-id:x-mailer; bh=OXwWeGmsa6u0ti/prKSwxP4Ott3nilbE01/77WF5pXI=; b=NpypCSWqkXWY0yXVmbAnD2H6iGumhHHzcIUHXy6uyo0qA9nCNtoEAl3z5+IQuXHDOu hfcf8YjxFkbdOT1di/UuhAHEbQlMTwbuRiLSGc77/F2aHyk4Sd409Lh7SoEqCKRoDeBD +Nd74k5Ujd9gArvXxB5nikX9SnCpbnKVScKF4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=TUNc8YgCLTl/1+Y7WOW1NsKCGKUNPelL1++OYsvf4rAVDW+gOwEwfQtcucLlPY/o0g o2SJywzAD7WNGwtgQ+JMF3bmaP05gHyDa+NeeR62Ptbpx2KwQ1khAifUSloPu5Xp0aiB p8d4ATKqH8OxI2y8whMpy1TVRP4sScmCLaO5I= Received: by 10.101.202.1 with SMTP id e1mr1500030anq.69.1258593367171; Wed, 18 Nov 2009 17:16:07 -0800 (PST) Received: from fortitudo (nat09.metaweb.com [208.68.111.136]) by mx.google.com with ESMTPS id 9sm29874yxf.41.2009.11.18.17.16.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 17:16:06 -0800 (PST) Received: from alexbl (uid 1001) (envelope-from alexbl@fortitudo) id 70a8 by fortitudo (DragonFly Mail Agent) Wed, 18 Nov 2009 17:16:05 -0800 From: Alexander Botero-Lowry To: notmuch@notmuchmail.org Date: Wed, 18 Nov 2009 17:15:43 -0800 Message-Id: <1258593343-7972-1-git-send-email-alex.boterolowry@gmail.com> X-Mailer: git-send-email 1.6.5.2 Subject: [notmuch] [PATCH] Checkin some command-only tcsh completions X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 01:16:08 -0000 --- notmuch-completion.tcsh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) create mode 100644 notmuch-completion.tcsh diff --git a/notmuch-completion.tcsh b/notmuch-completion.tcsh new file mode 100644 index 0000000..c0d3a44 --- /dev/null +++ b/notmuch-completion.tcsh @@ -0,0 +1,2 @@ +set NOTMUCH_CMD=`notmuch help | awk '/\t/' | cut -f2 |grep -v '^$'` +complete notmuch 'p/1/$NOTMUCH_CMD/' -- 1.6.5.2 From ingmar@exherbo.org Wed Nov 18 17:45:47 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 589FA431FBC for ; Wed, 18 Nov 2009 17:45:47 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 xi1Ul4dIfBHr for ; Wed, 18 Nov 2009 17:45:46 -0800 (PST) Received: from bach.exherbo.org (bach.exherbo.org [78.47.197.147]) by olra.theworths.org (Postfix) with ESMTP id ABF44431FAE for ; Wed, 18 Nov 2009 17:45:46 -0800 (PST) Received: from [83.101.72.69] (helo=localhost) by bach.exherbo.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NAw5h-0005oe-Uf; Thu, 19 Nov 2009 01:45:46 +0000 From: Ingmar Vanhassel To: Date: Thu, 19 Nov 2009 02:45:44 +0100 Message-Id: <1258595144-15258-1-git-send-email-ingmar@exherbo.org> X-Mailer: git-send-email 1.6.5.2.433.g23cdb Subject: [notmuch] [PATCH] Makefile: Create elisp install directory explicitly X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 01:45:47 -0000 When doing a DESTDIR install, this directory likely won't exist, and installing notmuch.el will fail. See 0d4b5292 --- Makefile.local | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.local b/Makefile.local index 27e42ba..6bc01a5 100644 --- a/Makefile.local +++ b/Makefile.local @@ -25,7 +25,7 @@ notmuch.1.gz: notmuch.1 install: all notmuch.1.gz for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \ - $(DESTDIR)/etc/bash_completion.d/ ; \ + $(DESTDIR)/$(prefix)/share/emacs/site-lisp/ $(DESTDIR)/etc/bash_completion.d/ ; \ do \ install -d $$d ; \ done ; -- 1.6.5.2.433.g23cdb From keithp@keithp.com Wed Nov 18 18:06:14 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 53AA5431FBF for ; Wed, 18 Nov 2009 18:06:14 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 iVJKlNhevjVV for ; Wed, 18 Nov 2009 18:06:13 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 85302431FAE for ; Wed, 18 Nov 2009 18:06:13 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id DDAD7B9404B; Wed, 18 Nov 2009 18:06:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RLGF+ev2-qwi; Wed, 18 Nov 2009 18:06:10 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id 20C02B9402F; Wed, 18 Nov 2009 18:06:10 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 169B1B88003; Wed, 18 Nov 2009 18:06:10 -0800 (PST) From: Keith Packard To: Carl Worth , Mikhail Gusarov , notmuch@notmuchmail.org In-Reply-To: <87bpiz724g.fsf@yoom.home.cworth.org> References: <1258491078-29658-1-git-send-email-dottedmag@dottedmag.net> <87bpiz724g.fsf@yoom.home.cworth.org> Date: Wed, 18 Nov 2009 18:06:09 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] [PATCH] Handle rename of message file X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 02:06:14 -0000 --=-=-= On Thu, 19 Nov 2009 02:08:15 +0100, Carl Worth wrote: > I'd love to hear more from you on any experiments/ideas you have in this > area. It would be a really nice feature to have, (particularly for > people who are experimenting with notmuch while still using some other > primary email program that keeps fiddling with the filenames). Checking for new files is easy; notmuch already does that, and so handling renames doesn't seem all that difficult. The hard part to me is detecting deleted messages; about the only thing I can imagine being at all efficient is to use inotify in a daemon. Starting that daemon up would entail scanning the database for all messages in a particular directory and then looking for those files to see if they were still around. Ick. -- keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLBKgRQp8BWwlsTdMRAtITAJ4viqi56Nt7vAP+uz0y1J4gI4eelgCfXdtO BfxwuhfJp5A07BzFFiozpds= =ZFBX -----END PGP SIGNATURE----- --=-=-=-- From dottedmag@dottedmag.net Wed Nov 18 18:11:24 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 105F4431FBC for ; Wed, 18 Nov 2009 18:11:24 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 G7EbhQD1H9Rk for ; Wed, 18 Nov 2009 18:11:23 -0800 (PST) Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82]) by olra.theworths.org (Postfix) with ESMTP id 12BF0431FAE for ; Wed, 18 Nov 2009 18:11:23 -0800 (PST) Received: from vertex.dottedmag (unknown [91.197.127.125]) by dottedmag.net (Postfix) with ESMTPSA id 56B3A8C069 for ; Thu, 19 Nov 2009 03:11:22 +0100 (CET) Received: from dottedmag by vertex.dottedmag with local (Exim 4.69) (envelope-from ) id 1NAwUS-00060n-Ag for notmuch@notmuchmail.org; Thu, 19 Nov 2009 08:11:20 +0600 From: Mikhail Gusarov To: notmuch@notmuchmail.org References: <1258491078-29658-1-git-send-email-dottedmag@dottedmag.net> <87bpiz724g.fsf@yoom.home.cworth.org> Date: Thu, 19 Nov 2009 08:11:12 +0600 In-Reply-To: (Keith Packard's message of "Wed, 18 Nov 2009 18:06:09 -0800") Message-ID: <87pr7f1cxr.fsf@vertex.dottedmag> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] [PATCH] Handle rename of message file X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 02:11:24 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable Twas brillig at 18:06:09 18.11.2009 UTC-08 when keithp@keithp.com did gyre = and gimble: KP> Checking for new files is easy; notmuch already does that, and so KP> handling renames doesn't seem all that difficult. Except rename does not change mtime of file, and so it won't be picked up by 'notmuch new'. =2D-=20 http://fossarchy.blogspot.com/ --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAEBAgAGBQJLBKlAAAoJEJ0g9lA+M4iISNAP/jdbpi0z2wBWNY62gG+76/Rx DyNFPW7OF738/m2vZ5YYz8uSoAWOhdBT5aHrB5ZOR/skENzd4Ay41mkKMbHaYn1X 8VyrFFDYMXf+luvMEHoFfNvXtQVAiHNuaVDq1/zk1Lp58BbBa7Vkp3+zQQuugl4L p7hROwIiJ3hxNFn0IAeFoWhV09bvRdrY2OH0RnJxY4ooYbt8rv9JMxuWv1WZmUdk HjQ8fZWtkf4NomQxhnM51AFfrbU8vKfn9T0BwSvtGjsT426fVJE8s0Z3lmj/0tH4 enxkt3hIlttbuOARIrZ7BHwrCmsqaysX6WW5MjLjx015PFi2WsRI12cwEs5/zanr txb7ukm2RTtQXsbMIQxVhOA0Mwp1Ph9QM9Uq9UswQTvWDia3UQ2s9gKRdZWyzOh6 5o+yqGeP0kORsx/lBIYxk33m82breBvaAwnNKb9IUrzdRF3MthJ2kJqGKr/G16HS aXbLZ1Df1hVgot3UPjuc7VMcW2cZhxB6zbDLK/LXCV9lbEgHjP5y1Fm43f4cytAD iV2WPyxlo6qNaplQGHX/3Yrrn7xRuA2eF6MgZKEHhy8+/dk/y+4YW/vvsWsXPkuQ nbGkY4jtwpndqjAWzhKOg9TahkRR7Idv/JpDrKzu2NDZccclg2AP5duQF2dM8D6c TC/D3krYLLg9fhEfWbF4 =tOJB -----END PGP SIGNATURE----- --=-=-=-- From keithp@keithp.com Wed Nov 18 19:12:57 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 29971431FBC for ; Wed, 18 Nov 2009 19:12:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 bOy5lBsTIy7p for ; Wed, 18 Nov 2009 19:12:56 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 095B5431FAE for ; Wed, 18 Nov 2009 19:12:55 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id E15EDB9404B; Wed, 18 Nov 2009 19:12:54 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XNAiTOzyxEem; Wed, 18 Nov 2009 19:12:51 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id E9A37B9402F; Wed, 18 Nov 2009 19:12:50 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id D9CCBB88003; Wed, 18 Nov 2009 19:12:50 -0800 (PST) From: Keith Packard To: Mikhail Gusarov , notmuch@notmuchmail.org In-Reply-To: <87pr7f1cxr.fsf@vertex.dottedmag> References: <1258491078-29658-1-git-send-email-dottedmag@dottedmag.net> <87bpiz724g.fsf@yoom.home.cworth.org> <87pr7f1cxr.fsf@vertex.dottedmag> Date: Wed, 18 Nov 2009 19:12:50 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] [PATCH] Handle rename of message file X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 03:12:57 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 19 Nov 2009 08:11:12 +0600, Mikhail Gusarov wrote: >=20 > Twas brillig at 18:06:09 18.11.2009 UTC-08 when keithp@keithp.com did gyr= e and gimble: >=20 > KP> Checking for new files is easy; notmuch already does that, and so > KP> handling renames doesn't seem all that difficult. >=20 > Except rename does not change mtime of file, and so it won't be picked > up by 'notmuch new'. Yeah, good point -- notmuch new doesn't make sure each file it finds is already in the database. Again, some kind of inotify-based daemon would make that efficient, while starting up that daemon could take some time while the database was searched for new or missing files. Alternatively, we could record the contents of the directory after scanning it and then use that to track file changes. It seems like the current database just doesn't have enough information to make this tractable. =2D- keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLBLeyQp8BWwlsTdMRAmxLAJ4+BQImlglHeuavWEYbXTIx5/LjtQCg2cT5 et6G1DjH8pAlDxMzDFnspiY= =33s2 -----END PGP SIGNATURE----- --=-=-=-- From aneesh.kumar@linux.vnet.ibm.com Wed Nov 18 20:55:48 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 421CE431FBC for ; Wed, 18 Nov 2009 20:55:48 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 IBcWxqFRjtjy for ; Wed, 18 Nov 2009 20:55:47 -0800 (PST) Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) by olra.theworths.org (Postfix) with ESMTP id 1639E431FAE for ; Wed, 18 Nov 2009 20:55:46 -0800 (PST) Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp08.au.ibm.com (8.14.3/8.13.1) with ESMTP id nAJ4tj0I001237 for ; Thu, 19 Nov 2009 15:55:45 +1100 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nAJ4qQsN856092 for ; Thu, 19 Nov 2009 15:52:26 +1100 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id nAJ4tis2031704 for ; Thu, 19 Nov 2009 15:55:45 +1100 Received: from localhost.localdomain (N20wks267599wss.in.ibm.com [9.124.31.111]) by d23av03.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id nAJ4th5Y031698; Thu, 19 Nov 2009 15:55:44 +1100 From: "Aneesh Kumar K.V" To: notmuch@notmuchmail.org Date: Thu, 19 Nov 2009 10:25:37 +0530 Message-Id: <1258606537-12566-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> X-Mailer: git-send-email 1.6.5.2.74.g610f9 Subject: [notmuch] [PATCH] notmuch: Add search mode hook X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 04:55:48 -0000 This patch add notmuch-search-mode-hook and rename notmuch-show-hook to notmuch-show-mode-hook. This also runs notmuch-show-mode-hook when we enable notmuch-show-mode Signed-off-by: Aneesh Kumar K.V CC:Keith Packard --- notmuch.el | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/notmuch.el b/notmuch.el index 706e9f3..2f11b2b 100644 --- a/notmuch.el +++ b/notmuch.el @@ -640,7 +640,8 @@ view, (remove the \"inbox\" tag from each), with (use-local-map notmuch-show-mode-map) (setq major-mode 'notmuch-show-mode mode-name "notmuch-show") - (setq buffer-read-only t)) + (setq buffer-read-only t) + (run-hooks 'notmuch-show-mode-hook)) ;;;###autoload @@ -648,19 +649,28 @@ view, (remove the \"inbox\" tag from each), with "Notmuch mail reader for Emacs." :group 'mail) -(defcustom notmuch-show-hook nil +(defcustom notmuch-show-mode-hook nil "List of functions to call when notmuch displays a message." :type 'hook :options '(goto-address) :group 'notmuch) +(defcustom notmuch-search-mode-hook nil + "List of functions to call when notmuch displays the search results." + :type 'hook + :options '(hl-line-mode) + :group 'notmuch) + ; Make show mode a bit prettier, highlighting URLs and using word wrap (defun notmuch-show-pretty-hook () (goto-address-mode 1) (visual-line-mode)) -(add-hook 'notmuch-show-hook 'notmuch-show-pretty-hook) +(add-hook 'notmuch-show-mode-hook 'notmuch-show-pretty-hook) +(add-hook 'notmuch-search-mode-hook + (lambda() + (hl-line-mode 1) )) (defun notmuch-show (thread-id &optional parent-buffer) "Run \"notmuch show\" with the given thread ID and display results. @@ -684,7 +694,6 @@ thread from that buffer can be show when done with this one)." (call-process "notmuch" nil t nil "show" thread-id) (notmuch-show-markup-messages) ) - (run-hooks 'notmuch-show-hook) ; Move straight to the first unread message (if (not (notmuch-show-message-unread-p)) (progn @@ -787,7 +796,8 @@ global search. (setq truncate-lines t) (setq major-mode 'notmuch-search-mode mode-name "notmuch-search") - (setq buffer-read-only t)) + (setq buffer-read-only t) + (run-hooks 'notmuch-search-mode-hook)) (defun notmuch-search-find-thread-id () (save-excursion -- 1.6.5.2.74.g610f9 From keithp@keithp.com Wed Nov 18 21:21:17 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 38CB9431FBC for ; Wed, 18 Nov 2009 21:21:17 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 zyQ3LFn74Tku for ; Wed, 18 Nov 2009 21:21:16 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 7F408431FAE for ; Wed, 18 Nov 2009 21:21:16 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 9E420B9404C; Wed, 18 Nov 2009 21:21:15 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7cK+yR466poj; Wed, 18 Nov 2009 21:21:12 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id 86D35B9402F; Wed, 18 Nov 2009 21:21:12 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 79A08B88003; Wed, 18 Nov 2009 21:21:12 -0800 (PST) From: Keith Packard To: "Aneesh Kumar K.V" , notmuch@notmuchmail.org In-Reply-To: <1258606537-12566-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1258606537-12566-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Date: Wed, 18 Nov 2009 21:21:11 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] [PATCH] notmuch: Add search mode hook X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 05:21:17 -0000 --=-=-= On Thu, 19 Nov 2009 10:25:37 +0530, "Aneesh Kumar K.V" wrote: > This patch add notmuch-search-mode-hook and rename > notmuch-show-hook to notmuch-show-mode-hook. This > also runs notmuch-show-mode-hook when we enable > notmuch-show-mode I'm not sure we want to run the hooks that early; I can easily imagine hooks that want to be run after the message has been loaded. -- keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLBNXIQp8BWwlsTdMRApTlAKCs+UL/i+ctYfv1nYi2ZK8HpgOKIgCgvLRt IRgLDxRO1aicg6t7U/C0H+8= =QGmR -----END PGP SIGNATURE----- --=-=-=-- From kha@treskal.com Wed Nov 18 21:39:55 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A6542431FBC for ; Wed, 18 Nov 2009 21:39:55 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 ezMT80SN9mUz for ; Wed, 18 Nov 2009 21:39:55 -0800 (PST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by olra.theworths.org (Postfix) with ESMTP id 51CB8431FAE for ; Wed, 18 Nov 2009 21:39:55 -0800 (PST) Received: from mail1.space2u.com ([62.20.1.135]) by mx.perfora.net (node=mxus2) with ESMTP (Nemesis) id 0LhPFg-1NxGvK0hrk-00mjWH for notmuch@notmuchmail.org; Thu, 19 Nov 2009 00:39:54 -0500 Received: from mail-fx0-f217.google.com (mail-fx0-f217.google.com [209.85.220.217]) (authenticated bits=0) by mail1.space2u.com (8.14.3/8.14.3) with ESMTP id nAJ5dkeL016684 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NOT) for ; Thu, 19 Nov 2009 06:39:46 +0100 Received: by fxm9 with SMTP id 9so2026943fxm.30 for ; Wed, 18 Nov 2009 21:39:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.126.12 with SMTP id d12mr3807334mun.40.1258609190671; Wed, 18 Nov 2009 21:39:50 -0800 (PST) In-Reply-To: <1258584691-29260-1-git-send-email-ingmar@exherbo.org> References: <1258584691-29260-1-git-send-email-ingmar@exherbo.org> Date: Thu, 19 Nov 2009 06:39:50 +0100 Message-ID: From: Karl Wiberg To: Ingmar Vanhassel Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] [PATCH 2/2] .gitignore: Add common editor droppings X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 05:39:55 -0000 On Wed, Nov 18, 2009 at 11:51 PM, Ingmar Vanhassel wro= te: > diff --git a/.gitignore b/.gitignore > index d277c5a..a210779 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -2,4 +2,6 @@ > =C2=A0notmuch > =C2=A0notmuch.1.gz > =C2=A0*.[ao] > +*~ > +.*.swp Since these patterns are specific to a user rather than a project, shouldn't they go in the user's ignore file (~/.gitignore) rather than the project's? --=20 Karl Wiberg, kha@treskal.com subrabbit.wordpress.com www.treskal.com/kalle From stewart@flamingspork.com Wed Nov 18 21:42:46 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C59C0431FBF for ; Wed, 18 Nov 2009 21:42:46 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 n4ehyCIZA0Qc for ; Wed, 18 Nov 2009 21:42:46 -0800 (PST) Received: from kaylee.flamingspork.com (kaylee.flamingspork.com [74.207.245.61]) by olra.theworths.org (Postfix) with ESMTP id 11364431FAE for ; Wed, 18 Nov 2009 21:42:46 -0800 (PST) Received: from willster (localhost [127.0.0.1]) by kaylee.flamingspork.com (Postfix) with ESMTPS id BD4316333; Thu, 19 Nov 2009 05:42:20 +0000 (UTC) Received: from flamingspork.com (localhost.localdomain [127.0.0.1]) by willster (Postfix) with ESMTPS id ADF3310F5D89; Thu, 19 Nov 2009 16:42:43 +1100 (EST) Date: Thu, 19 Nov 2009 16:42:42 +1100 From: Stewart Smith To: Alexander Botero-Lowry Message-ID: <20091119054242.GA11080@flamingspork.com> References: <874oorfozb.fsf@yoom.home.cworth.org> <20091118234527.GO9315@flamingspork.com> <86vdh7cqet.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86vdh7cqet.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] Mac OS X/Darwin compatibility issues X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 05:42:46 -0000 On Wed, Nov 18, 2009 at 04:24:42PM -0800, Alexander Botero-Lowry wrote: > On Thu, 19 Nov 2009 10:45:28 +1100, Stewart Smith wrote: > > On Wed, Nov 18, 2009 at 11:27:20PM +0100, Carl Worth wrote: > > > Yes. I knew I was "cheating" by using some GNU extensions here. I'm > > > happy to accept portability patches for these things, but it's hard for > > > me to get excited about writing them myself. > > > > > > Care to take a whack at these? > > > > http://www.gnu.org/software/gnulib/ > > > > could be a partial answer. > > > Why add yet another dependency for a couple of functions? Especially > considering how notmuch already depends on glib which includes portability > functions for various things. The idea with gnulib (at least what we've done with drizzle) is to just copy the bits you need into the tree. Does work pretty well for those small things that you just don't need to depend on a giant like glib for. -- Stewart Smith From aneesh.kumar@linux.vnet.ibm.com Wed Nov 18 21:56:52 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B5DBC431FBC for ; Wed, 18 Nov 2009 21:56:52 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 xKkSzZYPnTVX for ; Wed, 18 Nov 2009 21:56:50 -0800 (PST) Received: from e23smtp09.au.ibm.com (e23smtp09.au.ibm.com [202.81.31.142]) by olra.theworths.org (Postfix) with ESMTP id 41F95431FAE for ; Wed, 18 Nov 2009 21:56:49 -0800 (PST) Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp09.au.ibm.com (8.14.3/8.13.1) with ESMTP id nAJ5umTZ017237 for ; Thu, 19 Nov 2009 16:56:48 +1100 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nAJ5rTmR1294450 for ; Thu, 19 Nov 2009 16:53:29 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id nAJ5umJu017976 for ; Thu, 19 Nov 2009 16:56:48 +1100 Received: from skywalker.linux.vnet.ibm.com (N20wks267599wss.in.ibm.com [9.124.31.111]) by d23av01.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id nAJ5uihJ017921 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 19 Nov 2009 16:56:47 +1100 Date: Thu, 19 Nov 2009 11:26:43 +0530 From: "Aneesh Kumar K.V" To: Keith Packard Message-ID: <20091119055643.GA2778@skywalker.linux.vnet.ibm.com> References: <1258606537-12566-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] [PATCH] notmuch: Add search mode hook X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 05:56:52 -0000 On Wed, Nov 18, 2009 at 09:21:11PM -0800, Keith Packard wrote: > On Thu, 19 Nov 2009 10:25:37 +0530, "Aneesh Kumar K.V" wrote: > > > This patch add notmuch-search-mode-hook and rename > > notmuch-show-hook to notmuch-show-mode-hook. This > > also runs notmuch-show-mode-hook when we enable > > notmuch-show-mode > > I'm not sure we want to run the hooks that early; I can easily imagine > hooks that want to be run after the message has been loaded. Ok i will move them and send another patch -aneesh From aneesh.kumar@linux.vnet.ibm.com Wed Nov 18 22:11:03 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9B5B0431FBC for ; Wed, 18 Nov 2009 22:11:03 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 AEB7q4sH0JGN for ; Wed, 18 Nov 2009 22:11:02 -0800 (PST) Received: from e23smtp04.au.ibm.com (e23smtp04.au.ibm.com [202.81.31.146]) by olra.theworths.org (Postfix) with ESMTP id 4939B431FAE for ; Wed, 18 Nov 2009 22:11:02 -0800 (PST) Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp04.au.ibm.com (8.14.3/8.13.1) with ESMTP id nAJ67oWS006270 for ; Thu, 19 Nov 2009 17:07:50 +1100 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nAJ67b5t1298602 for ; Thu, 19 Nov 2009 17:07:37 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id nAJ6AxE9031821 for ; Thu, 19 Nov 2009 17:11:00 +1100 Received: from localhost.localdomain (N20wks267599wss.in.ibm.com [9.124.31.111]) by d23av02.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id nAJ6AvUh031796; Thu, 19 Nov 2009 17:10:58 +1100 From: "Aneesh Kumar K.V" To: notmuch@notmuchmail.org Date: Thu, 19 Nov 2009 11:40:54 +0530 Message-Id: <1258611054-3888-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> X-Mailer: git-send-email 1.6.5.2.74.g610f9 Subject: [notmuch] [PATCH -V3] notmuch: Add search mode hook X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 06:11:03 -0000 This patch add notmuch-search-hook that gets run when we after displaying search results Signed-off-by: Aneesh Kumar K.V Cc:Keith Packard --- notmuch.el | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 706e9f3..1fc54c3 100644 --- a/notmuch.el +++ b/notmuch.el @@ -654,6 +654,12 @@ view, (remove the \"inbox\" tag from each), with :options '(goto-address) :group 'notmuch) +(defcustom notmuch-search-hook nil + "List of functions to call when notmuch displays the search results." + :type 'hook + :options '(hl-line-mode) + :group 'notmuch) + ; Make show mode a bit prettier, highlighting URLs and using word wrap (defun notmuch-show-pretty-hook () @@ -661,6 +667,9 @@ view, (remove the \"inbox\" tag from each), with (visual-line-mode)) (add-hook 'notmuch-show-hook 'notmuch-show-pretty-hook) +(add-hook 'notmuch-search-hook + (lambda() + (hl-line-mode 1) )) (defun notmuch-show (thread-id &optional parent-buffer) "Run \"notmuch show\" with the given thread ID and display results. @@ -911,7 +920,8 @@ This function advances point to the next line when finished." (call-process "notmuch" nil t nil "search" "--sort=oldest-first" query) (call-process "notmuch" nil t nil "search" "--sort=newest-first" query)) (notmuch-search-markup-thread-ids) - )))) + )) + (run-hooks 'notmuch-search-hook))) (defun notmuch-search-refresh-view () "Refresh the current view. -- 1.6.5.2.74.g610f9 From jeff@ocjtech.us Wed Nov 18 22:19:10 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 35B60431FBC for ; Wed, 18 Nov 2009 22:19:10 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 Iskz+3gEbkxO for ; Wed, 18 Nov 2009 22:19:09 -0800 (PST) Received: from mail-yx0-f204.google.com (mail-yx0-f204.google.com [209.85.210.204]) by olra.theworths.org (Postfix) with ESMTP id 4228F431FAE for ; Wed, 18 Nov 2009 22:19:09 -0800 (PST) Received: by yxe42 with SMTP id 42so2053491yxe.22 for ; Wed, 18 Nov 2009 22:19:09 -0800 (PST) Received: by 10.150.112.17 with SMTP id k17mr4058039ybc.257.1258611545687; Wed, 18 Nov 2009 22:19:05 -0800 (PST) Received: from lt26923.campus.dmacc.edu ([69.57.47.215]) by mx.google.com with ESMTPS id 16sm149669gxk.15.2009.11.18.22.19.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 22:19:05 -0800 (PST) Received: from localhost ([127.0.0.1] helo=localhost.localdomain) by lt26923.campus.dmacc.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NB0MB-0005Os-9Y; Thu, 19 Nov 2009 00:19:03 -0600 From: "Jeffrey C. Ollie" To: Not Much Mail Date: Thu, 19 Nov 2009 00:18:50 -0600 Message-Id: <1258611530-20719-1-git-send-email-jeff@ocjtech.us> X-Mailer: git-send-email 1.6.5.2 Subject: [notmuch] [PATCH] notmuch: improve installation of emacs mode X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 06:19:10 -0000 1) Don't hardcode the installation directory, instead use emacs' pkg-config module. 2) Install a byte compiled version of the emacs mode. 3) Install the emacs mode in emacs' site-start directory so that it gets loaded automatically. --- Makefile | 6 ++++++ Makefile.local | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 023b2ec..17fa4a2 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,9 @@ CFLAGS=-O2 extra_cflags := $(shell pkg-config --cflags glib-2.0 gmime-2.4 talloc) extra_cxxflags := $(shell xapian-config --cxxflags) +emacs_lispdir := $(shell pkg-config emacs --variable sitepkglispdir) +emacs_startdir := $(shell pkg-config emacs --variable sitestartdir) + # Now smash together user's values with our extra values override CFLAGS += $(WARN_FLAGS) $(extra_cflags) override CXXFLAGS += $(WARN_FLAGS) $(extra_cflags) $(extra_cxxflags) @@ -28,6 +31,9 @@ include Makefile.config %.o: %.c $(CC) -c $(CFLAGS) $< -o $@ +%.elc: %.el + emacs -batch -f batch-byte-compile $< + .deps/%.d: %.c @set -e; rm -f $@; mkdir -p $$(dirname $@) ; \ $(CC) -M $(CPPFLAGS) $(CFLAGS) $< > $@.$$$$; \ diff --git a/Makefile.local b/Makefile.local index 27e42ba..8aac201 100644 --- a/Makefile.local +++ b/Makefile.local @@ -1,4 +1,4 @@ -all: notmuch notmuch.1.gz +all: notmuch notmuch.1.gz notmuch.elc notmuch_client_srcs = \ notmuch.c \ @@ -23,15 +23,16 @@ notmuch: $(notmuch_client_modules) lib/notmuch.a notmuch.1.gz: notmuch.1 gzip --stdout notmuch.1 > notmuch.1.gz -install: all notmuch.1.gz +install: all notmuch.1.gz notmuch.elc for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \ - $(DESTDIR)/etc/bash_completion.d/ ; \ + $(DESTDIR)/etc/bash_completion.d/ $(DESTDIR)$(emacs_startdir) ; \ do \ install -d $$d ; \ done ; install notmuch $(DESTDIR)$(prefix)/bin/ install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/ - install -m0644 notmuch.el $(DESTDIR)$(prefix)/share/emacs/site-lisp/ + install -m0644 notmuch.el $(DESTDIR)$(emacs_startdir) + install -m0644 notmuch.elc $(DESTDIR)$(emacs_startdir) install notmuch-completion.bash \ $(DESTDIR)/etc/bash_completion.d/notmuch -- 1.6.5.2 From jeff@ocjtech.us Wed Nov 18 22:56:25 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 82434431FBC for ; Wed, 18 Nov 2009 22:56:25 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 jLE8I9KLB7JF for ; Wed, 18 Nov 2009 22:56:23 -0800 (PST) Received: from mail-pw0-f51.google.com (mail-pw0-f51.google.com [209.85.160.51]) by olra.theworths.org (Postfix) with ESMTP id 43FD4431FAE for ; Wed, 18 Nov 2009 22:56:23 -0800 (PST) Received: by pwj10 with SMTP id 10so1231944pwj.30 for ; Wed, 18 Nov 2009 22:56:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.214.36 with SMTP id m36mr33965wag.172.1258613782661; Wed, 18 Nov 2009 22:56:22 -0800 (PST) In-Reply-To: <87einv72cr.fsf@yoom.home.cworth.org> References: <1258569114-16034-1-git-send-email-jeff@ocjtech.us> <87einv72cr.fsf@yoom.home.cworth.org> Date: Thu, 19 Nov 2009 00:56:22 -0600 Message-ID: <935ead450911182256j14722a61k7f24a971e0f81756@mail.gmail.com> From: Jeffrey Ollie To: Not Much Mail Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [notmuch] RPM spec file X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 06:56:25 -0000 On Wed, Nov 18, 2009 at 7:03 PM, Carl Worth wrote: > On Wed, 18 Nov 2009 12:31:53 -0600, "Jeffrey C. Ollie" = wrote: >> I prefere managing all of the software on my system with RPM, so I >> came up with a quick spec file for building RPMS. =C2=A0Once notmuch >> settles down and I continue using it I may submit notmuch to Fedora as >> an official package. =C2=A0If you'd like your own RPMS build your own, I >> don't plan on offering a repository of binary packages. > > This sounds great, Jeffrey. > > What makes the most sense for this file? Shall we just leave it in the > central repository? Or put it in its own rpm branch? I'm open to your > suggestions here. I don't think that a separate Git branch makes sense, but maybe stuff like this should be in a subdirectory like "packaging/fedora", since I imagine that there will eventually be a need for "packaging/debian" etc. as well. --=20 Jeff Ollie From jnrowe@gmail.com Thu Nov 19 00:11:50 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E0922431FBC for ; Thu, 19 Nov 2009 00:11:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 6CUrFsObEIYs for ; Thu, 19 Nov 2009 00:11:49 -0800 (PST) Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com [209.85.218.224]) by olra.theworths.org (Postfix) with ESMTP id 980CB431FAE for ; Thu, 19 Nov 2009 00:11:49 -0800 (PST) Received: by bwz24 with SMTP id 24so970747bwz.30 for ; Thu, 19 Nov 2009 00:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-disposition:x-face:face; bh=fGwrp4zCrMbEtYjhmLsfifqNvQmgr5X5o9uTpRGlohM=; b=o1zzIlck6rrIOcHnPgHfWMz0xUWz/Z3gizvMIcT97C/YT6HMImgvAnHImKtIyA8fZj s3LFlZfo3JZP7lwlzDj5MLZecT16QvCm79UOe2WkiByAwnBcG8cSdhvXd+pcd9MMb25Y VhR8FW7hTSG3V+0krVhWDqZ0zOeJcj52SdN6E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-disposition:x-face:face; b=BhbKT1SAghEK3rYBwrmXkhMQ23D51NfZANVDBvrcTGZKHimc7bksL5yTkRCln9+GKD thvDuG2HqtfEV161wr5YrNEvtmX+GOTsAZ1na9TQpOJRo2bvA2DsJpP9a0MswUYkYD1y U/8Z/rlAaYXmsWVIJvJ9mFq/dWapC4imwnfDE= Received: by 10.216.87.66 with SMTP id x44mr2218295wee.96.1258618307670; Thu, 19 Nov 2009 00:11:47 -0800 (PST) Received: from localhost (94.197.240.90.threembb.co.uk [94.197.240.90]) by mx.google.com with ESMTPS id p37sm547556gvf.23.2009.11.19.00.11.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 19 Nov 2009 00:11:46 -0800 (PST) Message-ID: <4b04fdc2.25c0100a.68f2.ffffc8bf@mx.google.com> Date: Thu, 19 Nov 2009 00:11:46 -0800 (PST) From: James Rowe To: notmuch@notmuchmail.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline X-Face: "B/4c#}1Iv9Z5ZZw+I9Aj[W?j->Zc>!`2:[g3A2um!s`b+Tm4iSRRQgrrR1V.'QZ26TQf&\ GFu5:<:`x}o+JTEYw0)L%nYLT$J; (+4%12bvt*(,-yx?29]b7DUvQC4J*@!Ln#jL+{2K^:1`J)2?)q uzx|M7aMI._8'*KwoM|S#y^Bwgs>rXI|Qp[cIm-, lc'L8~sHes14QOR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 08:11:51 -0000 --UugvWAfsgieZRqgk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi, Just in case other Gentoo users are trying notmuch out I thought I'd post my ebuild(perhaps you'll make it better for me too :). It is working well up to at least e5da2b70. I won't bother the list if it requires changes, as it is available from my main overlay[1] if you wish to check for updated versions. Thanks, James 1. http://github.com/JNRowe/misc-overlay/tree/master/mail-client/notmuch/ --UugvWAfsgieZRqgk Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="notmuch-9999.ebuild" # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit toolchain-funcs elisp-common bash-completion git EGIT_REPO_URI="git://notmuchmail.org/git/${PN}" DESCRIPTION="Thread-based email index, search and tagging." HOMEPAGE="http://notmuchmail.org/" SRC_URI="" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="emacs" DEPEND="dev-util/pkgconfig ${RDEPEND}" RDEPEND="sys-libs/talloc dev-libs/gmime dev-libs/xapian emacs? ( virtual/emacs )" SITEFILE="50${PN}-gentoo.el" src_prepare() { # Change ordering in case people are using as-needed sed -i 's,\($(LDFLAGS)\)\(.*\),\2 \1,' Makefile.local } src_compile() { emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" CFLAGS="${CFLAGS}" \ || die "emake failed" if use emacs; then elisp-compile ${PN}.el || die "elisp-compile failed" fi } src_install() { # Don't use make install, because it installs compressed man pages, # bash-completion in the wrong location and emacs files unconditionally. # Three commands are quicker than patching Makefile.local locally. dobin ${PN} doman ${PN}.1 dobashcompletion notmuch-completion.bash ${PN} dodoc AUTHORS README TODO if use emacs; then elisp-install ${PN}{,.el} elisp-site-file-install "${FILESDIR}/${SITEFILE}" fi } --UugvWAfsgieZRqgk Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="50notmuch-gentoo.el" ; notmuch site-list config (add-to-list 'load-path "@SITELISP@") (autoload 'notmuch "notmuch" "Start notmuch" t) --UugvWAfsgieZRqgk-- From SRS0=HQNk=HH=exemail.com.au=tjaden@srs.perfora.net Thu Nov 19 00:13:42 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 569B0431FBC for ; Thu, 19 Nov 2009 00:13:42 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 50oXjrO5Jor0 for ; Thu, 19 Nov 2009 00:13:40 -0800 (PST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.195]) by olra.theworths.org (Postfix) with ESMTP id CC016431FAE for ; Thu, 19 Nov 2009 00:13:40 -0800 (PST) Received-SPF: pass (mxus2: domain of exemail.com.au designates 220.233.0.17 as permitted sender) client-ip=220.233.0.17; envelope-from=tjaden@exemail.com.au; helo=smtp.po.exetel.com.au; Received: from smtp.po.exetel.com.au (pecan.exetel.com.au [220.233.0.17]) by mx.perfora.net (node=mxus2) with ESMTP (Nemesis) id 0M55zq-1O7dsK3y06-00zPLh for notmuch@notmuchmail.org; Thu, 19 Nov 2009 03:13:39 -0500 Received: from 27.133.70.115.static.exetel.com.au ([115.70.133.27] helo=localhost) by smtp.po.exetel.com.au with esmtp (Exim 4.68) (envelope-from ) id 1NB291-0002ND-Tk; Thu, 19 Nov 2009 19:13:36 +1100 Date: Thu, 19 Nov 2009 19:13:35 +1100 From: Peter Wang To: notmuch@notmuchmail.org Message-ID: <20091119081335.GI27626@plug.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Subject: [notmuch] link error X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 08:13:42 -0000 Hi, Linking fails on my system for some reason (undefined references to talloc functions). Putting $(LDFLAGS) after the object list solves it. Peter diff --git a/Makefile.local b/Makefile.local index 27e42ba..c2fbe21 100644 --- a/Makefile.local +++ b/Makefile.local @@ -18,7 +18,7 @@ notmuch_client_srcs = \ notmuch_client_modules = $(notmuch_client_srcs:.c=.o) notmuch: $(notmuch_client_modules) lib/notmuch.a - $(CXX) $(LDFLAGS) $^ -o $@ + $(CXX) $^ $(LDFLAGS) -o $@ notmuch.1.gz: notmuch.1 gzip --stdout notmuch.1 > notmuch.1.gz From jnrowe@gmail.com Thu Nov 19 01:41:35 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D638B431FBC for ; Thu, 19 Nov 2009 01:41:35 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 Ng0k4xWN16n0 for ; Thu, 19 Nov 2009 01:41:35 -0800 (PST) Received: from mail-fx0-f217.google.com (mail-fx0-f217.google.com [209.85.220.217]) by olra.theworths.org (Postfix) with ESMTP id DC514431FAE for ; Thu, 19 Nov 2009 01:41:34 -0800 (PST) Received: by fxm9 with SMTP id 9so2172081fxm.30 for ; Thu, 19 Nov 2009 01:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:references:mime-version:content-type:content-disposition :in-reply-to:x-face:face; bh=hAsGXKWDcEYlJP+ySnWcRs0Xasjeah7LtzGk/A+Srf8=; b=BBxWiKIJvXiSS86gZ0BCquOeUYY4iXBHARDPFzPIdWKNqrVjRR7v29FnG+MBs24G/F JRWqpFC9SIQdyOcfsm+4mibF81V/P29h5rTEJxaW6m+cHZbOEZlNBEW4LKNtk04Ep6hH 08CC+xvCRiu0AdutXyO5xBjj1+bmqXUg5V8kQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:references:mime-version :content-type:content-disposition:in-reply-to:x-face:face; b=lIiTBlYxmhcDenWPN0o7Efnpb8AWBx13wUFj37ceRljN3wD3mCpsyQ7AnuuYFmHiLl /wopDVV8hZi7uhrBN+Fm8gzD+h78z5dVY3hwKTM9hGTVILa5kgj2/3K+qduLSvOnH31e faa6B79FF3cITMAjEjNRff/T3HhMkKdNWuI2I= Received: by 10.216.91.12 with SMTP id g12mr953827wef.33.1258623693594; Thu, 19 Nov 2009 01:41:33 -0800 (PST) Received: from localhost (94.197.240.90.threembb.co.uk [94.197.240.90]) by mx.google.com with ESMTPS id i35sm682357gve.11.2009.11.19.01.41.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 19 Nov 2009 01:41:32 -0800 (PST) Message-ID: <4b0512cc.23a0100a.27b2.0a48@mx.google.com> Date: Thu, 19 Nov 2009 01:41:32 -0800 (PST) From: James Rowe To: notmuch@notmuchmail.org References: <20091119081335.GI27626@plug.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20091119081335.GI27626@plug.localdomain> X-Face: "B/4c#}1Iv9Z5ZZw+I9Aj[W?j->Zc>!`2:[g3A2um!s`b+Tm4iSRRQgrrR1V.'QZ26TQf&\ GFu5:<:`x}o+JTEYw0)L%nYLT$J; (+4%12bvt*(,-yx?29]b7DUvQC4J*@!Ln#jL+{2K^:1`J)2?)q uzx|M7aMI._8'*KwoM|S#y^Bwgs>rXI|Qp[cIm-, lc'L8~sHes14QOR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 09:41:36 -0000 * Peter Wang (novalazy@gmail.com) wrote: > Linking fails on my system for some reason (undefined references to > talloc functions). Putting $(LDFLAGS) after the object list solves it. I have a similar ordering change in the ebuild I posted earlier as a workaround for people using ld's --as-needed option. Thanks, James From ingmar@exherbo.org Thu Nov 19 03:11:14 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6E5E3431FBC for ; Thu, 19 Nov 2009 03:11:14 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 1t0SaCmcIKYE for ; Thu, 19 Nov 2009 03:11:10 -0800 (PST) Received: from bach.exherbo.org (bach.exherbo.org [78.47.197.147]) by olra.theworths.org (Postfix) with ESMTP id 88D4E431FAE for ; Thu, 19 Nov 2009 03:11:10 -0800 (PST) Received: from [83.101.72.69] (helo=localhost) by bach.exherbo.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NB4ur-0006rh-J6 for notmuch@notmuchmail.org; Thu, 19 Nov 2009 11:11:09 +0000 Content-Type: text/plain; charset=utf8 From: Ingmar Vanhassel To: notmuch In-reply-to: <1258611530-20719-1-git-send-email-jeff@ocjtech.us> References: <1258611530-20719-1-git-send-email-jeff@ocjtech.us> Date: Thu, 19 Nov 2009 12:11:08 +0100 Message-Id: <1258628956-sup-8884@cannonball> User-Agent: Sup/git Content-Transfer-Encoding: 8bit Subject: Re: [notmuch] [PATCH] notmuch: improve installation of emacs mode X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 11:11:14 -0000 Excerpts from Jeffrey C. Ollie's message of Thu Nov 19 07:18:50 +0100 2009: > 1) Don't hardcode the installation directory, instead use emacs' > pkg-config module. > > 2) Install a byte compiled version of the emacs mode. > > 3) Install the emacs mode in emacs' site-start directory so that it > gets loaded automatically. Your patch makes emacs required to do make install, which is a no-go imo. Notmuch can be used without emacs. Shouldn't installing the emac mode be a seperate target? -- Exherbo KDE, X.org maintainer From cworth@cworth.org Thu Nov 19 03:25:02 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9A0A0431FBF; Thu, 19 Nov 2009 03:25:02 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 D3p-KbHeKC-W; Thu, 19 Nov 2009 03:25:02 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id ACAE4431FAE; Thu, 19 Nov 2009 03:25:01 -0800 (PST) From: Carl Worth To: Ingmar Vanhassel , notmuch@notmuchmail.org In-Reply-To: <1258595144-15258-1-git-send-email-ingmar@exherbo.org> References: <1258595144-15258-1-git-send-email-ingmar@exherbo.org> Date: Thu, 19 Nov 2009 12:24:48 +0100 Message-ID: <878we2sqnz.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Makefile: Create elisp install directory explicitly X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 11:25:02 -0000 On Thu, 19 Nov 2009 02:45:44 +0100, Ingmar Vanhassel wrote: > When doing a DESTDIR install, this directory likely won't exist, and > installing notmuch.el will fail. Thanks. Pushed. -Carl From rollandsantimano@yahoo.com Wed Nov 18 21:16:59 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B5C0E431FBC for ; Wed, 18 Nov 2009 21:16:59 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 7izCurrvHBe3 for ; Wed, 18 Nov 2009 21:16:59 -0800 (PST) Received: from web113506.mail.gq1.yahoo.com (web113506.mail.gq1.yahoo.com [98.136.167.46]) by olra.theworths.org (Postfix) with SMTP id D98BB431FAE for ; Wed, 18 Nov 2009 21:16:58 -0800 (PST) Received: (qmail 52066 invoked by uid 60001); 19 Nov 2009 05:16:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1258607818; bh=LX9NlFTvhTgo4qsO30G2HtdUtnbq3kRdaBHWECrCnGU=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=uvVGr6xRDz/K9zhr4Wkug9Bvc+zDY+UDKPRjCJwR/cYzUkbuwRJ3F66EV+fJr5PUl8983pwKm2AWe1cJzMpRdvFkoku5czNiNtINYAAf6VNxRg71Su8XTytLh/V2LmeN9bcj/U5/S9PJUfIx0PHI7CO+CYIE7KHC/bx8s5duVSo= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=1/3BJciVflcxJAE/4usVC7AAU4WgTkmcgpU60q+ymEPY0KeESDpPF5FPCuZuEElgiJ7yUtTEkI6XcibQl6I6CKtJeeFl982qIiAE5YhJELHaoMQzqNv7hdkZ88QdAzJ6eYH8yx2LJWE0rIwAsj1Hr4q3CdxRtr8s/Q4+xY7ccpQ=; Message-ID: <376345.51284.qm@web113506.mail.gq1.yahoo.com> X-YMail-OSG: QF48prgVM1k0nMIGeHCx4mj9xRCe_vk7dUBoP44ayRkb6b0PTjKI1A6iYRKxtjxpHeJnLKN_2apkYXA107YGCoX.0O.uzrF78MIRbrC0o_k58LX_K5JF35gywYxlA.yzZOcUqf8wCVlMFEKiJdEG37nuVZhCEQCqiXorFV1tKQS6DZBS5GJdeO5Sa_tcg0EBkFu3WFJYyQcbe6xvXixVeb2grPbddIq_.49pPr7kWU9VNH_Szn1__GV47UmPxqwul.FssMGr2K7flmKR7B2BpR8.jW7NGcKgnB8CicBAlPEqOSX2YuHVa3IxlOwFo0fkX_wtTNhPvzs.Ei06vtBtMA-- Received: from [202.3.120.9] by web113506.mail.gq1.yahoo.com via HTTP; Wed, 18 Nov 2009 21:16:58 PST X-Mailer: YahooMailRC/211.6 YahooMailWebService/0.8.100.260964 References: <1258574286-20087-1-git-send-email-keithp@keithp.com> Date: Wed, 18 Nov 2009 21:16:58 -0800 (PST) From: Rolland Santimano To: Keith Packard , notmuch@notmuchmail.org In-Reply-To: <1258574286-20087-1-git-send-email-keithp@keithp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Thu, 19 Nov 2009 03:27:44 -0800 Subject: Re: [notmuch] [PATCH] Have git ignore tags & cscope files X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 05:16:59 -0000 --- .gitignore | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 8417d60..ef515f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ TAGS +tags +*cscope* .deps notmuch notmuch.1.gz -- 1.5.4.3 From jan@iptel.org Thu Nov 19 03:35:07 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3966C431FBF for ; Thu, 19 Nov 2009 03:35:07 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 r5UMGTB+G9l7 for ; Thu, 19 Nov 2009 03:35:06 -0800 (PST) Received: from mail.iptel.org (smtp.iptel.org [213.192.59.67]) by olra.theworths.org (Postfix) with ESMTP id DEAC8431FAE for ; Thu, 19 Nov 2009 03:35:05 -0800 (PST) Received: by mail.iptel.org (Postfix, from userid 103) id B27F2370667; Thu, 19 Nov 2009 12:34:42 +0100 (CET) Received: from x61s.janakj (nat.sip-server.net [213.192.30.130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.iptel.org (Postfix) with ESMTPSA id B9041370659 for ; Thu, 19 Nov 2009 12:34:41 +0100 (CET) Received: by x61s.janakj (Postfix, from userid 1000) id 89305440651; Thu, 19 Nov 2009 12:34:41 +0100 (CET) From: Jan Janak To: notmuch@notmuchmail.org Date: Thu, 19 Nov 2009 12:34:40 +0100 Message-Id: <1258630481-5133-1-git-send-email-jan@ryngle.com> X-Mailer: git-send-email 1.6.3.3 Subject: [notmuch] [PATCH 1/2] notmuch: Support for notmuch_database_get_tags X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 11:35:07 -0000 This patch adds a new function called notmuch_database_get_tags which can be used to obtain a list of all tags defined in the database (that is, the list all tags from all messages). The function produces an alphabetically sorted list. To add support for the new function, we rip the guts off of notmuch_message_get_tags and put them in a new generic function called _notmuch_convert_tags. The generic function takes a TermIterator as argument and produces a notmuch_tags_t list of tags. Function notmuch_message_get_tags is then reimplemented to call the generic function with message->doc.termlist_begin() as argument. Similarly, we implement notmuch_message_database_tags, the function calls the generic function with db->xapian_db->allterms_begin() as argument. Finally, notmuch_database_get_tags is exported through lib/notmuch.h Signed-off-by: Jan Janak --- lib/database.cc | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ lib/message.cc | 38 ++++++-------------------------------- lib/notmuch.h | 4 ++++ 3 files changed, 58 insertions(+), 32 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 4998fc9..b1c15c3 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -983,3 +983,51 @@ notmuch_database_add_message (notmuch_database_t *notmuch, return ret; } + +notmuch_tags_t * +_notmuch_convert_tags (void* ctx, Xapian::TermIterator i); + +/* Converts tags from the format used in Xapian to a list in + notmuch_tags_t. */ +notmuch_tags_t * +_notmuch_convert_tags (void* ctx, Xapian::TermIterator i) +{ + const char *prefix = _find_prefix ("tag"); + notmuch_tags_t *tags; + std::string tag; + + /* Currently this iteration is written with the assumption that + * "tag" has a single-character prefix. */ + assert (strlen (prefix) == 1); + + tags = _notmuch_tags_create (ctx); + if (unlikely (tags == NULL)) + return NULL; + + i.skip_to (prefix); + + while (1) { + tag = *i; + + if (tag.empty () || tag[0] != *prefix) + break; + + _notmuch_tags_add_tag (tags, tag.c_str () + 1); + + i++; + } + + _notmuch_tags_prepare_iterator (tags); + + return tags; +} + +/* + * Returns a list of all tags defined in a notmuch database. The resulting + * list is sorted alphabetically. + */ +notmuch_tags_t * +notmuch_database_get_tags (notmuch_database_t *db) +{ + return _notmuch_convert_tags(db, db->xapian_db->allterms_begin()); +} diff --git a/lib/message.cc b/lib/message.cc index 9488fb6..af23bb2 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -41,6 +41,9 @@ struct _notmuch_message { Xapian::Document doc; }; +extern notmuch_tags_t * +_notmuch_convert_tags (void* ctx, Xapian::TermIterator i); + /* "128 bits of thread-id ought to be enough for anybody" */ #define NOTMUCH_THREAD_ID_BITS 128 #define NOTMUCH_THREAD_ID_DIGITS (NOTMUCH_THREAD_ID_BITS / 4) @@ -445,43 +448,14 @@ notmuch_message_get_date (notmuch_message_t *message) return Xapian::sortable_unserialise (value); } + notmuch_tags_t * notmuch_message_get_tags (notmuch_message_t *message) { - const char *prefix = _find_prefix ("tag"); - Xapian::TermIterator i, end; - notmuch_tags_t *tags; - std::string tag; - - /* Currently this iteration is written with the assumption that - * "tag" has a single-character prefix. */ - assert (strlen (prefix) == 1); - - tags = _notmuch_tags_create (message); - if (unlikely (tags == NULL)) - return NULL; - - i = message->doc.termlist_begin (); - end = message->doc.termlist_end (); - - i.skip_to (prefix); - - while (1) { - tag = *i; - - if (tag.empty () || tag[0] != *prefix) - break; - - _notmuch_tags_add_tag (tags, tag.c_str () + 1); - - i++; - } - - _notmuch_tags_prepare_iterator (tags); - - return tags; + return _notmuch_convert_tags(message, message->doc.termlist_begin()); } + void _notmuch_message_set_date (notmuch_message_t *message, const char *date) diff --git a/lib/notmuch.h b/lib/notmuch.h index cc713a3..1edcfd6 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -271,6 +271,10 @@ notmuch_message_t * notmuch_database_find_message (notmuch_database_t *database, const char *message_id); +notmuch_tags_t * +notmuch_database_get_tags (notmuch_database_t *database); + + /* Create a new query for 'database'. * * Here, 'database' should be an open database, (see -- 1.6.3.3 From jan@iptel.org Thu Nov 19 03:35:08 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2FEE8431FC2 for ; Thu, 19 Nov 2009 03:35:08 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 jRTSbjETWAVj for ; Thu, 19 Nov 2009 03:35:06 -0800 (PST) Received: from mail.iptel.org (smtp.iptel.org [213.192.59.67]) by olra.theworths.org (Postfix) with ESMTP id 9A28A431FBC for ; Thu, 19 Nov 2009 03:35:06 -0800 (PST) Received: by mail.iptel.org (Postfix, from userid 103) id 0160C37065E; Thu, 19 Nov 2009 12:34:43 +0100 (CET) Received: from x61s.janakj (nat.sip-server.net [213.192.30.130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.iptel.org (Postfix) with ESMTPSA id C683E37065F for ; Thu, 19 Nov 2009 12:34:41 +0100 (CET) Received: by x61s.janakj (Postfix, from userid 1000) id 9A39D440656; Thu, 19 Nov 2009 12:34:41 +0100 (CET) From: Jan Janak To: notmuch@notmuchmail.org Date: Thu, 19 Nov 2009 12:34:41 +0100 Message-Id: <1258630481-5133-2-git-send-email-jan@ryngle.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1258630481-5133-1-git-send-email-jan@ryngle.com> References: <1258630481-5133-1-git-send-email-jan@ryngle.com> Subject: [notmuch] [PATCH 2/2] notmuch list: A new command to produce various lists. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 11:35:08 -0000 Here we create a new notmuch command called list. The purpose of the command is to produce various lists from the notmuch database. At the moment we support only one command, notmuch list tags. This command creates a list of all tags found in the database. Signed-off-by: Jan Janak --- Makefile.local | 1 + notmuch-client.h | 3 ++ notmuch-list.c | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ notmuch.c | 10 +++++ 4 files changed, 112 insertions(+), 0 deletions(-) create mode 100644 notmuch-list.c diff --git a/Makefile.local b/Makefile.local index 27e42ba..fb6d5c3 100644 --- a/Makefile.local +++ b/Makefile.local @@ -12,6 +12,7 @@ notmuch_client_srcs = \ notmuch-show.c \ notmuch-tag.c \ notmuch-time.c \ + notmuch-list.c \ gmime-filter-reply.c \ query-string.c \ show-message.c diff --git a/notmuch-client.h b/notmuch-client.h index b65aa77..ae876b5 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -114,6 +114,9 @@ notmuch_show_command (void *ctx, int argc, char *argv[]); int notmuch_tag_command (void *ctx, int argc, char *argv[]); +int +notmuch_list_command (void *ctx, int argc, char *argv[]); + const char * notmuch_time_relative_date (const void *ctx, time_t then); diff --git a/notmuch-list.c b/notmuch-list.c new file mode 100644 index 0000000..fe71108 --- /dev/null +++ b/notmuch-list.c @@ -0,0 +1,98 @@ +/* notmuch - Not much of an email program, (just index and search) + * + * Copyright © 2009 Carl Worth + * Copyright © 2009 Jan Janak + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see http://www.gnu.org/licenses/ . + * + * Authors: Carl Worth + * Jan Janak + */ + +#include "notmuch-client.h" + +enum list_cmd { + LIST_TAGS +}; + + +static int +list_all_tags(notmuch_database_t* db) +{ + notmuch_tags_t* tags; + const char* t; + + if ((tags = notmuch_database_get_tags(db)) == NULL) { + fprintf(stderr, "Error while obtaining tags from the database.\n"); + return 1; + } + + while((t = notmuch_tags_get(tags))) { + printf("%s\n", t); + notmuch_tags_advance(tags); + } + + notmuch_tags_destroy(tags); + return 0; +} + +int +notmuch_list_command (void *ctx, int argc, char *argv[]) +{ + notmuch_config_t *config; + notmuch_database_t *db; + enum list_cmd cmd; + + config = NULL; + db = NULL; + + if (argc < 1) { + fprintf(stderr, "Error: notmuch list requires at least one parameter.\n"); + fprintf(stderr, "(See notmuch help list)\n"); + goto error; + } + + if (!strcmp(argv[0], "tags")) { + cmd = LIST_TAGS; + } else { + fprintf(stderr, "Sub-command '%s' not supported.\n", argv[0]); + goto error; + } + + if ((config = notmuch_config_open (ctx, NULL, NULL)) == NULL) { + goto error; + } + + db = notmuch_database_open (notmuch_config_get_database_path (config)); + if (db == NULL) { + goto error; + } + + switch(cmd) { + case LIST_TAGS: + if (list_all_tags(db) != 0) goto error; + break; + + default: + fprintf(stderr, "Unsupported command: bug in notmuch_list_command.\n"); + goto error; + } + + notmuch_database_close (db); + return 0; + +error: + if (db) notmuch_database_close(db); + return 1; +} diff --git a/notmuch.c b/notmuch.c index 5cc8e4c..1baa22d 100644 --- a/notmuch.c +++ b/notmuch.c @@ -230,6 +230,16 @@ command_t commands[] = { "\t\tSo if you've previously been using sup for mail, then the\n" "\t\t\"notmuch restore\" command provides you a way to import\n" "\t\tall of your tags (or labels as sup calls them)." }, + { "list", notmuch_list_command, + "", + "\t\tShow additional information about the database.", + "\t\tThe following sub-commands are supported:" + "\n\n" + "\t\ttags\n" + "\n" + "\t\t\tGenerate a list of all tags available in the database.\n" + "\t\t\tThe list will be sorted alphabetically." + }, { "help", notmuch_help_command, "[]", "\t\tThis message, or more detailed help for the named command.", -- 1.6.3.3 From cworth@cworth.org Thu Nov 19 03:35:13 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4EB75431FC7; Thu, 19 Nov 2009 03:35:13 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 8bif+rFnRovd; Thu, 19 Nov 2009 03:35:12 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4F456431FBC; Thu, 19 Nov 2009 03:35:10 -0800 (PST) From: Carl Worth To: Stewart Smith , Alexander Botero-Lowry In-Reply-To: <20091119054242.GA11080@flamingspork.com> References: <874oorfozb.fsf@yoom.home.cworth.org> <20091118234527.GO9315@flamingspork.com> <86vdh7cqet.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> <20091119054242.GA11080@flamingspork.com> Date: Thu, 19 Nov 2009 12:34:56 +0100 Message-ID: <877htmsq73.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] Mac OS X/Darwin compatibility issues X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 11:35:13 -0000 On Thu, 19 Nov 2009 16:42:42 +1100, Stewart Smith wrote: > > The idea with gnulib (at least what we've done with drizzle) is to > just copy the bits you need into the tree. Does work pretty well for > those small things that you just don't need to depend on a giant like > glib for. Looks like that's the intended mode of usage for gnulib: Its components are intended to be shared at the source level, rather than being a library that gets built, installed, and linked against. Thus, there is no distribution tarball; the idea is to copy files from Gnulib into your own source tree. That does sound like exactly what we need for getting portable implementations of the few GNU-extension functions we're using here. So thanks for sharing this. -Carl From jan@ryngle.com Thu Nov 19 03:52:52 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A659C431FBC for ; Thu, 19 Nov 2009 03:52:52 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 5Lxw47OPei1z for ; Thu, 19 Nov 2009 03:52:51 -0800 (PST) Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com [209.85.218.224]) by olra.theworths.org (Postfix) with ESMTP id 1BCB0431FAE for ; Thu, 19 Nov 2009 03:52:50 -0800 (PST) Received: by bwz24 with SMTP id 24so1174476bwz.30 for ; Thu, 19 Nov 2009 03:52:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.160.73 with SMTP id m9mr6106300bkx.214.1258631569649; Thu, 19 Nov 2009 03:52:49 -0800 (PST) In-Reply-To: <1258630481-5133-2-git-send-email-jan@ryngle.com> References: <1258630481-5133-1-git-send-email-jan@ryngle.com> <1258630481-5133-2-git-send-email-jan@ryngle.com> Date: Thu, 19 Nov 2009 12:52:49 +0100 Message-ID: From: Jan Janak To: notmuch@notmuchmail.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [notmuch] [PATCH 2/2] notmuch list: A new command to produce various lists. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 11:52:52 -0000 Carl and others, I implemented a new notmuch command that can be used to list all tags present in the database: $ notmuch list tags If you run this, you'll get an alphabetically sorted list of all tags--one tag per line. The main reason why I implemented this is because I am also working on adding the tag completion feature to the Emacs mode. This is very useful if you have a large collection of tags--it can save you some typing and, perhaps more importantly, it minimizes the risk of having typos in tag names. I'll send a patch for that later too. Let me know what do you think. -- Jan On Thu, Nov 19, 2009 at 12:34 PM, Jan Janak wrote: > Here we create a new notmuch command called list. The purpose of the > command is to produce various lists from the notmuch database. > > At the moment we support only one command, notmuch list tags. This > command creates a list of all tags found in the database. > > Signed-off-by: Jan Janak > --- > =C2=A0Makefile.local =C2=A0 | =C2=A0 =C2=A01 + > =C2=A0notmuch-client.h | =C2=A0 =C2=A03 ++ > =C2=A0notmuch-list.c =C2=A0 | =C2=A0 98 +++++++++++++++++++++++++++++++++= +++++++++++++++++++++ > =C2=A0notmuch.c =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A0 10 +++++ > =C2=A04 files changed, 112 insertions(+), 0 deletions(-) > =C2=A0create mode 100644 notmuch-list.c > > diff --git a/Makefile.local b/Makefile.local > index 27e42ba..fb6d5c3 100644 > --- a/Makefile.local > +++ b/Makefile.local > @@ -12,6 +12,7 @@ notmuch_client_srcs =3D =C2=A0 =C2=A0 =C2=A0 =C2=A0 \ > =C2=A0 =C2=A0 =C2=A0 =C2=A0notmuch-show.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0\ > =C2=A0 =C2=A0 =C2=A0 =C2=A0notmuch-tag.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 \ > =C2=A0 =C2=A0 =C2=A0 =C2=A0notmuch-time.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0\ > + =C2=A0 =C2=A0notmuch-list.c =C2=A0 =C2=A0 =C2=A0\ > =C2=A0 =C2=A0 =C2=A0 =C2=A0gmime-filter-reply.c =C2=A0 =C2=A0\ > =C2=A0 =C2=A0 =C2=A0 =C2=A0query-string.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0\ > =C2=A0 =C2=A0 =C2=A0 =C2=A0show-message.c > diff --git a/notmuch-client.h b/notmuch-client.h > index b65aa77..ae876b5 100644 > --- a/notmuch-client.h > +++ b/notmuch-client.h > @@ -114,6 +114,9 @@ notmuch_show_command (void *ctx, int argc, char *argv= []); > =C2=A0int > =C2=A0notmuch_tag_command (void *ctx, int argc, char *argv[]); > > +int > +notmuch_list_command (void *ctx, int argc, char *argv[]); > + > =C2=A0const char * > =C2=A0notmuch_time_relative_date (const void *ctx, time_t then); > > diff --git a/notmuch-list.c b/notmuch-list.c > new file mode 100644 > index 0000000..fe71108 > --- /dev/null > +++ b/notmuch-list.c > @@ -0,0 +1,98 @@ > +/* notmuch - Not much of an email program, (just index and search) > + * > + * Copyright =C2=A9 2009 Carl Worth > + * Copyright =C2=A9 2009 Jan Janak > + * > + * This program is free software: you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation, either version 3 of the License, or > + * (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. =C2=A0See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program. =C2=A0If not, see http://www.gnu.org/license= s/ . > + * > + * Authors: Carl Worth > + * =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Jan Janak > + */ > + > +#include "notmuch-client.h" > + > +enum list_cmd { > + =C2=A0 =C2=A0 =C2=A0 LIST_TAGS > +}; > + > + > +static int > +list_all_tags(notmuch_database_t* db) > +{ > + =C2=A0 =C2=A0 =C2=A0 notmuch_tags_t* tags; > + =C2=A0 =C2=A0 =C2=A0 const char* t; > + > + =C2=A0 =C2=A0 =C2=A0 if ((tags =3D notmuch_database_get_tags(db)) =3D= =3D NULL) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fprintf(stderr, "Error= while obtaining tags from the database.\n"); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return 1; > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 while((t =3D notmuch_tags_get(tags))) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 printf("%s\n", t); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 notmuch_tags_advance(t= ags); > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 notmuch_tags_destroy(tags); > + =C2=A0 =C2=A0 =C2=A0 return 0; > +} > + > +int > +notmuch_list_command (void *ctx, int argc, char *argv[]) > +{ > + =C2=A0 =C2=A0notmuch_config_t *config; > + =C2=A0 =C2=A0notmuch_database_t *db; > + =C2=A0 =C2=A0 =C2=A0 enum list_cmd cmd; > + > + =C2=A0 =C2=A0 =C2=A0 config =3D NULL; > + =C2=A0 =C2=A0 =C2=A0 db =3D NULL; > + > + =C2=A0 =C2=A0 =C2=A0 if (argc < 1) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fprintf(stderr, "Error= : notmuch list requires at least one parameter.\n"); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fprintf(stderr, "(See = notmuch help list)\n"); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 goto error; > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 if (!strcmp(argv[0], "tags")) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cmd =3D LIST_TAGS; > + =C2=A0 =C2=A0 =C2=A0 } else { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fprintf(stderr, "Sub-c= ommand '%s' not supported.\n", argv[0]); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 goto error; > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0if ((config =3D notmuch_config_open (ctx, NULL, NULL)) =3D= =3D NULL) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 goto error; > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0db =3D notmuch_database_open (notmuch_config_get_database_= path (config)); > + =C2=A0 =C2=A0if (db =3D=3D NULL) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 goto error; > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 switch(cmd) { > + =C2=A0 =C2=A0 =C2=A0 case LIST_TAGS: > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (list_all_tags(db) = !=3D 0) goto error; > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 break; > + > + =C2=A0 =C2=A0 =C2=A0 default: > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fprintf(stderr, "Unsup= ported command: bug in notmuch_list_command.\n"); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 goto error; > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0notmuch_database_close (db); > + =C2=A0 =C2=A0return 0; > + > +error: > + =C2=A0 =C2=A0 =C2=A0 if (db) notmuch_database_close(db); > + =C2=A0 =C2=A0 =C2=A0 return 1; > +} > diff --git a/notmuch.c b/notmuch.c > index 5cc8e4c..1baa22d 100644 > --- a/notmuch.c > +++ b/notmuch.c > @@ -230,6 +230,16 @@ command_t commands[] =3D { > =C2=A0 =C2=A0 =C2=A0 "\t\tSo if you've previously been using sup for mail= , then the\n" > =C2=A0 =C2=A0 =C2=A0 "\t\t\"notmuch restore\" command provides you a way = to import\n" > =C2=A0 =C2=A0 =C2=A0 "\t\tall of your tags (or labels as sup calls them).= " }, > + =C2=A0 =C2=A0 =C2=A0 { "list", notmuch_list_command, > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 "", > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 "\t\tShow additional information about the = database.", > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 "\t\tThe following sub-commands are support= ed:" > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 "\n\n" > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 "\t\ttags\n" > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 "\n" > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 "\t\t\tGenerate a list of all tags availabl= e in the database.\n" > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 "\t\t\tThe list will be sorted alphabetical= ly." > + =C2=A0 =C2=A0 =C2=A0 }, > =C2=A0 =C2=A0 { "help", notmuch_help_command, > =C2=A0 =C2=A0 =C2=A0 "[]", > =C2=A0 =C2=A0 =C2=A0 "\t\tThis message, or more detailed help for the nam= ed command.", > -- > 1.6.3.3 > > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch > > From jeff@ocjtech.us Thu Nov 19 05:13:12 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 30B90431FBC for ; Thu, 19 Nov 2009 05:13:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 3S3mZmet+ORs for ; Thu, 19 Nov 2009 05:13:11 -0800 (PST) Received: from mail-yx0-f204.google.com (mail-yx0-f204.google.com [209.85.210.204]) by olra.theworths.org (Postfix) with ESMTP id 364C4431FAE for ; Thu, 19 Nov 2009 05:13:11 -0800 (PST) Received: by yxe42 with SMTP id 42so2273393yxe.22 for ; Thu, 19 Nov 2009 05:13:10 -0800 (PST) Received: by 10.150.246.3 with SMTP id t3mr34648ybh.256.1258636389821; Thu, 19 Nov 2009 05:13:09 -0800 (PST) Received: from lt26923.campus.dmacc.edu ([69.57.47.215]) by mx.google.com with ESMTPS id 14sm281818gxk.2.2009.11.19.05.13.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 19 Nov 2009 05:13:08 -0800 (PST) Received: from localhost ([127.0.0.1] helo=localhost.localdomain) by lt26923.campus.dmacc.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NB6ot-000220-4D; Thu, 19 Nov 2009 07:13:07 -0600 From: "Jeffrey C. Ollie" To: Not Much Mail Date: Thu, 19 Nov 2009 07:12:48 -0600 Message-Id: <1258636368-7778-1-git-send-email-jeff@ocjtech.us> X-Mailer: git-send-email 1.6.5.2 In-Reply-To: <1258628956-sup-8884@cannonball> References: <1258628956-sup-8884@cannonball> Subject: [notmuch] [PATCH] notmuch: improve installation of emacs mode X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 13:13:12 -0000 1) Add a separate install target to install emacs mode. 2) Don't hardcode the installation directory, instead use emacs' pkg-config module. 3) Install a byte compiled version of the emacs mode. 4) Install the emacs mode in emacs' site-start directory so that it gets loaded automatically. Signed-off-by: Jeffrey C. Ollie --- Makefile | 6 ++++++ Makefile.local | 13 ++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 023b2ec..17fa4a2 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,9 @@ CFLAGS=-O2 extra_cflags := $(shell pkg-config --cflags glib-2.0 gmime-2.4 talloc) extra_cxxflags := $(shell xapian-config --cxxflags) +emacs_lispdir := $(shell pkg-config emacs --variable sitepkglispdir) +emacs_startdir := $(shell pkg-config emacs --variable sitestartdir) + # Now smash together user's values with our extra values override CFLAGS += $(WARN_FLAGS) $(extra_cflags) override CXXFLAGS += $(WARN_FLAGS) $(extra_cflags) $(extra_cxxflags) @@ -28,6 +31,9 @@ include Makefile.config %.o: %.c $(CC) -c $(CFLAGS) $< -o $@ +%.elc: %.el + emacs -batch -f batch-byte-compile $< + .deps/%.d: %.c @set -e; rm -f $@; mkdir -p $$(dirname $@) ; \ $(CC) -M $(CPPFLAGS) $(CFLAGS) $< > $@.$$$$; \ diff --git a/Makefile.local b/Makefile.local index 6bc01a5..e4a27e5 100644 --- a/Makefile.local +++ b/Makefile.local @@ -1,4 +1,4 @@ -all: notmuch notmuch.1.gz +all: notmuch notmuch.1.gz notmuch.elc notmuch_client_srcs = \ notmuch.c \ @@ -25,15 +25,22 @@ notmuch.1.gz: notmuch.1 install: all notmuch.1.gz for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \ - $(DESTDIR)/$(prefix)/share/emacs/site-lisp/ $(DESTDIR)/etc/bash_completion.d/ ; \ + $(DESTDIR)/etc/bash_completion.d/ ; \ do \ install -d $$d ; \ done ; install notmuch $(DESTDIR)$(prefix)/bin/ install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/ - install -m0644 notmuch.el $(DESTDIR)$(prefix)/share/emacs/site-lisp/ install notmuch-completion.bash \ $(DESTDIR)/etc/bash_completion.d/notmuch +install-emacs: install notmuch.elc + for d in $(DESTDIR)/$(emacs_startdir) ; \ + do \ + install -d $$d ; \ + done ; + install -m0644 notmuch.el $(DESTDIR)$(emacs_startdir) + install -m0644 notmuch.elc $(DESTDIR)$(emacs_startdir) + SRCS := $(SRCS) $(notmuch_client_srcs) CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) -- 1.6.5.2 From ingmar@exherbo.org Thu Nov 19 05:19:02 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 7D068431FBC for ; Thu, 19 Nov 2009 05:19:02 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 CZxC3AF+ToZh for ; Thu, 19 Nov 2009 05:18:58 -0800 (PST) Received: from bach.exherbo.org (bach.exherbo.org [78.47.197.147]) by olra.theworths.org (Postfix) with ESMTP id 2CC21431FAE for ; Thu, 19 Nov 2009 05:18:58 -0800 (PST) Received: from [83.101.72.69] (helo=localhost) by bach.exherbo.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NB6uX-0000LT-CK for notmuch@notmuchmail.org; Thu, 19 Nov 2009 13:18:57 +0000 Content-Type: text/plain; charset=utf8 From: Ingmar Vanhassel To: notmuch In-reply-to: <1258636368-7778-1-git-send-email-jeff@ocjtech.us> References: <1258628956-sup-8884@cannonball> <1258636368-7778-1-git-send-email-jeff@ocjtech.us> Date: Thu, 19 Nov 2009 14:18:55 +0100 Message-Id: <1258636656-sup-8390@cannonball> User-Agent: Sup/git Content-Transfer-Encoding: 8bit Subject: Re: [notmuch] [PATCH] notmuch: improve installation of emacs mode X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 13:19:02 -0000 Excerpts from Jeffrey C. Ollie's message of Thu Nov 19 14:12:48 +0100 2009: > 1) Add a separate install target to install emacs mode. Thanks > 2) Don't hardcode the installation directory, instead use emacs' > pkg-config module. > > 3) Install a byte compiled version of the emacs mode. > > 4) Install the emacs mode in emacs' site-start directory so that it > gets loaded automatically. > > Signed-off-by: Jeffrey C. Ollie > --- > Makefile | 6 ++++++ > Makefile.local | 13 ++++++++++--- > 2 files changed, 16 insertions(+), 3 deletions(-) > > diff --git a/Makefile b/Makefile > index 023b2ec..17fa4a2 100644 > --- a/Makefile > +++ b/Makefile > @@ -7,6 +7,9 @@ CFLAGS=-O2 > extra_cflags := $(shell pkg-config --cflags glib-2.0 gmime-2.4 talloc) > extra_cxxflags := $(shell xapian-config --cxxflags) > > +emacs_lispdir := $(shell pkg-config emacs --variable sitepkglispdir) > +emacs_startdir := $(shell pkg-config emacs --variable sitestartdir) > + > # Now smash together user's values with our extra values > override CFLAGS += $(WARN_FLAGS) $(extra_cflags) > override CXXFLAGS += $(WARN_FLAGS) $(extra_cflags) $(extra_cxxflags) > @@ -28,6 +31,9 @@ include Makefile.config > %.o: %.c > $(CC) -c $(CFLAGS) $< -o $@ > > +%.elc: %.el > + emacs -batch -f batch-byte-compile $< > + Looking at this .. > .deps/%.d: %.c > @set -e; rm -f $@; mkdir -p $$(dirname $@) ; \ > $(CC) -M $(CPPFLAGS) $(CFLAGS) $< > $@.$$$$; \ > diff --git a/Makefile.local b/Makefile.local > index 6bc01a5..e4a27e5 100644 > --- a/Makefile.local > +++ b/Makefile.local > @@ -1,4 +1,4 @@ > -all: notmuch notmuch.1.gz > +all: notmuch notmuch.1.gz notmuch.elc .. notmuch.elc requires emacs to build Maybe make emacs && make install-emacs? > > notmuch_client_srcs = \ > notmuch.c \ > @@ -25,15 +25,22 @@ notmuch.1.gz: notmuch.1 > > install: all notmuch.1.gz > for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \ > - $(DESTDIR)/$(prefix)/share/emacs/site-lisp/ > $(DESTDIR)/etc/bash_completion.d/ ; \ > + $(DESTDIR)/etc/bash_completion.d/ ; \ > do \ > install -d $$d ; \ > done ; > install notmuch $(DESTDIR)$(prefix)/bin/ > install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/ > - install -m0644 notmuch.el $(DESTDIR)$(prefix)/share/emacs/site-lisp/ > install notmuch-completion.bash \ > $(DESTDIR)/etc/bash_completion.d/notmuch > > +install-emacs: install notmuch.elc > + for d in $(DESTDIR)/$(emacs_startdir) ; \ > + do \ > + install -d $$d ; \ > + done ; > + install -m0644 notmuch.el $(DESTDIR)$(emacs_startdir) > + install -m0644 notmuch.elc $(DESTDIR)$(emacs_startdir) > + > SRCS := $(SRCS) $(notmuch_client_srcs) > CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) -- Exherbo KDE, X.org maintainer From jan@ryngle.com Thu Nov 19 06:18:27 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id F3A3C431FBC for ; Thu, 19 Nov 2009 06:18:26 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 IPStITc4mskd for ; Thu, 19 Nov 2009 06:18:26 -0800 (PST) Received: from mail-fx0-f217.google.com (mail-fx0-f217.google.com [209.85.220.217]) by olra.theworths.org (Postfix) with ESMTP id 1B326431FAE for ; Thu, 19 Nov 2009 06:18:25 -0800 (PST) Received: by fxm9 with SMTP id 9so2462065fxm.30 for ; Thu, 19 Nov 2009 06:18:21 -0800 (PST) Received: by 10.204.36.206 with SMTP id u14mr4153887bkd.199.1258640301348; Thu, 19 Nov 2009 06:18:21 -0800 (PST) Received: from x61s.janakj (nat.sip-server.net [213.192.30.130]) by mx.google.com with ESMTPS id f31sm734135fkf.42.2009.11.19.06.18.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 19 Nov 2009 06:18:20 -0800 (PST) Received: by x61s.janakj (Postfix, from userid 1000) id 9B2C8440651; Thu, 19 Nov 2009 15:18:19 +0100 (CET) From: Jan Janak To: notmuch@notmuchmail.org Date: Thu, 19 Nov 2009 15:18:19 +0100 Message-Id: <1258640299-6012-1-git-send-email-jan@ryngle.com> X-Mailer: git-send-email 1.6.3.3 Subject: [notmuch] [PATCH] notmuch.el: Completion for tag names. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 14:18:27 -0000 Add support for completion of tag names. Several commands ask the user for a tag name. With this feature the user can just press tab and emacs automatically retrieves the list of all existing tags from notmuch database with 'notmuch list tags' and presents a completion buffer to the user. Signed-off-by: Jan Janak --- notmuch.el | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/notmuch.el b/notmuch.el index 706e9f3..587e093 100644 --- a/notmuch.el +++ b/notmuch.el @@ -165,7 +165,8 @@ Unlike builtin `next-line' this version accepts no arguments." (defun notmuch-show-add-tag (&rest toadd) "Add a tag to the current message." - (interactive "sTag to add: ") + (interactive + (list (notmuch-tag-with-completion "Tag to add: "))) (apply 'notmuch-call-notmuch-process (append (cons "tag" (mapcar (lambda (s) (concat "+" s)) toadd)) @@ -174,7 +175,8 @@ Unlike builtin `next-line' this version accepts no arguments." (defun notmuch-show-remove-tag (&rest toremove) "Remove a tag from the current message." - (interactive "sTag to remove: ") + (interactive + (list (notmuch-tag-with-completion "Tag to remove: "))) (let ((tags (notmuch-show-get-tags))) (if (intersection tags toremove :test 'string=) (progn @@ -873,13 +875,22 @@ and will also appear in a buffer named \"*Notmuch errors*\"." (let ((end (- (point) 1))) (split-string (buffer-substring beg end)))))) +(defun notmuch-tag-with-completion (prompt) + (let ((tag-list + (with-output-to-string + (with-current-buffer standard-output + (call-process "notmuch" nil t nil "list" "tags"))))) + (completing-read prompt (split-string tag-list "\n+" t) nil nil nil))) + (defun notmuch-search-add-tag (tag) - (interactive "sTag to add: ") + (interactive + (list (notmuch-tag-with-completion "Tag to add: "))) (notmuch-call-notmuch-process "tag" (concat "+" tag) (notmuch-search-find-thread-id)) (notmuch-search-set-tags (delete-dups (sort (cons tag (notmuch-search-get-tags)) 'string<)))) (defun notmuch-search-remove-tag (tag) - (interactive "sTag to remove: ") + (interactive + (list (notmuch-tag-with-completion "Tag to remove: "))) (notmuch-call-notmuch-process "tag" (concat "-" tag) (notmuch-search-find-thread-id)) (notmuch-search-set-tags (delete tag (notmuch-search-get-tags)))) @@ -964,7 +975,8 @@ current search results AND the additional query string provided." Runs a new search matching only messages that match both the current search results AND that are tagged with the given tag." - (interactive "sFilter by tag: ") + (interactive + (list (notmuch-tag-with-completion "Filter by tag: "))) (notmuch-search (concat notmuch-search-query-string " and tag:" tag) notmuch-search-oldest-first)) (defun notmuch () -- 1.6.3.3 From jeff@ocjtech.us Thu Nov 19 06:27:28 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 887B3431FBC for ; Thu, 19 Nov 2009 06:27:28 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 xGqVpb-09FmG for ; Thu, 19 Nov 2009 06:27:27 -0800 (PST) Received: from mail-yx0-f204.google.com (mail-yx0-f204.google.com [209.85.210.204]) by olra.theworths.org (Postfix) with ESMTP id A0C94431FAE for ; Thu, 19 Nov 2009 06:27:27 -0800 (PST) Received: by yxe42 with SMTP id 42so2346340yxe.22 for ; Thu, 19 Nov 2009 06:27:25 -0800 (PST) Received: by 10.150.28.4 with SMTP id b4mr238825ybb.124.1258640844305; Thu, 19 Nov 2009 06:27:24 -0800 (PST) Received: from lt26923.campus.dmacc.edu ([161.210.45.123]) by mx.google.com with ESMTPS id 13sm324247gxk.13.2009.11.19.06.27.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 19 Nov 2009 06:27:23 -0800 (PST) Received: from localhost ([127.0.0.1] helo=localhost.localdomain) by lt26923.campus.dmacc.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NB7yk-00015R-CD; Thu, 19 Nov 2009 08:27:22 -0600 From: "Jeffrey C. Ollie" To: Not Much Mail Date: Thu, 19 Nov 2009 08:27:02 -0600 Message-Id: <1258640822-4146-1-git-send-email-jeff@ocjtech.us> X-Mailer: git-send-email 1.6.5.2 In-Reply-To: <1258636656-sup-8390@cannonball> References: <1258636656-sup-8390@cannonball> Subject: [notmuch] [PATCH] notmuch: improve installation of emacs mode X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 14:27:28 -0000 1) Add a separate targets to build and install emacs mode. 2) Don't hardcode the installation directory, instead use emacs' pkg-config module. 3) Install a byte compiled version of the emacs mode. 4) Install the emacs mode in emacs' site-start directory so that it gets loaded automatically. 5) Ignore byte-compiled emacs files. Signed-off-by: Jeffrey C. Ollie --- .gitignore | 2 +- Makefile | 6 ++++++ Makefile.local | 15 ++++++++++++--- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8417d60..7d3c543 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ notmuch.1.gz *.[ao] *~ .*.swp - +*.elc diff --git a/Makefile b/Makefile index 023b2ec..17fa4a2 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,9 @@ CFLAGS=-O2 extra_cflags := $(shell pkg-config --cflags glib-2.0 gmime-2.4 talloc) extra_cxxflags := $(shell xapian-config --cxxflags) +emacs_lispdir := $(shell pkg-config emacs --variable sitepkglispdir) +emacs_startdir := $(shell pkg-config emacs --variable sitestartdir) + # Now smash together user's values with our extra values override CFLAGS += $(WARN_FLAGS) $(extra_cflags) override CXXFLAGS += $(WARN_FLAGS) $(extra_cflags) $(extra_cxxflags) @@ -28,6 +31,9 @@ include Makefile.config %.o: %.c $(CC) -c $(CFLAGS) $< -o $@ +%.elc: %.el + emacs -batch -f batch-byte-compile $< + .deps/%.d: %.c @set -e; rm -f $@; mkdir -p $$(dirname $@) ; \ $(CC) -M $(CPPFLAGS) $(CFLAGS) $< > $@.$$$$; \ diff --git a/Makefile.local b/Makefile.local index 6bc01a5..2bb4521 100644 --- a/Makefile.local +++ b/Makefile.local @@ -1,5 +1,7 @@ all: notmuch notmuch.1.gz +emacs: notmuch.elc + notmuch_client_srcs = \ notmuch.c \ notmuch-config.c \ @@ -25,15 +27,22 @@ notmuch.1.gz: notmuch.1 install: all notmuch.1.gz for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \ - $(DESTDIR)/$(prefix)/share/emacs/site-lisp/ $(DESTDIR)/etc/bash_completion.d/ ; \ + $(DESTDIR)/etc/bash_completion.d/ ; \ do \ install -d $$d ; \ done ; install notmuch $(DESTDIR)$(prefix)/bin/ install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/ - install -m0644 notmuch.el $(DESTDIR)$(prefix)/share/emacs/site-lisp/ install notmuch-completion.bash \ $(DESTDIR)/etc/bash_completion.d/notmuch +install-emacs: install emacs + for d in $(DESTDIR)/$(emacs_startdir) ; \ + do \ + install -d $$d ; \ + done ; + install -m0644 notmuch.el $(DESTDIR)$(emacs_startdir) + install -m0644 notmuch.elc $(DESTDIR)$(emacs_startdir) + SRCS := $(SRCS) $(notmuch_client_srcs) -CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) +CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) notmuch.elc -- 1.6.5.2 From cworth@cworth.org Thu Nov 19 06:41:25 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 621F3431FC0; Thu, 19 Nov 2009 06:41:25 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 dbw8IyXvoDAj; Thu, 19 Nov 2009 06:41:24 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2861D431FAE; Thu, 19 Nov 2009 06:41:23 -0800 (PST) From: Carl Worth To: Jan Janak , notmuch@notmuchmail.org In-Reply-To: References: <1258630481-5133-1-git-send-email-jan@ryngle.com> <1258630481-5133-2-git-send-email-jan@ryngle.com> Date: Thu, 19 Nov 2009 15:41:12 +0100 Message-ID: <87lji2bmrb.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH 2/2] notmuch list: A new command to produce various lists. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Nov 2009 14:41:25 -0000 On Thu, 19 Nov 2009 12:52:49 +0100, Jan Janak wrote: > I implemented a new notmuch command that can be used to list all tags > present in the database: Ah, very very interesting! I'd been planning on doing something like this soon. And I was just thinking of "notmuch tags" as the command line. What other ideas do you have in mind for "notmuch list" ? One way we could possibly do "notmuch tags" is to have it accept search terms and then return the list of all tags from the matched messages. Then of course we'd need a syntax for a search term to match all messages, (which we want in any case). > The main reason why I implemented this is because I am also working on > adding the tag completion feature to the Emacs mode. This is very > useful if you have a large collection of tags--it can save you some > typing and, perhaps more importantly, it minimizes the risk of having > typos in tag names. I'll send a patch for that later too. That will be a very nice feature to have, yes. The other reason I've wanted this is have something like a "folder view" that would show a list of tags and a number of messages with each tag, (or a number of messages with that tag and the inbox tag). I know that Keith said he'd prefer to use a view like that as his primary way of reading mail. Actual review of the patch later. -Carl From keithp@keithp.com Thu Nov 19 07:09:59 2009 Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id DCDD6431FBF for ; Thu, 19 Nov 2009 07:09:59 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 OzlUptpA2BQN for ; Thu, 19 Nov 2009 07:09:59 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 1A55D431FAE for ; Thu, 19 Nov 2009 07:09:58 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 2AE51B9404C; Thu, 19 Nov 2009 07:09:54 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([1