Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Mail::Box woes

by InfiniteLoop (Hermit)
on Mar 30, 2006 at 14:09 UTC ( #540171=perlquestion: print w/replies, xml ) Need Help??

InfiniteLoop has asked for the wisdom of the Perl Monks concerning the following question:

Greetings,

Im using Mail::Box to parse emails of maildir. Recently I found that my parser script would throws the following error for one email in the inbox:

-----
 Uploaded file maximum 1 at ....
-----

The mail in question is around 3.8 MB with 20 attachments. The mail was sent using: Microsoft Office Outlook 11

This script has been in action for over a year now and never threw such an error. I have searched the documentation, but could not find reference to this error message.

I ran the perl debugger (via Komodo) against my code and I could see that the failure happened in Mail/Box.pm @ line 467.

Im using Mail::Box version: 2.058. Any help is appreciated. Thanks in advance.

Replies are listed 'Best First'.
Re: Mail::Box woes
by bowei_99 (Friar) on Mar 30, 2006 at 16:22 UTC
    1. Can you give us more of the error message?
    2. Have you tried upgrading the version of Mail::Box?
    3. What does line 467 of Mail/Box.pm say? I looked in my copy (version 2.063), and it doesn't have the string 'Uploaded file' in it, nor do any of the other modules in my lib directory. So, it could be something that would only happen with your version of Mail::Box.

    -- Burvil

      The error is thrown immediately after I do the following:
      .... #open the mail folder, in rw mode my $folder = Mail::Box::Maildir->new( folder => $args{maildir}, access => 'rw', remove_when_empty => 0 ) or croak "Cannot open Maildir " . $args{maildir} . ": $!"; #run thru all messages foreach my $id ( $folder->messageIds ) { my $message = $folder->messageId($id); next if $message->isDeleted; ....
      The call to $folder->messageId($id) die's with the error.

      Actually, earlier I had posted the same message on the Mail::Box's mailing list, hence the reference to the line number of the code base

      I will take your advice and upgrade to the latest stable build. Thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://540171]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2020-06-01 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (177 votes). Check out past polls.

    Notices?