From 4d2d9173f125e4e1112dafe6102a6df84b273e88 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 19 Jan 2014 22:32:21 +0200 Subject: [PATCH] [PATCH 0/7] cli: notmuch new improvements --- ff/e04f202adbd53b673e1ded81b3726aab157a8f | 88 +++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 ff/e04f202adbd53b673e1ded81b3726aab157a8f diff --git a/ff/e04f202adbd53b673e1ded81b3726aab157a8f b/ff/e04f202adbd53b673e1ded81b3726aab157a8f new file mode 100644 index 000000000..b25aa895f --- /dev/null +++ b/ff/e04f202adbd53b673e1ded81b3726aab157a8f @@ -0,0 +1,88 @@ +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 2479C431FC4 + for ; Sun, 19 Jan 2014 12:32:47 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +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 OMLMrbDbMnxS for ; + Sun, 19 Jan 2014 12:32:39 -0800 (PST) +Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com + [74.125.83.44]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client + certificate requested) by olra.theworths.org (Postfix) with ESMTPS id + 9AC26431FBD for ; Sun, 19 Jan 2014 12:32:39 -0800 + (PST) +Received: by mail-ee0-f44.google.com with SMTP id c13so3049148eek.17 + for ; Sun, 19 Jan 2014 12:32:36 -0800 (PST) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id; + bh=VoFh3B4kPN1TjlLEGTnMY1eRnsf7O+74NCkdNQuWR8E=; + b=mlHxoRPfGxEOC6RYnwvL7yGgZB9zaqKfrb/s8+1ICeK4zgA9gDlUB+5Nkb6O1Oh8ca + /l7qULrHXQIrylYb3XmDoIhTQ/vN4rX8WkU4EpaRU4NseRVJccwV/ejRL9F13WocoQuK + QWeE4y6dfKUiCeQJZE27lz1yj4gUuVW4X7Nj+SEArjD/Zue+lMj5unqN3oJuabMT4SB4 + 4ok2RPDPSY68XezJsxH85YlA3umKJu7yWRwP7ed71ZuH2XdSyFN8yejhHXvxPfIo/TwR + Pe5gRFLVNy3wrIYw9F0z1o8DbY8U3OQ0Vb26MyHZECi3cvX3SmKNWV5TCYUK12cQHwWd + GVxQ== +X-Gm-Message-State: + ALoCoQlmVjuAuYPnYdsQ3QDC73msUItyhc0L+jSNORmZnSam0XNN37irwegIphC/vmJyG3XHulGZ +X-Received: by 10.14.207.194 with SMTP id n42mr843734eeo.76.1390163556839; + Sun, 19 Jan 2014 12:32:36 -0800 (PST) +Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi. + [88.195.111.91]) + by mx.google.com with ESMTPSA id u7sm46523423eep.11.2014.01.19.12.32.34 + for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Sun, 19 Jan 2014 12:32:36 -0800 (PST) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH 0/7] cli: notmuch new improvements +Date: Sun, 19 Jan 2014 22:32:21 +0200 +Message-Id: +X-Mailer: git-send-email 1.8.5.2 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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, 19 Jan 2014 20:32:47 -0000 + +Here's an assortment of notmuch new fixes, non-functional cleanups, and +the oft-requested --quiet option. + +These should be pretty straightforward to review. + +BR, +Jani. + + +Jani Nikula (7): + cli: extract single message addition in notmuch new to clarify code + cli: only check the ignore list if needed + cli: use dirent_type in count_files too + cli: for loop is more customary + cli: abstract notmuch new result printing + cli: add --quiet option to notmuch new + man: document notmuch new --quiet option + + man/man1/notmuch-new.1 | 5 + + notmuch-new.c | 253 ++++++++++++++++++++++++++----------------------- + 2 files changed, 137 insertions(+), 121 deletions(-) + +-- +1.8.5.2 + -- 2.26.2