From ffbbdd321813dea82ee2ac031d2aeb4b4ddd8a1a Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 15 May 2001 07:23:49 +0000 Subject: Make tests on an attachment's file name possible. Patch from Bob Bell . --- rfc1524.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3