httpmail-devel Mailing List for HTTPMail
Status: Beta
Brought to you by:
fuzz
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(17) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(5) |
Feb
|
Mar
|
Apr
(12) |
May
(16) |
Jun
(9) |
Jul
|
Aug
(1) |
Sep
|
Oct
(3) |
Nov
(10) |
Dec
(1) |
2003 |
Jan
(2) |
Feb
(4) |
Mar
|
Apr
(2) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Daniel T. <dan...@a1...> - 2006-05-08 11:05:58
|
Hi @all! I would like to use an email provider (www.xemail.de), that uses the same H= ttpmail protocol, as Hotmail. Currently i'm using Linux and Balsa as my email client. I would like to use= your Httpmail proxy to access to this mailbox. I would like to ask you, that it's possible to access to the mailbox throug= h this proxy, like using imap protocol (so copying, moving, ... messages in= to the mailbox)? Thanks for your answer! Daniel |
From: Toru M. <tor...@ya...> - 2003-08-18 21:56:02
|
>> >The thing I have found is that the XMLHTTP object no longer works to >> connect. >> It does work fine. (...only if you change the security setting.) Guess what. Today, I applied Win2000 Service pack 4. I restarted my PC. I tried to continue debuging my code using XMLHTTP... The same exact code stoped working. I get ole error. I guess you are right. XMLHTTP is gone... At least in server environment, like win2k. In win 9x(such as win98, 98SE, Me), you MUST use XMLHTTP, and under Win2000 or XP, you MUST use ServerXMLHTTP. I even tried VB Code. Nop. It does not work anymore. The same exact code fails. Even, old "MSXML2.XMLHTTPRequest" is gone too. I just ran this program yesturday! I looked up MSXML4 sdk help: "MSXML 4.0 uses WinHTTP 5.0 for the ServerXMLHTTP object, a server-side interface for handling HTTP requests. This object differs from the XMLHTTP object, which performs in a similar role as a client-side interface on most computers running Windows. The primary difference between these two interfaces is that XMLHTTP cannot be used in a server environment. This is because it depends upon the WinInet component, which was not designed to provide adequate performance in server-side use" Hope this info helps. >> >I have had to use IServerXMLHTTP interface to do EVERYTHING. >> Requirements >> Supported platforms include Microsoft Windows 2000, or Microsoft Windows NT >> 4.0 >> with Microsoft Internet Explorer 5.01 (or later) installed. >> ServerXMLHTTP fails on other platforms, such as Microsoft Windows 98. >> {Microsoft XML Core Services (MSXML) 4.0 SDK} >> >> >> >I have an article >> >being submitted to Delphi Informant on access to Hotmail from Delphi, >> including >> >SENDING MESSAGES via Hotmail and synchronizing HM Contacts with your local >> WAB. >> >It also includes a lot of functionality that is not in the VB example, such >> as >> >creating/deletion of folders, emptying of the trash folder, etc. >> > >> >Once I get the article published, I'd be more than happy to post the units >> for >> >you to see. The publishing schedule looks to be January. >> >> Oh..That would be nice. thanks. >> >> >BTW, I am also writing a component that encapsulates all this functionality. >> > >> >> Right now I'm trying to use Indy HTTP Client component to get around this >> issue. >> I believe Wininet does not redirect if the security option does not allow. >> >> But the thing right now is that the Indy's HTTP component does not offer >> "PROPFIND"..... >> >> >> > >> >--- Toru Marumoto <tor...@ya...> wrote: >> >> >> >> I have a working sample in Delphi. >> >> It uses MSXML3(XMLHTTP). >> >> >> >> My problem is that in order to connect to Hotmail server, >> >> I have to change the Internet Security settings. >> >> { >> >> Internet Option-> security-> {Internet} Custormize-> >> >> allow(or show dialog) data source access between different domain. >> >> } >> >> otherwise the soft hangs up when trying to connect. >> >> >> >> I found the same problem in your VB sample project. >> >> But Outlook Express has no problem. >> >> >> >> Does any one have a solution to this? >> >> >> >> >> >> I might have to change registry programmatically. >> >> But that's the last thing I want to do. >> >> >> >> Win 2000 >> >> MSXML2.6/3/4 >> >> > > >__________________________________ >Do you Yahoo!? >Yahoo! SiteBuilder - Free, easy-to-use web site design software >http://sitebuilder.yahoo.com > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ >Httpmail-devel mailing list >Htt...@li... >https://lists.sourceforge.net/lists/listinfo/httpmail-devel __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ |
From: Toru M. <tor...@ya...> - 2003-08-15 22:42:05
|
>There are some Perl, Ruby and Java implementations out there that >show you how to do it with regulat TCP/IP (HTTP). > >I think I even saw one in C++ That used WinInet functions. >Can't remember though... It is easy to use WinInet, but WinInet checks "Internet Security Option" (I think). >>> Internet Option-> security-> {Internet} Custormize-> >>> allow(or show dialog) data source access between different domain. and if it does not allow, the program hangs up. just like everybody reports: http://sourceforge.net/tracker/?func=detail&atid=118691&aid=546984&group_id=18691 XMLHTTP uses WinInet and IServerXMLHTTP does not. That's why you don't get error. But I don't wanna use ServerXMLHTTP since it does not work on win9x. So what I am trying to do is using indy's http component. Getting redirect URLs manually... and that's kinda stuff. just like Perl and other implementations do. But indy's http component does not support Digest Authentication right now. Also you can't specify your own Method other than "Post, Get, ... etc" Perl is easy...when it comes to networking... >--- Toru Marumoto <tor...@ya...> wrote: >> Hi >> >> >> >The thing I have found is that the XMLHTTP object no longer works to >> connect. >> It does work fine. (...only if you change the security setting.) >> >> >I have had to use IServerXMLHTTP interface to do EVERYTHING. >> Requirements >> Supported platforms include Microsoft Windows 2000, or Microsoft Windows NT >> 4.0 >> with Microsoft Internet Explorer 5.01 (or later) installed. >> ServerXMLHTTP fails on other platforms, such as Microsoft Windows 98. >> {Microsoft XML Core Services (MSXML) 4.0 SDK} >> >> >> >I have an article >> >being submitted to Delphi Informant on access to Hotmail from Delphi, >> including >> >SENDING MESSAGES via Hotmail and synchronizing HM Contacts with your local >> WAB. >> >It also includes a lot of functionality that is not in the VB example, such >> as >> >creating/deletion of folders, emptying of the trash folder, etc. >> > >> >Once I get the article published, I'd be more than happy to post the units >> for >> >you to see. The publishing schedule looks to be January. >> >> Oh..That would be nice. thanks. >> >> >BTW, I am also writing a component that encapsulates all this functionality. >> > >> >> But the thing right now is that the Indy's HTTP component does not offer >> "PROPFIND"..... __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ |
From: Eddie S. <esh...@ya...> - 2003-08-15 20:05:23
|
There are some Perl, Ruby and Java implementations out there that show you how to do it with regulat TCP/IP (HTTP). I think I even saw one in C++ That used WinInet functions. Can't remember though... --- Toru Marumoto <tor...@ya...> wrote: > Hi > > > >The thing I have found is that the XMLHTTP object no longer works to > connect. > It does work fine. (...only if you change the security setting.) > > >I have had to use IServerXMLHTTP interface to do EVERYTHING. > Requirements > Supported platforms include Microsoft Windows 2000, or Microsoft Windows NT > 4.0 > with Microsoft Internet Explorer 5.01 (or later) installed. > ServerXMLHTTP fails on other platforms, such as Microsoft Windows 98. > {Microsoft XML Core Services (MSXML) 4.0 SDK} > > > >I have an article > >being submitted to Delphi Informant on access to Hotmail from Delphi, > including > >SENDING MESSAGES via Hotmail and synchronizing HM Contacts with your local > WAB. > >It also includes a lot of functionality that is not in the VB example, such > as > >creating/deletion of folders, emptying of the trash folder, etc. > > > >Once I get the article published, I'd be more than happy to post the units > for > >you to see. The publishing schedule looks to be January. > > Oh..That would be nice. thanks. > > >BTW, I am also writing a component that encapsulates all this functionality. > > > > Right now I'm trying to use Indy HTTP Client component to get around this > issue. > I believe Wininet does not redirect if the security option does not allow. > > But the thing right now is that the Indy's HTTP component does not offer > "PROPFIND"..... > > > > > >--- Toru Marumoto <tor...@ya...> wrote: > >> > >> I have a working sample in Delphi. > >> It uses MSXML3(XMLHTTP). > >> > >> My problem is that in order to connect to Hotmail server, > >> I have to change the Internet Security settings. > >> { > >> Internet Option-> security-> {Internet} Custormize-> > >> allow(or show dialog) data source access between different domain. > >> } > >> otherwise the soft hangs up when trying to connect. > >> > >> I found the same problem in your VB sample project. > >> But Outlook Express has no problem. > >> > >> Does any one have a solution to this? > >> > >> > >> I might have to change registry programmatically. > >> But that's the last thing I want to do. > >> > >> Win 2000 > >> MSXML2.6/3/4 > >> __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Toru M. <tor...@ya...> - 2003-08-15 19:06:11
|
Hi >The thing I have found is that the XMLHTTP object no longer works to connect. It does work fine. (...only if you change the security setting.) >I have had to use IServerXMLHTTP interface to do EVERYTHING. Requirements Supported platforms include Microsoft Windows 2000, or Microsoft Windows NT 4.0 with Microsoft Internet Explorer 5.01 (or later) installed. ServerXMLHTTP fails on other platforms, such as Microsoft Windows 98. {Microsoft XML Core Services (MSXML) 4.0 SDK} >I have an article >being submitted to Delphi Informant on access to Hotmail from Delphi, including >SENDING MESSAGES via Hotmail and synchronizing HM Contacts with your local WAB. >It also includes a lot of functionality that is not in the VB example, such as >creating/deletion of folders, emptying of the trash folder, etc. > >Once I get the article published, I'd be more than happy to post the units for >you to see. The publishing schedule looks to be January. Oh..That would be nice. thanks. >BTW, I am also writing a component that encapsulates all this functionality. > Right now I'm trying to use Indy HTTP Client component to get around this issue. I believe Wininet does not redirect if the security option does not allow. But the thing right now is that the Indy's HTTP component does not offer "PROPFIND"..... > >--- Toru Marumoto <tor...@ya...> wrote: >> >> I have a working sample in Delphi. >> It uses MSXML3(XMLHTTP). >> >> My problem is that in order to connect to Hotmail server, >> I have to change the Internet Security settings. >> { >> Internet Option-> security-> {Internet} Custormize-> >> allow(or show dialog) data source access between different domain. >> } >> otherwise the soft hangs up when trying to connect. >> >> I found the same problem in your VB sample project. >> But Outlook Express has no problem. >> >> Does any one have a solution to this? >> >> >> I might have to change registry programmatically. >> But that's the last thing I want to do. >> >> Win 2000 >> MSXML2.6/3/4 >> > > >__________________________________ >Do you Yahoo!? >Yahoo! SiteBuilder - Free, easy-to-use web site design software >http://sitebuilder.yahoo.com > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ >Httpmail-devel mailing list >Htt...@li... >https://lists.sourceforge.net/lists/listinfo/httpmail-devel __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ |
From: Eddie S. <esh...@ya...> - 2003-08-15 13:34:03
|
The thing I have found is that the XMLHTTP object no longer works to connect. I have had to use IServerXMLHTTP interface to do EVERYTHING. I have an article being submitted to Delphi Informant on access to Hotmail from Delphi, including SENDING MESSAGES via Hotmail and synchronizing HM Contacts with your local WAB. It also includes a lot of functionality that is not in the VB example, such as creating/deletion of folders, emptying of the trash folder, etc. Once I get the article published, I'd be more than happy to post the units for you to see. The publishing schedule looks to be January. BTW, I am also writing a component that encapsulates all this functionality. --- Toru Marumoto <tor...@ya...> wrote: > > I have a working sample in Delphi. > It uses MSXML3(XMLHTTP). > > My problem is that in order to connect to Hotmail server, > I have to change the Internet Security settings. > { > Internet Option-> security-> {Internet} Custormize-> > allow(or show dialog) data source access between different domain. > } > otherwise the soft hangs up when trying to connect. > > I found the same problem in your VB sample project. > But Outlook Express has no problem. > > Does any one have a solution to this? > > > I might have to change registry programmatically. > But that's the last thing I want to do. > > Win 2000 > MSXML2.6/3/4 > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Toru M. <tor...@ya...> - 2003-08-15 11:10:54
|
Hello I just joined the list. I have a working sample in Delphi. It uses MSXML3(XMLHTTP). My problem is that in order to connect to Hotmail server, I have to change the Internet Security settings. { Internet Option-> security-> {Internet} Custormize-> allow(or show dialog) data source access between different domain. } otherwise the soft hangs up when trying to connect. I found the same problem in your VB sample project. But Outlook Express has no problem. Does any one have a solution to this? I might have to change registry programmatically. But that's the last thing I want to do. thanks Win 2000 MSXML2.6/3/4 __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ |
From: Carl S. <csy...@ft...> - 2003-07-14 16:52:53
|
Greetings to any of these ports have the ability to send email via HM. Thanks -- Carl sychowski <csy...@ft...> |
From: M <mb...@my...> - 2003-06-02 19:55:47
|
I have been working to port the VB code included in the HTTPMail zip file to Delphi. It was working flawlessly until recently. I get Access denied errors. I have even tried the running VB code and it exhibits the same problem. Has anyone seen any problems or changes in the way HM works? _______________________________________________ No banners. No pop-ups. No kidding. Introducing My Way - http://www.myway.com |
From: Pabs3 <pa...@bo...> - 2003-04-29 10:54:58
|
Hi all, If you add the changes mentioned in the 3 comments (plus one dup) attached to the folder enum bug to the cvs version of the ruby implementation then presto you can enumerate all your hotmail folders. Now to add dumping folders to mboxes/Maildirs Bye, Pabs ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |
From: Tony S. <sau...@xt...> - 2003-04-15 13:24:09
|
Hi all, I have now redeveloped Dave's original POP3 proxy interface as an SMTP interface. Working on a Win98 platform I use a task scheduler to kick of the routine on regular basis. This task checks 1 or more hotmail accounts and if mail is found downloads the message and then sends it on an SMTP server. Once acknowledged by the SMTP server the messsage is deleted rom the Hotmail server. A rudimentary SPAM filter is also included cause we all need one for Hotmail don't we :-(. (but I'm learning that I have a lot to learn about spam, spammers and spam filters) I note the comments on the list (bug reports) that an alternative interface (non POP3) was required by some. If my code is useful to the project just let me know and tell me where to send it. Regards Tony Sauri |
From: Mickael Faivre-M. <mi...@ea...> - 2003-02-26 20:21:29
|
Hi Dave, > Try logging how Outlook Express does it. Thanks for the tip. Hotmail is responding with appropriate encoding. When reading a chinese mail it uses the big5 encoding (Taiwan) <?xml version="1.0" encoding="big5"?> So it does not uses Windows-1252 only, and that's logical. Now the big question is : how comes it replied with big5 ? What was special in the request ? Well, nothing..... It was a standard request : HTTPMAIL: 04:08:29 [tx] PROPFIND http://bay2.oe.hotmail.com/cgi-bin/hmdata/fa...@ho.../folders/ACTIVE / <?xml version="1.0"?> <D:propfind xmlns:D="DAV:" xmlns:hm="urn:schemas:httpmail:" xmlns:m="urn:schemas:mailheader:"> <D:prop> <D:isfolder/> <hm:read/> <m:hasattachment/> <m:to/> <m:from/> <m:subject/> <m:date/> <D:getcontentlength/> </D:prop> </D:propfind> So I don't get it... Mickael. |
From: Mickael Faivre-M. <mi...@ea...> - 2003-02-26 17:28:44
|
Hi Dave, << I think Hotmail only supports Windows-1252. I don't know of any way to change it. >> Then maybe we don't have to change it. If outlook is using the HTTPMail protocol and can display my Hotmail french (and chinese in UTF-16) emails correctly, then it exists another solution. Currently I receive this kind of response : <?xml version="1.0" encoding="Windows-1252"?> [...] <m:subject>Mandrake Newsletter - MandrakeSoft pr?nt ?olutions Linux, 4-</m:subject> and the doc.loadXML method fails because of the non-escaped french characters: Code:-1072896760 Reason: An invalid character was found in text content. srcText:Mandrake Newsletter - MandrakeSoft pr Mickael. |
From: Dave D. <dav...@ho...> - 2003-02-26 16:58:16
|
I think Hotmail only supports Windows-1252. I don't know of any way to change it. Dave On Wednesday, February 26, 2003, at 07:50 AM, Mickael Faivre-Macon wrote: > Hi, > > I get this error when loading the xml : (doc.loadXML) > > Code: -1072896760 > "An invalid character was found in text content." > > It is because I have french characters in my emails. The response from > Hotmail says that it use Windows-1252 encoding, but I need the > response to > be encoded as UTF-16 so the french characters does not end like ??? > > Do you know how to get an encoded response ? > > Mickael. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Httpmail-devel mailing list > Htt...@li... > https://lists.sourceforge.net/lists/listinfo/httpmail-devel > |
From: Mickael Faivre-M. <mi...@ea...> - 2003-02-26 15:51:07
|
Hi, I get this error when loading the xml : (doc.loadXML) Code: -1072896760 "An invalid character was found in text content." It is because I have french characters in my emails. The response from Hotmail says that it use Windows-1252 encoding, but I need the response to be encoded as UTF-16 so the french characters does not end like ??? Do you know how to get an encoded response ? Mickael. |
From: Dave D. <dav...@ho...> - 2003-01-14 19:02:17
|
Have you tried the cvs code? I try to keep it up to date with patches submitted to the list. Dave ----Original Message Follows---- From: Pabs3 <pa...@bo...> To: htt...@li... Subject: [Httpmail-devel] Patches uploaded? Date: Mon, 13 Jan 2003 00:47:52 -0500 Unfortunately sf.net doesn't seem to archive the attachments to messages in this mailing list, so people not on the list (inc me until now) can't get at them. Would anyone be willing to upload some of the more recent patches to Sourceforge or somewhere else? Preferably the perl one(s) since the ruby version in 0.3 doesn't seem to allow downloading messages instead of forwarding. Thanks, Pabs ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Httpmail-devel mailing list Htt...@li... https://lists.sourceforge.net/lists/listinfo/httpmail-devel _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail |
From: Pabs3 <pa...@bo...> - 2003-01-13 05:50:58
|
Unfortunately sf.net doesn't seem to archive the attachments to messages in this mailing list, so people not on the list (inc me until now) can't get at them. Would anyone be willing to upload some of the more recent patches to Sourceforge or somewhere else? Preferably the perl one(s) since the ruby version in 0.3 doesn't seem to allow downloading messages instead of forwarding. Thanks, Pabs |
From: Tony S. <sau...@xt...> - 2002-12-07 23:01:13
|
Hi Dave I have attached my version of HTTPMailClient.pm Sorry for the delay but I suddenly got busy and then I wanted to clean up the code a little and (of course test out the modifications thoroughly). This version works fine on a Win32 platform (I can only test in W9x) with ActiveState Perl I have tried to fully comment the changes I have made but if you have any questions please do not hesitate to drop me a line Regards Tony Sauri |
From: Rob N. <na...@bi...> - 2002-11-27 14:58:57
|
Tim Connop writes: > quits! As far as I can make out (not a perl expert) it's dieing in > HTTPMailClient.PM in the getMessageHeaders sub at the line: > > my $res = $self->{ua}->request($req); Would you be able to send us the stack trace or at least the line containing the error message? It's running fine for me. Are you using it with hotmail.com or msn.com? Rob |
From: Tim C. <tim...@to...> - 2002-11-26 21:35:01
|
Hi, i'm using the perl version of HTTPMail and have managed to get round most of the obstacles thanks to some of the previous posts. However I am now at the stage where it logs in ok, then starts to check for messages and just quits! As far as I can make out (not a perl expert) it's dieing in HTTPMailClient.PM in the getMessageHeaders sub at the line: my $res = $self->{ua}->request($req); I've used Rob Naglers tidy up patch so it will run strict, but what I have noticed is that $curfolder is not getting set to anything. Like I said before i'm no where near an expert so I don't know if this is related. If any could offer suggestions i'd greatly appreciate it as i feel that i'm getting very close. Regards, Tim Connop ti...@de... |
From: Dane G. A. <da...@av...> - 2002-11-13 22:53:36
|
This was _super_ helpful: > The book is available online at http://www.rubycentral.com/book/ (the > dns for the domain is messed up, so try http://165.193.123.250/book/ > if that doesn't work). I spent a bunch of time looking for the book yesterday, but all the links were broken. I thought the site was gone :) > You said you installed nqxml to get uri.rb? uri.rb got included with > the Ruby standard library at some point, so you shouldn't need nqxml. > Maybe that's causing a conflict, I don't know. Hmm . . . could be. I'll check this out . . . > Ruby is a dynamic language, so the following line: > > res = http_con.method(req_method.downcase).call(path_query, req_data, > headers) > > (where req_method is 'PROPFIND') tells the Ruby compiler to call the > method propfind(path_query, req_data, headers). It's sorta like > reflection in Java, RTTI in C++, etc. Yeah, it's funny how looking at things after taking a break sometimes makes all the difference. I got your message after driving home from work, and I can see now how instead of calling propfind(arg1, arg2, arg3) this particular piece of code is using: method(<method_name>).call(<arg1>, <arg2>, <arg3>) After I read your reply, I looked at the code and it immediately made sense. Thx for all the tips. Time for more digging :) Cheers, -Dane |
From: Dave D. <dav...@ho...> - 2002-11-13 22:09:42
|
You said you installed nqxml to get uri.rb? uri.rb got included with the Ruby standard library at some point, so you shouldn't need nqxml. Maybe that's causing a conflict, I don't know. PROPFIND is a WebDAV method. Basically it's an HTTP POST by a different name. There's some voodoo at the top of dav.rb that lets the HTTP guy know how to process it. Ruby is a dynamic language, so the following line: res = http_con.method(req_method.downcase).call(path_query, req_data, headers) (where req_method is 'PROPFIND') tells the Ruby compiler to call the method propfind(path_query, req_data, headers). It's sorta like reflection in Java, RTTI in C++, etc. For learning more about Ruby, I recommend the book Programming Ruby by Dave Thomas and Andrew Hunt. Dave Thomas is one of the most active members in the Ruby community and he's an all around nice guy (I've met him twice). The book is available online at http://www.rubycentral.com/book/ (the dns for the domain is messed up, so try http://165.193.123.250/book/ if that doesn't work). Dave ----Original Message Follows---- From: "Dane G. Avilla" <da...@av...> Reply-To: dan...@av... To: "Dave Dunkin" <dav...@ho...> CC: htt...@so... Subject: Re: [Httpmail-devel] Ruby error: Date: Wed, 13 Nov 2002 16:04:51 -0500 On Wednesday, November 13, 2002, at 12:41 PM, Dave Dunkin wrote: >10.2 comes with Ruby 1.6.7 installed (that's the one in /usr/lib/ruby). It >shouldn't hurt anything to have Ruby installed twice in different >locations, just be sure you know which one is executing. Ok, thx for the info. I ended up blowing away the new version I had built (in /usr/local/lib/ruby) and reinstalled XMLParser and nqxml just to be safe. Unfortunately, I'm still getting the cookie error. I've been looking over the code, and I've been able to figure out that the error is caused by calling extract_cookies(res) where res == nil, but beyond that, I'm lost. >The cookies error is not related to the MD5 error. I haven't seen the >cookies error before. I haven't tested thm.rb in a while either. See if you >can get it to work with gethttpmail.rb. Unfortunately, the cookie error is manifested using both gethttpmail.rb and thm.rb since they both work basically the same way. Looking at the stack trace from the crash (reported in an earlier email), I see this line in the trace and it's a little confusing . . . : dav.rb(285): res = @session.http_wrap('PROPFIND', @uri, {}, doc.to_s) I guess I'm a little confused at what 'PROPFIND' is, or what it does. In http_wrap(), the 'PROPFIND' object has the downcase property invoked on it: dav.rb(134): res = http_con.method(req_method.downcase).call(path_query, req_data, headers) and that call is apparently being directed to propfind() at dav.rb(55), but I don't understand how PROPFIND is mapped to propfind(), and where arguments for propfind() are located . . . Remember, I'm a Ruby novice :) Any pointers you can give, or places you can recommend where I can learn more on my own would be appreciated. Cheers, -Dane _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus |
From: Dane G. A. <da...@av...> - 2002-11-13 21:04:54
|
On Wednesday, November 13, 2002, at 12:41 PM, Dave Dunkin wrote: > 10.2 comes with Ruby 1.6.7 installed (that's the one in > /usr/lib/ruby). It shouldn't hurt anything to have Ruby installed > twice in different locations, just be sure you know which one is > executing. Ok, thx for the info. I ended up blowing away the new version I had built (in /usr/local/lib/ruby) and reinstalled XMLParser and nqxml just to be safe. Unfortunately, I'm still getting the cookie error. I've been looking over the code, and I've been able to figure out that the error is caused by calling extract_cookies(res) where res == nil, but beyond that, I'm lost. > The cookies error is not related to the MD5 error. I haven't seen the > cookies error before. I haven't tested thm.rb in a while either. See > if you can get it to work with gethttpmail.rb. Unfortunately, the cookie error is manifested using both gethttpmail.rb and thm.rb since they both work basically the same way. Looking at the stack trace from the crash (reported in an earlier email), I see this line in the trace and it's a little confusing . . . : dav.rb(285): res = @session.http_wrap('PROPFIND', @uri, {}, doc.to_s) I guess I'm a little confused at what 'PROPFIND' is, or what it does. In http_wrap(), the 'PROPFIND' object has the downcase property invoked on it: dav.rb(134): res = http_con.method(req_method.downcase).call(path_query, req_data, headers) and that call is apparently being directed to propfind() at dav.rb(55), but I don't understand how PROPFIND is mapped to propfind(), and where arguments for propfind() are located . . . Remember, I'm a Ruby novice :) Any pointers you can give, or places you can recommend where I can learn more on my own would be appreciated. Cheers, -Dane |
From: Dave D. <dav...@ho...> - 2002-11-13 17:41:21
|
Dane Sorry for the confusion -- I was trying to get the Ruby version working on 10.2. 10.2 comes with Ruby 1.6.7 installed (that's the one in /usr/lib/ruby). It shouldn't hurt anything to have Ruby installed twice in different locations, just be sure you know which one is executing. The cookies error is not related to the MD5 error. I haven't seen the cookies error before. I haven't tested thm.rb in a while either. See if you can get it to work with gethttpmail.rb. Dave ----Original Message Follows---- From: "Dane G. Avilla" <da...@av...> To: Dave Dunkin <dav...@ho...> CC: htt...@so... Subject: Re: [Httpmail-devel] Ruby error: Date: Wed, 13 Nov 2002 10:06:39 -0500 Dave, Thanks a bunch for the help. I'm getting another error now, but I'm thinking it may be related to my Ruby installation . . . I'm a total Ruby newbie (groans from the peanut gallery), but bought "Ruby in a Nutshell" last night and it looks quite useful. When I run thm.rb with the updated dav.rb file (for Ruby 1.6.7 & xmlparser 0.6.5): ruby thm.rb MyA...@ho... <MyHotmailPwd> <MyForwardingAddress> I get: ./cookies.rb:80:in `extract_cookies': undefined method `key?' for nil (NameError) from ./cookies.rb:43:in `request' from /usr/lib/ruby/1.6/net/http.rb:668:in `request' from /usr/lib/ruby/1.6/net/http.rb:667:in `start' from /usr/lib/ruby/1.6/net/http.rb:667:in `request' from ./cookies.rb:42:in `request' from ./dav.rb:56:in `propfind' from ./dav.rb:134:in `call' from ./dav.rb:134:in `http_wrap' from ./dav.rb:285:in `propfind' from ./httpmail.rb:24:in `start' from thm.rb:12 I had configured and installed Ruby 1.6.7 from the sources on the ruby-lang.org site. When I got your email this AM, I went hunting for md5.bundle and realized that I've got 2 different versions of md5.bundle, and actually it looks like I've got 2 Ruby installations . . . one at /usr/lib/ruby/1.6/powerpc-darwin6.0/digest/md5.bundle and another at: /usr/local/lib/ruby/1.6/powerpc-darwin6.2/digest/md5.bundle Both dir trees have pretty much the same files under the ruby directory . . . When I built Ruby, I took all the default settings (aside from the fact I had to apply the ruby-1.6.7-osx10.2.patch to 'configure' and 'error.c'). Would having two Ruby installs like this be causing a problem? (Do you know if 10.2 includes a Ruby distro?) >Honestly, I don't use the Perl version. And coincidentally, I've been >trying to get it to work on OS X 10.2 the last couple days. I've run into a >snag with the md5 stuff though... Sorry, I'm a little confused here . . . are you saying you were trying to get the Perl version working on 10.2, or the Ruby version? As I mentioned before, I've got the Perl version working, more or less, on 10.2 and can post the steps I took in configuring it, if it would be helpful. Also, from what I can tell, the error I'm getting in cookies.rb isn't related to md5, is it? (or am I simply confused :) Thanks for all the help, -Dane ------------------------------------------------------- This sf.net email is sponsored by: Are you worried about your web server security? Click here for a FREE Thawte Apache SSL Guide and answer your Apache SSL security needs: http://www.gothawte.com/rd523.html _______________________________________________ Httpmail-devel mailing list Htt...@li... https://lists.sourceforge.net/lists/listinfo/httpmail-devel _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus |
From: Dane G. A. <da...@av...> - 2002-11-13 15:06:39
|
Dave, Thanks a bunch for the help. I'm getting another error now, but I'm thinking it may be related to my Ruby installation . . . I'm a total Ruby newbie (groans from the peanut gallery), but bought "Ruby in a Nutshell" last night and it looks quite useful. When I run thm.rb with the updated dav.rb file (for Ruby 1.6.7 & xmlparser 0.6.5): ruby thm.rb MyA...@ho... <MyHotmailPwd> <MyForwardingAddress> I get: ./cookies.rb:80:in `extract_cookies': undefined method `key?' for nil (NameError) from ./cookies.rb:43:in `request' from /usr/lib/ruby/1.6/net/http.rb:668:in `request' from /usr/lib/ruby/1.6/net/http.rb:667:in `start' from /usr/lib/ruby/1.6/net/http.rb:667:in `request' from ./cookies.rb:42:in `request' from ./dav.rb:56:in `propfind' from ./dav.rb:134:in `call' from ./dav.rb:134:in `http_wrap' from ./dav.rb:285:in `propfind' from ./httpmail.rb:24:in `start' from thm.rb:12 I had configured and installed Ruby 1.6.7 from the sources on the ruby-lang.org site. When I got your email this AM, I went hunting for md5.bundle and realized that I've got 2 different versions of md5.bundle, and actually it looks like I've got 2 Ruby installations . . . one at /usr/lib/ruby/1.6/powerpc-darwin6.0/digest/md5.bundle and another at: /usr/local/lib/ruby/1.6/powerpc-darwin6.2/digest/md5.bundle Both dir trees have pretty much the same files under the ruby directory . . . When I built Ruby, I took all the default settings (aside from the fact I had to apply the ruby-1.6.7-osx10.2.patch to 'configure' and 'error.c'). Would having two Ruby installs like this be causing a problem? (Do you know if 10.2 includes a Ruby distro?) > Honestly, I don't use the Perl version. And coincidentally, I've been > trying to get it to work on OS X 10.2 the last couple days. I've run > into a snag with the md5 stuff though... Sorry, I'm a little confused here . . . are you saying you were trying to get the Perl version working on 10.2, or the Ruby version? As I mentioned before, I've got the Perl version working, more or less, on 10.2 and can post the steps I took in configuring it, if it would be helpful. Also, from what I can tell, the error I'm getting in cookies.rb isn't related to md5, is it? (or am I simply confused :) Thanks for all the help, -Dane |