From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS7922 96.112.0.0/13 X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,URIBL_BLOCKED shortcircuit=no autolearn=ham version=3.3.2 X-Original-To: meta@public-inbox.org Received: from resqmta-po-03v.sys.comcast.net (resqmta-po-03v.sys.comcast.net [96.114.154.162]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 1A7811F624 for ; Mon, 27 Oct 2014 00:19:27 +0000 (UTC) Received: from resomta-po-18v.sys.comcast.net ([96.114.154.242]) by resqmta-po-03v.sys.comcast.net with comcast id 80KE1p0035E3ZMc010KSwE; Mon, 27 Oct 2014 00:19:26 +0000 Received: from odin.tremily.us ([24.18.63.50]) by resomta-po-18v.sys.comcast.net with comcast id 80KR1p00L152l3L010KRSF; Mon, 27 Oct 2014 00:19:26 +0000 Received: by odin.tremily.us (Postfix, from userid 1000) id 13E4214387A2; Sun, 26 Oct 2014 17:19:24 -0700 (PDT) Date: Sun, 26 Oct 2014 17:19:24 -0700 From: "W. Trevor King" To: Eric Wong Cc: meta@public-inbox.org Subject: Re: [RFC] ssoma-mda: Use the email subject as the commit message Message-ID: <20141027001924.GE15570@odin.tremily.us> References: <20141018210400.GA2448@dcvr.yhbt.net> <20141018215020.GK17200@odin.tremily.us> <20141018234323.GA5226@dcvr.yhbt.net> <20141019034815.GL17200@odin.tremily.us> <20141026225740.GA1338@dcvr.yhbt.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="OZkY3AIuv2LYvjdk"; micalg="pgp-sha1"; protocol="application/pgp-signature" Content-Disposition: inline In-Reply-To: <20141026225740.GA1338@dcvr.yhbt.net> OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; url=http://tremily.us/pubkey.txt User-Agent: Mutt/1.5.23 (2014-03-12) X-Content-Filtered-By: PublicInbox::Filter 0.0.1 List-Id: --OZkY3AIuv2LYvjdk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 26, 2014 at 10:57:40PM +0000, Eric Wong wrote: > 1) "notmuch insert" (Xapian index + Maildir delivery) > 2) remove from Maildir immediately (keep message in ssoma) >=20 > >=20 > 3) a message is decided to be spam after human review, > use ssoma-rm (via public-inbox-learn) to remove it > from current history. >=20 > But notmuch/Xapian still knows about the message. >=20 > "notmuch new" does not work here because the Maildir is > maintained in a constantly empty state. That sounds like a reasonable use case for me. I'll work up notmuch patches for: $ notmuch insert --index-only so you can skip step 2, and a new: $ notmuch remove that removes a message (read from stdin) from the index. > I wonder if it is better for public-inbox/ssoma to use (the already > available) Xapian Perl bindings directly; likely using the notmuch > configuration of Xapian as a guide. I'm not going to stand in your way, but 98% of what you need is already in notmuch. I'd suggest seeing how long it takes me to write those patches, and how well they are received upstream, before dropping notmuch. Cheers, Trevor --=20 This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy --OZkY3AIuv2LYvjdk--