]> git.marmaro.de Git - mmh/blobdiff - sbr/fmt_compile.c
Add %(unmailto) format function for List-Post headers
[mmh] / sbr / fmt_compile.c
index f4d92d29b47f44f487376cc4cab7b513da3abe10..2b32e7152a9fe45d8b8a2d68d86a1765589a9fff 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. */