X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fseq_read.c;h=3b7b50f7f51d88131b3f5c0a50859a94d88c3029;hb=8e5be81f784682822f5e868c1bf3c8624682bd23;hp=141c1a2e66b3aedc35b88ad82470ca0fb85b3945;hpb=714b5c530ece27ea2835a313013f5b770163403c;p=mmh diff --git a/sbr/seq_read.c b/sbr/seq_read.c index 141c1a2..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; @@ -131,7 +129,7 @@ seq_private(struct msgs *mp) plen = strlen(mp->foldpath) + 1; for (np = m_defs; np; np = np->n_next) { - if (ssequal("atr-", np->n_name) + if (isprefix("atr-", np->n_name) && (j = strlen(np->n_name) - plen) > alen && *(np->n_name + j) == '-' && strcmp(mp->foldpath, np->n_name + j + 1)