Re: [PATCH v4] test: replace notmuch_passwd_sanitize() with _libconfig_sanitize()

Subject: Re: [PATCH v4] test: replace notmuch_passwd_sanitize() with _libconfig_sanitize()

Date: Sat, 22 May 2021 08:56:18 -0300

To: Tomi Ollila, notmuch@notmuchmail.org

Cc:

From: David Bremner


Tomi Ollila <tomi.ollila@iki.fi> writes:
>  cat <<EOF > c_head
>  #include <string.h>
>  #include <stdlib.h>
> @@ -380,26 +399,26 @@ cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} '' %NULL%
>  	 key < NOTMUCH_CONFIG_LAST;
>  	 key = (notmuch_config_key_t)(key + 1)) {
>  	const char *val = notmuch_config_get (db, key);
> -        printf("%s\n", val ? val : "NULL" );
> +	printf("%x: '%s'\n", key, val ? val : "NULL" );
>      }
>  }
>  EOF

It seems not that unlikely that we will hit 16 configuration keys. Would
it be better to use 2 digits 0 padded (and in that case we could
probably stick to decimal). Or maybe having different number of digits
for later keys does not matter?

d
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: