View Single Post
  #52 (permalink)  
Old 3rd September, 2009, 06:21 AM
Gizmo's Avatar
Gizmo Gizmo is offline
Chief BBS Administrator
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 16,178
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

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

Last edited by Gizmo; 3rd September, 2009 at 06:23 AM.
Reply With Quote