From: Thomas Roessler Date: Tue, 15 May 2001 07:23:49 +0000 (+0000) Subject: Make tests on an attachment's file name possible. Patch from Bob X-Git-Tag: mutt-1-3-19-rel~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ffbbdd321813dea82ee2ac031d2aeb4b4ddd8a1a;p=mutt Make tests on an attachment's file name possible. Patch from Bob Bell . --- 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 */