in reply to Re^5: extracting name & email address
in thread extracting name & email address

weeel, you might try line-by-line reading of file if slurping is too much :) ... alternatively Email::Find for getting addresses

I don't think it is the slurping that is producing those errors (regex), as I have had the same error message in code without Slurp.

The error messages appear to be produced when the line my @addrs = Email::Address->parse( $stuff ); is executed. But not all the time; seems to be only when $stuff contains attachments that are not plain text or html.

If Slurp can selectively parse only plain text or html, that would be great. Basically, no processing on the other attachment types.

Replies are listed 'Best First'.
Re^7: extracting name & email address
by Anonymous Monk on Mar 03, 2015 at 02:22 UTC
    well, slurp can't, but you can filter files based on mimetypes or a simple -text test