Mail::MboxParser trouble

P

Poul Kornmod

Dear all,

I have had real trouble implementing Mail::MboxParser in my environment. The
installation went perfect and all the tests succeeded! But whenever I try to
call my little test (ripped from the manual) I got this error:
DEBUG (Mail::Mbox::MessageParser): Preparing file handle
Can't use an undefined value as a symbol reference at
/usr/local/lib/perl5/site_perl/5.8.0/Mail/Mbox/MessageParser.pm line 194.
DEBUG (Mail::Mbox::MessageParser): Exiting and writing cache if necessary

I identified the problem to be with the gensym call in the MboxParser.pm. If
I altered the code to use the Filehandle module instead of the Symbol - the
code just ran without any problems. Do any of you guys have had similar
problems?

Regards

Poul Kornmod

<example.pl>
#!/usr/bin/perl
#
#

use Mail::MboxParser;

my $parseropts = {
enable_cache => 1,
enable_grep => 1,
debug => 1,
cache_file_name => 'cache-file',
};
my $mb = Mail::MboxParser->new('My_Mbox',
decode => 'ALL',
parseropts => $parseropts
);
# -----------
# slurping
for my $msg ($mb->get_messages) {
print $msg->header->{subject}, "\n";
$msg->store_all_attachments(path => '');
}
</example.pl>

<Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:>
Platform:
osname=linux, osvers=2.4.7-10, archname=i686-linux
uname='linux cphzt-linux 2.4.7-10 #1 thu sep 6 17:27:27 edt 2001 i686
unknown '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags
='-fno-strict-aliasing -I/usr//include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI
TS=64 -I/usr/include/gdbm',
optimize='-O3',
cppflags='-fno-strict-aliasing -I/usr//include -I/usr/include/gdbm'
ccversion='', gccversion='3.1', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldl -lm -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.2.4'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Oct 7 2002 07:07:11
@INC:
/usr/local/lib/perl5/5.8.0/i686-linux
/usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/i686-linux
/usr/local/lib/perl5/site_perl/5.8.0
/usr/local/lib/perl5/site_perl
</Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:>
 
T

Tassilo v. Parseval

Also sprach Poul Kornmod:
Dear all,

[...]

See my follow-up in clp.modules. If you really need to post into several
groups, please do a proper crosspost. But you needn't in this case.
Issues with particular modules belong into comp.lang.perl.modules.

Tassilo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top