I use MIME::Parser, and have always loved it. It will extract attachments to files, and you can do what you want with them.
For example: use MIME::Parser; my $message = <however you are getting the raw message>; $parser->output_dir('/some/directory'); my $entity = $parser->parse_data(\$message); At this point, attachments should have been parsed out and created in $INCOMING_DIR. Use $entity to fondle the rest of the message as you want. Much more info in the docs. Cheers, Kevin On Thu, Jul 18, 2002 at 10:25:52AM -0700, Steve Gilbert ([EMAIL PROTECTED]) said something similar to: > Does anyone have a suggestion for extracting file > attachments from emails? I need to setup a process > that pulls data from an email and then moves the data > and starts another process. > > Any help would be great! > -- [Writing CGI Applications with Perl - http://perlcgi-book.com] I hate it when my foot falls asleep during the day because that means it's going to be up all night. -- Steven Wright -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]