Can you open the patch up and see regular text? Something like this:
Code:
--- bayes-learn.sh 2007-07-25 13:27:18.681173076 -0500
+++ bayes-learn-new.sh 2009-09-03 00:18:48.383255310 -0500
@@ -1,7 +1,6 @@
#! /bin/bash
-WORKINGDIR="/home/vmail/aoaforums.com/$1"
-NEWMAILDIR="/.maildir/test/"
+WORKINGDIR="/home/v-mail/aoaforums.com/$1"
BAYESTMPMAILDIR="/.maildir/bayestmp/"
for i in $(ls -1 "$WORKINGDIR$NEWMAILDIR")
do
@@ -11,3 +10,4 @@
/root/bayes_fixup.pl < "$WORKINGDIR$BAYESTMPMAILDIR$i" > "$WORKINGDIR$NEWMAILDIR$i"
rm "$WORKDINGDIR$BAYESTMPMAILDIR$i"
done
+NEWMAILDIR="/.maildir/test/"
(The lines starting with - are the lines to be removed, the ones start with + are the lines to be added. The remaining lines are used for context matching.)
If you can, then it is just a standard patch file produced with diff -u. You can apply it directly, without using bzcat by:
Code:
patch -p1 < name-of-patch-file