Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • From the man page for formail:

    DESCRIPTION
                  formail is a filter that can be used to force mail into mailbox format,
                  perform ‘From ’ escaping, generate auto-replying headers, do simple
                  header munging/extracting or split up a mailbox/digest/articles file.
                  The mail/mailbox/article contents will be expe
    • Thanks ... it looks like it could do the trick, but upon closer examination, formail will split it into separate messages, but not chunked mbox files of a specified size. 6700 individual message files vs. 25 mbox files.

      - Jason
  • Hi. I discovered the script stores mails every time it encounters a mail beginning (^From ). So, the last e-mail is not stored since there is no "NEXT" mail. I fixed moving:

            if ( length( $message ) > 0 ) {
                    $message_count++;
                    $file = $file_base . sprintf( "%02d", $file_i );
                    #print "Got message # $message_count - a