Package: unar
X-Debbugs-Cc: Dag Ågren <[email protected]>
Version: 1.10.1-2+b4
Severity: wishlist
File: /usr/bin/unar

Would be great to support unarchiving mhtml files.

(I currently use

test $# -eq 1 ||{ echo $0: One arg please. 1>&2; exit 42;}
perl -pwle 's/\r$//;' $@| # Workaround for 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869217
/usr/bin/munpack -t 2>&1|
perl -nle '
# Workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=222582
use strict;
use warnings FATAL => q(all);
print STDERR;
if (m@^(part\d+) \((?:text|image)/(\w+)\)$@) {
    my $f = $1 . "." . ( $2 eq "plain" ? "txt" : $2 );
    if ( -f $f ) { print STDERR "$f exists already, skipping"; next }
    else         { die $! unless rename $1, $f }
    print "$1->$f";
}

but I didn't try https://www.volkerschatz.com/unix/uware/unmht.html .)

Reply via email to