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");
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.
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.
Humberto Rodriguez
_______________________________________________
Perl-Unix-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs