]> granicus.if.org Git - mutt/commitdiff
Make tests on an attachment's file name possible. Patch from Bob
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 15 May 2001 07:23:49 +0000 (07:23 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 15 May 2001 07:23:49 +0000 (07:23 +0000)
Bell <bobbell@zk3.dec.com>.

rfc1524.c

index 6e7da35fee22844bc77e5fb50cc19edddbf51140..aa4df6c2cd2ff4a766bdb6e45e3511946eab2d41 100644 (file)
--- 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 */