Re: They've done it again
"Jeffrey F" <[email protected]> Tue, 15 Jun 2004 13:47:46 -0500
| Newsgroups | gmane.mail.yosucker.general |
|---|---|
| Message-ID | <[email protected]> |
Well, This one looks like its in the bag now... Yahoo decided to nicely layout the headers in a table, and YoSucker's parsing logic does not recognize the text as headers. I found where the headers were being parsed and edited the logic accordingly YoSucker still does not handle the transition message (the one Yahoo pops up once your account has been converted). You will need to log in manually at least once, then try this patch. 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'm sending this out as-is. It has seemed to work fine for all my accounts. Please don't yell at me if it doesn't work for you. If you're not experiencing the problem, then by all means DO NOT APPLY THIS PATCH! -- Jeffrey ---------- Original Message ----------- From: Jon Baumgartner <jon-2Y5kQnAlmJQeFak//[email protected]> To: Jeffrey F <[email protected]> Cc: yosucker-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Sent: Tue, 15 Jun 2004 11:54:51 -0400 Subject: Re: [Yosucker-general]They've done it again > Oops. I spoke too soon. YoSucker now downloads the mail, but they all > end up with no subject line, and I think they're getting corrupted > somehow. My mail client (Mozilla Thunderbird) is displaying all Yahoo > HTML-based email as raw text. it didn't do that before. > ------- End of Original Message -------
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;