]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Add $$ substitution.
authorBen Schmidt <none@none>
Thu, 29 Dec 2011 13:09:33 +0000 (00:09 +1100)
committerBen Schmidt <none@none>
Thu, 29 Dec 2011 13:09:33 +0000 (00:09 +1100)
ChangeLog
src/prepstdreply.c

index 4d8031498053c5517706102c84cbb16530f5ac98..b848001901ee40726a51991890bd27336b9dcf61 100644 (file)
--- 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
index 537f0120a235d10178f575257b16ef27d8e444ef..da1d69a1a21d281638056c06609ce5c167ac0465 100644 (file)
@@ -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;