Mail::MboxParser trouble

Discussion in 'Perl Misc' started by Poul Kornmod, Nov 13, 2003.

  1. Poul Kornmod

    Poul Kornmod Guest

    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:>
    Poul Kornmod, Nov 13, 2003
    #1
    1. Advertising

  2. 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
    --
    $_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
    pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#;
    $_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval
    Tassilo v. Parseval, Nov 13, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hypo
    Replies:
    6
    Views:
    392
  2. Curt_C [MVP]
    Replies:
    5
    Views:
    354
    Karim
    May 19, 2004
  3. Jonathan Taub

    Trouble using java mail with JBoss

    Jonathan Taub, Sep 14, 2003, in forum: Java
    Replies:
    0
    Views:
    785
    Jonathan Taub
    Sep 14, 2003
  4. Andrea Maschio
    Replies:
    0
    Views:
    693
    Andrea Maschio
    Dec 5, 2003
  5. Arvin Portlock
    Replies:
    0
    Views:
    182
    Arvin Portlock
    May 3, 2006
Loading...

Share This Page