From: Maarten Aertsen Date: Sun, 24 Jan 2016 15:48:00 +0000 (+0100) Subject: notmuch insert --keep fails in parallel w/ notmuch new X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35b2a6943c52195c1fe87cd64cd530fafc0e1043;p=notmuch-archives.git notmuch insert --keep fails in parallel w/ notmuch new --- diff --git a/ca/521e66ddbb9a3c96a7ca9d6b6e62e48d0d7909 b/ca/521e66ddbb9a3c96a7ca9d6b6e62e48d0d7909 new file mode 100644 index 000000000..76c4381d4 --- /dev/null +++ b/ca/521e66ddbb9a3c96a7ca9d6b6e62e48d0d7909 @@ -0,0 +1,98 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 849AB6DE02DA + for ; Sun, 24 Jan 2016 07:55:15 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.552 +X-Spam-Level: +X-Spam-Status: No, score=-0.552 tagged_above=-999 required=5 + tests=[RP_MATCHES_RCVD=-0.55, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id y2NJmVcKTC9K for ; + Sun, 24 Jan 2016 07:55:13 -0800 (PST) +X-Greylist: delayed 427 seconds by postgrey-1.35 at arlo; + Sun, 24 Jan 2016 07:55:13 PST +Received: from kardo2.rtsn.nl (rtsn.nl [37.97.129.244]) + by arlo.cworth.org (Postfix) with ESMTPS id 179926DE0217 + for ; Sun, 24 Jan 2016 07:55:13 -0800 (PST) +Received: by kardo2.rtsn.nl (Postfix, from userid 1000) + id D3C691FF55F; Sun, 24 Jan 2016 16:48:00 +0100 (CET) +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: quoted-printable +To: Notmuch Mail +Message-ID: <20160124154800.19103.24730@kardo2.rtsn.nl> +From: Maarten Aertsen +User-Agent: alot/0.3.6 +Subject: notmuch insert --keep fails in parallel w/ notmuch new +Date: Sun, 24 Jan 2016 16:48:00 +0100 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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: Sun, 24 Jan 2016 15:55:15 -0000 + +Hello list, + +I'd like to report a bug against notmuch 0.21, packaged for Debian = + +jessie-backports as 0.21-3~bpo8+1. + +# Steps to reproduce: + 1. start a notmuch new mail w/ lots of stuff to process (e.g. a = + + migration) + 2. try notmuch insert --keep + +# Expected result: +Given the current text in the manpage, I'd expect notmuch insert --keep = + +to save the message to the Maildir even if no db interaction is possible: + +"--keep Keep the message file if indexing fails, and keep the message = + + indexed if applying tags or maildir flag synchronization fails. = + + Ignore these errors and return exit status 0 to indicate = + + succesful mail delivery." + +That way, I can cron notmuch new to pick up the occasional message that = + +can't get indexed right away. + +# Actual result: +notmuch insert --keep fails with exit code 1 due to the inability to get = + +db access. + +# Context: +I've switched to a setup with postfix, where notmuch insert --keep is = + +called by /local/, postfix's local delivery daemon, via a pipe in = + +.forward. Local treats a non-zero exit code as a 5.3.x status code and = + +sends a bounce to the sender. + +I had a short chat with j4ni on #notmuch, where he said: +< j4ni> Sagi: oh bummer, we try to open the db first, and bail out = + +early. we should change the order of that (at least with --keep). + +Thanks for developing notmuch. + +best regards, Maarten Aertsen