# HG changeset patch # User Ben Schmidt # Date 1298329962 -39600 # Node ID 6f8df4842d9177f5e579e4f2e52309716ec58c66 # Parent 21265d660d19dde688523e8808962b86e50a7fc8 Add a space to $controlN$ substitution and improve documentation. diff -r 21265d660d19 -r 6f8df4842d91 README.listtexts --- a/README.listtexts Mon Mar 07 00:30:58 2011 +1100 +++ b/README.listtexts Tue Feb 22 10:12:42 2011 +1100 @@ -149,10 +149,10 @@ the address to which to send mail to confirm the (un-)subscription in question -- $controlN$ - the contents of the control file named N, with its final newline stripped; N - represents the name of the file to be found in the list's control - subdirectory; the name may only include letters and digits +- $control filename$ + the contents of the control file named 'filename', with its final newline + stripped; 'filename' represents the name of the file to be found in the + list's control subdirectory; the name may only include letters and digits - $digestfirst$ (available only in digest) @@ -176,7 +176,7 @@ - $digestthreads$ (available only in digest) - the list of threads included in the digest + the formatted list of threads included in the digest - $digestunsubaddr$ listname+unsubscribe-digest@domain.tld diff -r 21265d660d19 -r 6f8df4842d91 src/prepstdreply.c --- a/src/prepstdreply.c Mon Mar 07 00:30:58 2011 +1100 +++ b/src/prepstdreply.c Tue Feb 22 10:12:42 2011 +1100 @@ -136,8 +136,8 @@ value = concatstr(4, listname, listdelim, "subscribe-nomail@", fqdn); goto concatandreturn; - } else if(strncmp(token, "control", 7) == 0) { - value = token + 7; + } else if(strncmp(token, "control ", 8) == 0) { + value = token + 8; if(*value == '\0') { value = mystrdup(""); goto concatandreturn; @@ -149,10 +149,10 @@ break; } if(*value != '\0') { - value = mystrdup(token + 7); + value = mystrdup(token + 8); goto concatandreturn; } - value = token + 7; + value = token + 8; value = ctrlcontent(listdir, value); if (value == NULL) value = mystrdup("");