Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^5: extracting name & email address

by Anonymous Monk
on Feb 23, 2015 at 10:48 UTC ( [id://1117522]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1117522]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2024-04-16 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found