[Httpmail-devel] Ruby error:
Status: Beta
Brought to you by:
fuzz
From: Dane G. A. <da...@av...> - 2002-11-12 19:56:03
|
Greetings, I've been playing with both the Perl and Ruby implementations on Mac OS 10.2.2 (Jaguar) and had a couple questions I was hoping people on the list might be able to help out with. I'm not very skilled in Perl, and I'd never heard of Ruby before running across it here, but I was able to get the Perl version up and running with only minor heartache :) I had to upgrade the default Mac OS Perl install from 5.6.0 -> 5.8.0, and installed expat. I patched the Perl sources for httpmail as recommended by Rob Nagler (thanks Rob!) and was thrilled when I was able to redirect my mail. However, I've been having some Perl problems, (probably related to Mac OS X and switching networks) and would like to get the Ruby version of httpmail working. I have httpmail 0.3, the XMLParser library 0.6.5, and nqxml 1.1.3p1 (which includes uri.rb). When I run: % ruby dav.rb <myHotmailAddress> <myHotmailPwd> <forwardingaddress> dav.rb:55: undefined method `define_http_method_interface' for Net::HTTP:Class (NameError) Any idea what could be causing this error? I searched around to try to find more info about define_http_method_interface, but only found a couple links from Google, and none of them were helpful. If anyone has suggestions, I'd appreciate hearing them. Also, if I figure out the Perl-related problem, I'll post a how-to for configuring httpmail on Mac OS X. (In a nutshell, the problem is that everything works great . . . until I switch my network settings. I'm running Mac OS 10.2.2 on a Powerbook G4, and have 2 network settings: work and home. When I boot my machine, I can use the Perl version of httpmail just fine . . . until I change my network settings. Once I do that, it won't work any more, even if I change it back to the initial network settings. The only way I know to get things working is to reboot . . . which really isn't acceptable :) I saw a post on the list here about how to use use LWP::Debug qw(+ -conns); in get_httpmail.pl to output debugging messages, but that didn't help me narrow down the problem . . .) This project is great, I'd just like to be able to use it w/o rebooting when I change my network settings, and I'm hoping the Ruby version will be easy to get working correctly. Cheers, Dane Avilla |