From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mPkYD05IHWAORwAA0tVLHw (envelope-from ) for ; Fri, 05 Feb 2021 13:29:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wP64Ck5IHWA8QAAAB5/wlQ (envelope-from ) for ; Fri, 05 Feb 2021 13:29:50 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E430E9403D6 for ; Fri, 5 Feb 2021 13:29:49 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9CA022063F; Fri, 5 Feb 2021 08:28:06 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id B79471FBD2 for ; Fri, 5 Feb 2021 08:27:27 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id A014C6067F; Fri, 5 Feb 2021 08:27:27 -0500 (EST) Received: (nullmailer pid 3258429 invoked by uid 1000); Fri, 05 Feb 2021 13:27:02 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 27/39] lib/config: add NOTMUCH_CONFIG_NEW_IGNORE Date: Fri, 5 Feb 2021 09:26:42 -0400 Message-Id: <20210205132654.3258292-28-david@tethera.net> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210205132654.3258292-1-david@tethera.net> References: <20210205132654.3258292-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 7WRA7FZCD7NQ3K3QAIQFQRBEEPAJJFRN X-Message-ID-Hash: 7WRA7FZCD7NQ3K3QAIQFQRBEEPAJJFRN X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: E430E9403D6 X-Spam-Score: -0.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: CyBcMEspopff This will be needed by (at least) the conversion of notmuch-new.c to the new config framework --- lib/config.cc | 3 +++ lib/notmuch.h | 1 + test/T590-libconfig.sh | 1 + 3 files changed, 5 insertions(+) diff --git a/lib/config.cc b/lib/config.cc index fe67ef41..4c0cfe92 100644 --- a/lib/config.cc +++ b/lib/config.cc @@ -394,6 +394,8 @@ _notmuch_config_key_to_string (notmuch_config_key_t key) { return "search.exclude_tags"; case NOTMUCH_CONFIG_NEW_TAGS: return "new.tags"; + case NOTMUCH_CONFIG_NEW_IGNORE: + return "new.ignore"; case NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS: return "maildir.synchronize_flags"; case NOTMUCH_CONFIG_PRIMARY_EMAIL: @@ -426,6 +428,7 @@ _notmuch_config_default (void *ctx, notmuch_config_key_t key) { return "inbox;unread"; case NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS: return "true"; + case NOTMUCH_CONFIG_NEW_IGNORE: case NOTMUCH_CONFIG_USER_NAME: case NOTMUCH_CONFIG_PRIMARY_EMAIL: case NOTMUCH_CONFIG_OTHER_EMAIL: diff --git a/lib/notmuch.h b/lib/notmuch.h index 4e5312ad..5ec14c38 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -2427,6 +2427,7 @@ typedef enum _notmuch_config_key { NOTMUCH_CONFIG_DATABASE_PATH = NOTMUCH_CONFIG_FIRST, NOTMUCH_CONFIG_EXCLUDE_TAGS, NOTMUCH_CONFIG_NEW_TAGS, + NOTMUCH_CONFIG_NEW_IGNORE, NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS, NOTMUCH_CONFIG_PRIMARY_EMAIL, NOTMUCH_CONFIG_OTHER_EMAIL, diff --git a/test/T590-libconfig.sh b/test/T590-libconfig.sh index ab439078..4edc53f1 100755 --- a/test/T590-libconfig.sh +++ b/test/T590-libconfig.sh @@ -335,6 +335,7 @@ cat <<'EOF' >EXPECTED MAIL_DIR inbox;unread +NULL true NULL NULL -- 2.30.0