X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fpick.c;h=b1a946d686520afc51bcf1a04332f70b55f3392f;hb=dcc1fcf2a376677f3a094d6a86c95526d816d52e;hp=aba0c028d6a3422a45c6cb8821c799ef30c30e87;hpb=20597014bd0a3a6afa0244e5ee6531c59bc8fceb;p=mmh diff --git a/uip/pick.c b/uip/pick.c index aba0c02..b1a946d 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -16,6 +16,7 @@ #include #include #include +#include #ifdef HAVE_SYS_TIME_H # include @@ -1330,6 +1331,7 @@ createpickthread(char *msgs) for (i = 0; i < files.size; i++) { buf = getthreadid(files.msgs[i]); if (!buf) { + adios(EX_DATAERR, NULL, "message %s is not part of a thread", basename(files.msgs[i])); continue; } @@ -1366,7 +1368,7 @@ createonethread(char *c) bd->left = left; bd->right = right; - gd->header = "message-id"; + gd->header = mh_xstrdup("message-id"); snprintf(buf, sizeof(buf), "^[ \t]*<%s>", c); if(!gcompile(gd, buf)) { @@ -1375,7 +1377,7 @@ createonethread(char *c) } gd = right->data; - gd->header = "references"; + gd->header = mh_xstrdup("references"); snprintf(buf, sizeof(buf), "^[ \t]*<%s>", c); if(!gcompile(gd, buf)) {