Mercurial > hg > mlmmj
diff src/send_digest.c @ 754:ecb991e41a4c
Add $controlN$ substitution
The interfaces to substitute() and substitute_one() have changed, as they
now need to know the listdir to be able to find control files
author | Ben Schmidt |
---|---|
date | Wed, 06 Oct 2010 23:30:26 +1100 |
parents | b00eb39643c1 |
children | c3ee2bfaeb02 |
line wrap: on
line diff
--- a/src/send_digest.c Wed Oct 06 23:26:26 2010 +1100 +++ b/src/send_digest.c Wed Oct 06 23:30:26 2010 +1100 @@ -263,7 +263,7 @@ utfsub = unistr_escaped_to_utf8(line + 9); } - utfsub2 = substitute(utfsub, listaddr, listdelim, 5, subst_data); + utfsub2 = substitute(utfsub, listaddr, listdelim, 5, subst_data, listdir); subject = unistr_utf8_to_header(utfsub2); myfree(utfsub); myfree(utfsub2); @@ -362,7 +362,7 @@ myfree(line); tmp = substitute(utfline, listaddr, listdelim, - 5, subst_data); + 5, subst_data, listdir); myfree(utfline); if(writen(fd, tmp, strlen(tmp)) < 0) {