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

Re: What is wrong with variable?

by dws (Chancellor)
on Mar 19, 2006 at 01:01 UTC ( #537706=note: print w/replies, xml ) Need Help??

in reply to What is wrong with variable?

if( $line =~ /^Subject: `(.*)`/ ){ system(`$1`); last }

I hope that's an extract from a script that does some extract checking, because if you're blindly executing commands that come in on subject lines to emails, you are setting yourself up for some major hurt. I've seen random spam come in with backquotes around the subject body.

Replies are listed 'Best First'.
Re^2: What is wrong with variable?
by w3b (Beadle) on Mar 19, 2006 at 04:35 UTC
    It's test version, if it work i'll add authorization function...
      Authorization is the second step, before that you will need an authentication check to make sure that the one who logs in is indeed who (s)he says (s)he is (that is the usual login-id and password stuff).

      It is a bit difficult to see how you can authenticate through e-mail (perhaps putting the log-in and password in the body of the e-mail? But that is not secure at all as anybody who intercepts the e-mail will know your log-in and password). Simply checking for the e-mail address of the sender is of course not enough as e-mail headers are far too easily spoofed. Anyone who has taken the Spam 101-course will know how to do it.


      "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2021-04-15 16:30 GMT
Find Nodes?
    Voting Booth?

    No recent polls found