From: Craig S. <csc...@ya...> - 2004-03-27 16:12:05
|
--- Dan Rich <dr...@em...> wrote: > Ah, have to love answering my own questions..... > > Dan Rich wrote: > > > I'm just getting started with mh, and have run into two problems. > > > > 2. I have the IM support working -- sort of. I've put a main.html in > > my code directory that contains the code: > > This I have working now -- most of the time. I'm using the following > code instead of what I used to have: > > use vars '%log_to_im_list'; > > if ($Reload or $Startup) { > my $msg; > if ($Startup) { > $msg = "mh started on lapseofthought.com at ". localtime(time); > } else { > $msg = "mh restarted on lapseofthought.com at ". localtime(time); > } > net_im_send(pgm => 'AOL', text => $msg, to => "WWWdrich"); > $log_to_im_list{"AOL WWWdrich"} = 'speak'; > > Which not only handles the login and sends me a message, it also enables > "speak" logging to my IM (yes, I don't care that you all now know I'm > WWWdrich -- after all, everyone else seems to have it :) ). > > The only problem I have left is that it only works intermittently. The > login sometimes works, sometimes times out -- and when it times out the > entire mh server hangs until the timeout finishes. I am having the same problem. Somtimes it logs in just fine, othertimes it hangs for 10 seconds and then generates an error. I installed a slightly newer version (1.6 vs 1.4) of AOLIM.pm. It doesn't really change anything, but probably should be part of the next release of mh. The error is generated because the signon calls 'die' when it can't connect. I changed that to 'print' so it is handled by mh more gracefully. -Craig __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html |