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 KE3gGDUdA2DFLgAA0tVLHw (envelope-from ) for ; Sat, 16 Jan 2021 17:07:01 +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 8FOsFDUdA2AiKgAAB5/wlQ (envelope-from ) for ; Sat, 16 Jan 2021 17:07:01 +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 DEE4E9404D0 for ; Sat, 16 Jan 2021 17:07:00 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id CDC9E2BFC2; Sat, 16 Jan 2021 12:05:21 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 3540E2BF69 for ; Sat, 16 Jan 2021 12:04:43 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id 27B4F5FF47; Sat, 16 Jan 2021 12:04:43 -0500 (EST) Received: (nullmailer pid 842433 invoked by uid 1000); Sat, 16 Jan 2021 17:04:16 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 27/38] lib/config: add NOTMUCH_CONFIG_NEW_IGNORE Date: Sat, 16 Jan 2021 13:03:55 -0400 Message-Id: <20210116170406.842014-28-david@tethera.net> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210116170406.842014-1-david@tethera.net> References: <20210116170406.842014-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: DKYP3V2BVONVWHJC7YGQI6TL7LTVBPKC X-Message-ID-Hash: DKYP3V2BVONVWHJC7YGQI6TL7LTVBPKC 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.87 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: DEE4E9404D0 X-Spam-Score: -0.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: qtm1fPekVlOd 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 57eedfb7..443dc3a6 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 5ffe967b..97f8fdc7 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.29.2