From 6c75e2f0f00732488aa03b967713d95037edd895 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Mon, 2 Jan 2012 11:20:00 +0100 Subject: [PATCH] Removed the configuration option NOPUBLICSEQ. You can change it still, by setting mh_seq to NULL in config/config.c. --- config/config.c | 13 ++++--------- sbr/seq_read.c | 6 ++---- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/config/config.c b/config/config.c index 3f9d106..9add9e2 100644 --- a/config/config.c +++ b/config/config.c @@ -45,16 +45,11 @@ char *profile = "profile"; char *context = "context"; /* -** Default name of file for public sequences. If NULL, -** then nmh will use private sequences by default, unless the -** user defines a value using the "mh-sequences" profile entry. +** Default name of file for public sequences. Gets overridden +** by a `Mh-Sequences' entry in the user's profile. Set to NULL +** or the empty string to use private sequences by default. */ -#ifdef NOPUBLICSEQ - char *mh_seq = NULL; -#else - char *mh_seq = ".mh_sequences"; -#endif - +char *mh_seq = ".mh_sequences"; /* name of current message "sequence" */ char *current = "cur"; diff --git a/sbr/seq_read.c b/sbr/seq_read.c index 1c231dd..3b7b50f 100644 --- a/sbr/seq_read.c +++ b/sbr/seq_read.c @@ -60,10 +60,8 @@ seq_public(struct msgs *mp) FILE *fp; /* - ** If mh_seq == NULL (such as if nmh been compiled with - ** NOPUBLICSEQ), or if *mh_seq == '\0' (the user has defined - ** the "mh-sequences" profile entry, but left it empty), - ** then just return, and do not initialize any public sequences. + ** If public sequences are disabled (e.g. the user has defined + ** an empty `Mh-Sequences' profile entry), then just return. */ if (mh_seq == NULL || *mh_seq == '\0') return; -- 1.7.10.4