Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Remove attachment data from the read file

by BrowserUk (Patriarch)
on Jan 10, 2009 at 11:42 UTC ( [id://735382]=note: print w/replies, xml ) Need Help??


in reply to Remove attachment data from the read file

If the attachments always start with a content-type header, try changing your condition to:

if( my $seq = /Subject/ .. ( /^content-type/i ) ) { $content .= $_ if $seq !~ /E0$/; last if /E0$/; ## no point in parsing further }

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-18 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found