--- config.h.in +++ config.h.in @@ -129,3 +129,6 @@ /* Define to `unsigned' if does not define. */ #undef size_t + +/* Define to the location of the default listext directory */ +#define DEFAULTTEXTDIR "/usr/share/mlmmj/text.skel/" --- src/prepstdreply.c +++ src/prepstdreply.c @@ -166,8 +166,13 @@ infd = open(tmp, O_RDONLY); myfree(tmp); if(infd < 0) { - log_error(LOG_ARGS, "Could not open std mail %s", filename); - return NULL; + tmp = concatstr(2, DEFAULTTEXTDIR, filename); + infd = open(tmp, O_RDONLY); + myfree(tmp); + if(infd < 0) { + log_error(LOG_ARGS, "Could not open std mail %s", filename); + return NULL; + } } listaddr = getlistaddr(listdir);