Humberto Rodriguez wrote:
> Dave Baker wrote:
>
>>Humberto, have you replaced the '/path/to/cgi-
>>bin/webmail/modules' with
>>the actual path name (in single quotes) to the modules?
>
>
> Yes, i did. The snippet below shows the actual path.
>
> $Bill Luebkert wrote:
>
>>So show your latest code snippet - you don't think we're going
>>to take your word that you've made all the necessary changes -
>>do you ? ;)
>
>
> So... here is my latest code snippet:
> #!/usr/bin/perl -w
> # folder.cgi
>
> use strict;
> use lib '/home/hrfc/cgi-bin/webmail/modules';
> use Mail::Folder;
>
> print "Content-type: text/html\n\n";
> my ($folder_type, $folder_name, $folder, $file, %options);
> $folder_type = 'mbox';
> $folder_name = '/home/hrfc/mail/hrfc';
>
> $folder= Mail::Folder->new("$folder_type", "$folder_name");
You don't need quotes on the args above.
> my $num=$folder->qty;
> print "there are $num messages<br>";
>
>
> and... here is the output to the error log:
> [Tue Mar 15 12:03:43 2005] [error] [client 10.6.1.29] Can't
> call method "qty" on an undefined value at /home/hrfc/cgi-
> bin/webmail/folder.cgi line 15.
Obviously the new failed and you weren't testing for success/failure.
Where did you find Mail::Folder - I don't see that module anywhere ?
There is an Email::Folder ...
> The problem is definitely with the "new" statement; I just
> don't know the reason. I am no email expert, but I understand
> that Sendmail uses the mbox format, which I understand to be
> all messages in a single file, each beginning with a line
> similar to this:
>>From [EMAIL PROTECTED] Tue Mar 14 02:34:27 2005
>
> I would appreciate any help.
--
,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED]
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
Perl-Unix-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs