From rlpowell@digitalkingdom.org Mon Apr 21 14:06:08 2003 Received: with ECARTIS (v1.0.0; list lojban-list); Mon, 21 Apr 2003 14:06:09 -0700 (PDT) Received: from rlpowell by digitalkingdom.org with local (Exim 4.12) id 197iUD-0006FE-00; Mon, 21 Apr 2003 14:06:01 -0700 Date: Mon, 21 Apr 2003 14:06:01 -0700 To: random@digitalkingdom.org Cc: lojban-list@lojban.org Subject: [lojban] YahooGroups snarfing/downloading/archiving program!! Message-ID: <20030421210601.GV31828@digitalkingdom.org> Mail-Followup-To: random, lojban-list@lojban.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i From: Robin Lee Powell X-archive-position: 4878 X-ecartis-version: Ecartis v1.0.0 Sender: lojban-list-bounce@lojban.org Errors-to: lojban-list-bounce@lojban.org X-original-sender: rlpowell@digitalkingdom.org Precedence: bulk Reply-to: lojban-list@lojban.org X-list: lojban-list I've been looking for one of these for years! http://parthe.lpthe.jussieu.fr/~zeitlin/yahoo2mbox.html It even un-munges the e-mail addresses!! YAAAAY! There are two non-trivial bugs in it. Here's the mail I sent him: Problems: You have $mboxname |= $groupname; where you mean to use ||=. Secondly, it didn't actually handle the advertising redirects at all! Changing: # go to the new page if ( $url ) { $request->uri($url); $response = $ua->simple_request($request); } To: # go to the new page if ( $url ) { $request->uri($url); $response = $ua->simple_request($request); $request->uri($msgUrl); $response = $ua->simple_request($request); } Around line 926 seems to fix this. It appears to do advertising redirects on every message that is 0 mod 4, btw. By the way, I'm *very* impressed at your ability to unmangle the e-mail addresses! Way to go! (Even if it's not you that figured it out. 8). -Robin -- http://www.digitalkingdom.org/~rlpowell/ *** I'm a *male* Robin. .i le pamoi velru'e zo'u crepu le plibu taxfu .i le remoi velru'e zo'u mo .i le cimoi velru'e zo'u ba'e prali .uisai http://www.lojban.org/ *** to sa'a cu'u lei pibyta'u cridrnoma toi