I stink at patching. :(
David Morse <svref-/[email protected]> Wed, 16 Jun 2004 09:07:54 -0700 (PDT)
| Newsgroups | gmane.mail.yosucker.general |
|---|---|
| Message-ID | <[email protected]> |
--- Jeffrey F <[email protected]> wrote: > The easiest way to apply this is to put the file in > YoSucker's /lib directory > and type: > patch < sputnik.pm > > Depending on your system, you might need a -p > option. Try -p0 I don't know what my deal is, but I just stink at patching! Can someone stick the patched sputnik.pm on the web somewhere? abu:/usr/local/src/YoSucker-pr55/lib# cp /tmp/sputnik.patch . abu:/usr/local/src/YoSucker-pr55/lib# patch < sputnik.pm patch: **** Only garbage was found in the patch input. abu:/usr/local/src/YoSucker-pr55/lib# less sputnik.patch abu:/usr/local/src/YoSucker-pr55/lib# patch -p0 < sputnik.pm patch: **** Only garbage was found in the patch input. __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail
sputnik.patch
(application/octet-stream, 1.1 KB)
--- sputnik.pm 2004-06-08 06:16:03.000000000 -0400
+++ sputnik.pm 2004-06-15 13:37:01.000000000 -0400
@@ -1485,27 +1485,10 @@
$headeritmz[@headeritmz] = "From YoSucker ".$timenow."\n";
- my $folded = 0;
while (<$handle>) {
- # chomp;
-# if (/\:<\/b><\/td>/) {
- if ($folded) {
- $folded = 0 if /<\/small>/;
- s/<[^>]*>//gs;
- s/\<\;/</gs;
- s/\>\;/>/gs;
- s/\"\;/"/gs;
- s/\'\;/'/gs;
- s/\&\;/\&/gs;
- s/From:(.*?) \|.+$/From:$1/;
- s/From:(.*?) .+$/From:$1/;
- s/\ \;/ /gs;
- $headeritmz[@headeritmz-1] .= $_;
- }
- elsif (/:(<\/small><\/b><\/td>|<\/b><\/td>)/i) {
+ if (/^<tr><td class=label nowrap>/i) {
$headers_fetched = 'yes';
- $folded = 1 unless /(<\/small>|<\/a>)<\/td><\/tr>$/i;
s/<[^>]*>//gs;
s/\<\;/</gs;
s/\>\;/>/gs;
@@ -1518,6 +1501,11 @@
s/^$key/$class->{headtrans}{$key}/g;
}
+ # new stuff to strip out for 100meg yahoo
+ s/^<tr><td class=label nowrap>//gs;
+ s/<\/td><td>//gs;
+ s/<\/td><\/tr>//gs;
+
s/From:(.*?) \|.+$/From:$1/;
s/From:(.*?) .+$/From:$1/;
s/\ \;/ /gs;