in reply to Mime::Parser - File Naming Convention

I'd like to know how to capture these file names so I can save them to a database or locate and move them after the pparser has finished.

What? Doesn't  my $filename = $part->bodyhandle->path; capture the filename?

Replies are listed 'Best First'.
Re^2: Mime::Parser - File Naming Convention
by DST609 (Novice) on Apr 24, 2013 at 12:37 UTC
    It does when there is an attachment. if there's no attachment a text file is produces seemingly out of the entity parts loop.

      It does when there is an attachment. if there's no attachment a text file is produces seemingly out of the entity parts loop.

      It's not that I don't believe you, but

      You test if filename contains document_

      When filename doesn't contain document_, your programs skip the filename

      What did you expect to happen?