in reply to Re^4: 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

Replies are listed 'Best First'.
Re^6: extracting name & email address
by Anonymous Monk on Feb 25, 2015 at 11:22 UTC
    trt
Re^6: extracting name & email address
by peterr (Scribe) on Mar 03, 2015 at 01:02 UTC
    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.

      well, slurp can't, but you can filter files based on mimetypes or a simple -text test