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: X-Spam-Status: No, score=-3.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B12341F624; Sun, 26 Oct 2014 22:57:40 +0000 (UTC) Date: Sun, 26 Oct 2014 22:57:40 +0000 From: Eric Wong To: "W. Trevor King" Cc: meta@public-inbox.org Subject: Re: [RFC] ssoma-mda: Use the email subject as the commit message Message-ID: <20141026225740.GA1338@dcvr.yhbt.net> References: <20141018210400.GA2448@dcvr.yhbt.net> <20141018215020.GK17200@odin.tremily.us> <20141018234323.GA5226@dcvr.yhbt.net> <20141019034815.GL17200@odin.tremily.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20141019034815.GL17200@odin.tremily.us> List-Id: "W. Trevor King" wrote: > ‘notmuch new’ only traverses Maildir and MH, but ‘notmuch insert’ > reads a message off stdin just like ssoma-mda. ‘notmuch insert’ also > currently delivers the message to maildir (besides indexing it), but > it should be easy to patch things to optionally disable that delivery > (and only index the message). Unfortunately, there seems to be no way to easily delete a single message by Message-ID from the Xapian index using notmuch (without maintaining a copy in the Maildir). What I want to do is: 1) "notmuch insert" (Xapian index + Maildir delivery) 2) remove from Maildir immediately (keep message in ssoma) 3) a message is decided to be spam after human review, use ssoma-rm (via public-inbox-learn) to remove it from current history. But notmuch/Xapian still knows about the message. "notmuch new" does not work here because the Maildir is maintained in a constantly empty state. 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.