home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- # Script to reduce the size of mboxes by removing unnecessary fields in
- # the header of each message.
- # Usage: redux [mbox-file] (default is ./mbox)
-
- FILE=$1
- if [ $# = 0 ]; then
- FILE=./mbox
- fi
- if [ ! -r $FILE ]; then
- echo File $FILE not found.
- exit
- fi
- echo Reducing $FILE\; reduced file in /tmp/reduced >&2
- /usr/bin/egrep -v "^Cc: |^ with BSMTP;|^Received: |^Status: |^Message-Id: |^Comment: |^Reply-To: |^Sender: |^To: |^Return-Path: |^ id " $FILE > /tmp/reduced
- exit
-