about summary refs log tree commit diff stats
path: root/src/HTFWriter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTFWriter.c')
-rw-r--r--src/HTFWriter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/HTFWriter.c b/src/HTFWriter.c
index 54b0aa90..c5e6fbf8 100644
--- a/src/HTFWriter.c
+++ b/src/HTFWriter.c
@@ -535,6 +535,9 @@ PRIVATE char *mailcap_substitute ARGS3(
 		if (s[1] == 't') {
 		    repl = pres->rep->name;
 		    skip = 1;
+		} else if (s[1] == 's') {
+		    repl = fnam;
+		    skip = 1;
 		} else if (!strncasecomp(s+1, "{charset}", 9)) {
 		    repl = anchor->charset;
 		    skip = 9;