Here is the code snippet that does not work:
#!/usr/bin/perl -w # folder.cgi
use strict; use lib '/path/to/cgi-bin/webmail/modules';
Humberto, have you replaced the '/path/to/cgi-bin/webmail/modules' with the actual path name (in single quotes) to the modules?
use Mail::Folder;
print "Content-type: text/html\n\n"; my ($folder_type, $folder_name, $folder, $file,
%options);
$folder_type = 'Mbox'; $folder_name = '/path/to/mail';
Have you replaced the '/path/to/mail' with the actual path name (in single quotes) to the mail?
$file="$folder_name/hrfc"; $options{DefaultFolderType}=1; $folder= new Mail::Folder('$folder_type',
'%options');
$folder_type and %options are just examples, aren't they? I think you have to replace them with something else; check the Mail::Folder documentation.
$folder->open('$folder_name');
Ditto re $folder_name
---
Dave Baker _______________________________________________ Perl-Unix-Users mailing list Perl-Unix-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs