#!/bin/sh # optionally unzip one or more mailboxes, then run mutt case "$#" in 0) exit 1 ;; *) ;; esac for mbox in $* do case "$mbox" in *.gz) ;; *:) mbox=`echo $mbox | sed -e 's/://'` ;; esac if test -f $mbox.gz then gunzip $mbox && mutt -f $mbox && gzip $mbox else mutt -f $mbox fi done exit 0