Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Simple .forward email parse

by MidLifeXis (Monsignor)
on Sep 16, 2008 at 20:21 UTC ( [id://711793]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Simple .forward email parse
in thread Simple .forward email parse

Unless Email::Filter is making the results taint-safe, you are passing unvalidated data directly to a shell. Big time security no-no. It is better to open the file from within perl, and write escaped data to the file.

Depending on your mailer, you could also have a race condition on temp.log. Might be better to lock that file prior to writing to it.

--MidLifeXis

Replies are listed 'Best First'.
Re^4: Simple .forward email parse
by docster (Novice) on Sep 17, 2008 at 15:08 UTC
    Hey there. This was just an example of getting the address and subject and certainly nothing that I would use in production! ;)

    The goal is for people to email reports@domain.com and get a report back on their email account. All I really care for is the email address to reply to and all the rest of the email is ignored. After this I can generate a report for that email account and email it back to the address.

Log In?
Username:
Password:

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

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

    No recent polls found