Package: mime-support
Version: 3.40-1.1
Severity: normal
File: /usr/bin/run-mailcap
Tags: patch
run-mailcap ignores all options in the form -<option>=<value>. The
attached patch fixes this bug.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (900, 'testing'), (600, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
mime-support depends on no packages.
Versions of packages mime-support recommends:
ii file 4.23-2 Determines file type using "magic"
-- no debconf information
--
Jakub Wilk
--- run-mailcap.orig 2008-04-16 16:35:00.000000000 +0200
+++ run-mailcap 2008-04-16 16:34:45.000000000 +0200
@@ -318,12 +318,12 @@
if (m!^(-h|--help)$!) {
Usage();
exit(0);
- } elsif (m!^--(.*?)$!) {
- print STDERR "Warning: definition of \"$1=$2\" overrides value \"${$1}\"\n" if ($ {$1} && $ {$1} != 1);
- $ {$1}=1;
} elsif (m!^--(.*?)=(.*)$!) {
print STDERR "Warning: definition of \"$1=$2\" overrides value \"${$1}\"\n" if ($ {$1} && $ {$1} != $2);
$ {$1}=$2;
+ } elsif (m!^--(.*?)$!) {
+ print STDERR "Warning: definition of \"$1=1\" overrides value \"${$1}\"\n" if ($ {$1} && $ {$1} != 1);
+ $ {$1}=1;
} elsif (m!^[^/:]+/[^/:]+:[^/:]+:!) {
push @files,$_;
} elsif (m!^([^/:]+/[^/:]+):(.*)!) {