X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=etc%2Fsendfiles;h=99c170e0095577ae9e4a01844cbe631c20795a62;hb=a97c3e637eaf2e2f4ecd8cb93b11795afb980988;hp=b3f49716fe25557d55ad7f7b71bbe0524b88896b;hpb=f8baa5a34335fc0fc8ccabfabc601d0af73ab769;p=mmh diff --git a/etc/sendfiles b/etc/sendfiles index b3f4971..99c170e 100755 --- a/etc/sendfiles +++ b/etc/sendfiles @@ -12,7 +12,7 @@ usage='Usage: sendfiles [switches] -to recipient -subject subject '"\ or sendfiles [switches] recipient subject file1 [file2 ...] switches are: - -compress [bzip2 | compress | gzip | lzma | none | zip] + -compress [bzip2 | compress | gzip | lzma | none] -from -[delay] (expressed in seconds) -version @@ -145,7 +145,7 @@ fi #### Determine compression method and descriptive info. if [ x"$compress" = x ]; then - for compressor in gzip bzip2 lzma zip compress none; do + for compressor in gzip bzip2 lzma compress none; do if [ x"`finddir $compressor`" = x ]; then :; else compress="$compressor" break @@ -161,8 +161,6 @@ case $compress in conversion='; x-conversions=gzip' ;; lzma) compress='lzma -c'; uncompress='lzma -cd' conversion='; x-conversions=lzma' ;; - zip) compress='zip -q'; uncompress='unzip -p' - conversion='; x-conversions=zip' ;; none) compress=cat uncompress=cat; conversion= ;; *) printf 'sendfiles: unknown compression method "%s"\n' \ "$compress" >&2