Add %(unmailto) format function for List-Post headers
[mmh] / sbr / fmt_compile.c
index f4d92d2..2b32e71 100644 (file)
@@ -203,6 +203,7 @@ static struct ftable functable[] = {
        { "mymbox",     TF_COMP,    FT_LV_COMPFLAG, FT_MYMBOX, TFL_PUTN },
 
        { "unquote",    TF_EXPR,    FT_LS_UNQUOTE, 0, TFL_PUTS},
+       { "unmailto",   TF_EXPR,    FT_LS_UNMAILTO, 0, TFL_PUTS},
 
        { NULL,         0,          0, 0, 0 }
 };
@@ -309,7 +310,7 @@ fmt_compile(char *fstring, struct format **fmt)
 
        if (format_string)
                mh_free0(&format_string);
-       format_string = getcpy(fstring);
+       format_string = mh_xstrdup(fstring);
        usr_fstring = fstring;
 
        /* init the component hash table. */