summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-05-15 07:23:49 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-05-15 07:23:49 +0000
commitffbbdd321813dea82ee2ac031d2aeb4b4ddd8a1a (patch)
treec21c9985e5373a8f93201b95b4edbd6c870b0a00
parent19db6a4790c72037447eb0556ffa9b013d436301 (diff)
Make tests on an attachment's file name possible. Patch from Bob
Bell <bobbell@zk3.dec.com>.
-rw-r--r--rfc1524.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc1524.c b/rfc1524.c
index 6e7da35f..aa4df6c2 100644
--- a/rfc1524.c
+++ b/rfc1524.c
@@ -293,7 +293,7 @@ static int rfc1524_mailcap_parse (BODY *a,
{
len = mutt_strlen (test_command) + STRING;
safe_realloc ((void **) &test_command, len);
- rfc1524_expand_command (a, NULL, type, test_command, len);
+ rfc1524_expand_command (a, a->filename, type, test_command, len);
if (mutt_system (test_command))
{
/* a non-zero exit code means test failed */