From: Ben Schmidt Date: Thu, 29 Dec 2011 13:09:33 +0000 (+1100) Subject: Add $$ substitution. X-Git-Tag: RELEASE_1_2_18a1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fcfe502c4dc42c1e49ffd2073972dbe39e290ee;p=thirdparty%2Fmlmmj.git Add $$ substitution. --- diff --git a/ChangeLog b/ChangeLog index 4d803149..b8480019 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ + o Add $$ substitution o Allow list texts to include real UTF-8 characters, as documented o Fix bug where the normal listtext would be sent when unsubscribing from the nomail version of the list diff --git a/src/prepstdreply.c b/src/prepstdreply.c index 537f0120..da1d69a1 100644 --- a/src/prepstdreply.c +++ b/src/prepstdreply.c @@ -99,7 +99,10 @@ char *substitute_one(const char *line, const char *listaddr, fqdn = genlistfqdn(listaddr); listname = genlistname(listaddr); - if(strcmp(token, "listaddr") == 0) { + if(strcmp(token, "") == 0) { + value = mystrdup("$"); + goto concatandreturn; + } else if(strcmp(token, "listaddr") == 0) { /* DEPRECATED: use $list$@$domain$ instead */ value = mystrdup(listaddr); goto concatandreturn;