Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d5ec5b3241
Fetching contributors…

Cannot retrieve contributors at this time

executable file 15 lines (10 sloc) 0.428 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash

for PATCH in $*
do
TMPFILE=`mktemp example.XXXXXX` || exit 1

echo "TMPFILE=$TMPFILE"
perl ~/linux/scripts/mime_dump --headers From,Date,Subject,To,Cc,Message-ID,Content-Disposition -F -f $PATCH > $TMPFILE
mv $TMPFILE $PATCH

formail -k -X From: -X Subject: -X From -X To: -X Cc: -X Date: -X Message-ID: -X Content-Disposition: -X Content-Type: -X MIME-Version: < $PATCH > $TMPFILE
mv $TMPFILE $PATCH


done
Something went wrong with that request. Please try again.