[TriLUG] Problems with perl script...

Kevin Flanagan kevin at flanagannc.net
Thu Sep 18 19:14:23 EDT 2003


On Thu, 2003-09-18 at 13:28, Dean Price wrote:

This might be a bit of a silly question, but here goes.


Do you have POP access to the machine, Exchange systems will serve pop
just fine.  That gets a whole lot easier.



If not, I seem to recall something that would get yahoo web stuff
downloaded on freshmeat a little while back.  Perhaps that would be a
good thing to look to modify.



Kevin
> I am trying to use a perl script called "outlook-grabber" to download mail
> from a web based exchange server, However, I am getting the following
> errors:
> 
> [user at host user_dir]$ outlook-grabber.pl /home/deano/
> Use of uninitialized value in index at /usr/bin/outlook-grabber.pl line 232.
> Use of uninitialized value in substr at /usr/bin/outlook-grabber.pl line 232.
> 
> Here is the lines of code that lead to the offending line.
> 
> {
>   # get the login page so that we get the cookies for the ASP session.
> Then go to mailbox
> 
>   my $cookiepage = get_page("/exchange");
>   my $cookie = $cookiepage->header('Set-Cookie');
>   $cookie = substr($cookie, 0, index($cookie, ";"));     <------ LINE 232
>   $headers->header('Cookie' => $cookie);
> 
>   my $url = "/exchange/LogonFrm.asp?isnewwindow=0&mailbox=$mbox";
>   my $framepage = get_page($url);
> }
> 
> Any help would be appreciated.
> 
> Thanks
> 
> Dean Price
> deano at price4.org
> dprice at charter.net
> dean.price at ctg.com
> 910-797-3895
> 
-- 




More information about the TriLUG mailing list