Skip to contentSkip to conversation

PATCH: Bugfix for subjectless listtext

PATCH Ben Schmidt 1 participant 1 message Jan 26, 2010

lore
Share & tools
lore
#0 lore raw

I noticed this bug while perusing the code with the view to a future feature implementation. If a listtext has no subject, the first line is taken to be part of the listtext, but does not undergo substitution as it should. Probably rare for it to be needed, but I think it's a bug that it isn't treated properly.

I have *NOT* tested this one. I have neither confirmed the bug is there, nor that the patch fixes it. This is more a 'heads up' that you may like to review this part of the code.

Ben.

src/prepstdreply.c +4 -0
diff -r f4d710c7dc54 -r c9510eaa0130 src/prepstdreply.c
@@ -250,6 +250,10 @@
 	if (line) {
 		utfline = unistr_escaped_to_utf8(line);
 		myfree(line);
+		tmp = utfline;
+		str = substitute(utfline, listaddr, listdelim, tokencount, data, mailname);
+		myfree(tmp);
+		utfline = str;
 	} else {
 		utfline = NULL;
 	}