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

Thanks, just had to place a ";" on the 'find rule/' line. Then ran it and a msg appeared "Complex regular subexpression recursion limit (32766) exceeded at /usr/share/perl5/Email/Address.pm line 108."

There are only 3 sub folders though in that path.

Replies are listed 'Best First'.
Re^5: extracting name & email address
by Anonymous Monk on Feb 23, 2015 at 10:48 UTC
    weeel, you might try line-by-line reading of file if slurping is too much :) ... alternatively Email::Find for getting addresses
      trt
      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