From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id B93CA6DE1016 for ; Fri, 25 Nov 2016 18:44:33 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.006 X-Spam-Level: X-Spam-Status: No, score=-0.006 tagged_above=-999 required=5 tests=[AWL=0.005, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 q5tiYmk3nOCm for ; Fri, 25 Nov 2016 18:44:33 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id E8A516DE0FD2 for ; Fri, 25 Nov 2016 18:44:32 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1cASyF-0001zm-CQ; Fri, 25 Nov 2016 21:44:07 -0500 Received: (nullmailer pid 21038 invoked by uid 1000); Sat, 26 Nov 2016 02:44:26 -0000 From: David Bremner To: Jani Nikula , David Bremner , notmuch@notmuchmail.org Subject: [PATCH] cli/new: document new exit code Date: Fri, 25 Nov 2016 22:44:18 -0400 Message-Id: <20161126024418.20996-1-david@tethera.net> X-Mailer: git-send-email 2.10.2 In-Reply-To: <1479759273-18010-1-git-send-email-jani@nikula.org> References: <1479759273-18010-1-git-send-email-jani@nikula.org> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Sat, 26 Nov 2016 02:44:33 -0000 It seems important to give the numeric return code for people writing scripts. Hopefully deviations from this convention are rare. --- doc/man1/notmuch-new.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/man1/notmuch-new.rst b/doc/man1/notmuch-new.rst index 787ed78..7f0b223 100644 --- a/doc/man1/notmuch-new.rst +++ b/doc/man1/notmuch-new.rst @@ -43,6 +43,14 @@ Supported options for **new** include ``--quiet`` Do not print progress or results. +EXIT STATUS +=========== + +This command supports the following special exit status code + +``75 (EX_TEMPFAIL)`` + A temporary failure occured; the user is invited to retry. + SEE ALSO ======== -- 2.10.2