procmail
[Top] [All Lists]

Re: getting OS X mail to run a perl program

2003-05-07 15:27:37
On Wed, 7 May 2003 anthony(_dot_)scott(_at_)anu(_dot_)edu(_dot_)au wrote:


A basic recipe in a user's .procmailrc would be something like:

 :0 ic
 * ^from:(_dot_)*program(_at_)remotecomputer(_dot_)example(_dot_)com
 * ^to:(_dot_)*user(_at_)localcomputer(_dot_)example(_dot_)com
 * ^subject:.*passwordmaybe
 | scp program:remotecomputer.example.com:resultfile \
 user(_at_)localcomputer(_dot_)example(_dot_)com:resultfile


checking the from: AND the to: AND the subject: contents.  Whatever you
feel to be suitable.  Maybe you need to grep the filename out of the body?

You could expand on this I think, with the w flag to conditional email you
if the scp has been successful.  Start simple.


Any thoughts or suggestions are most welcome.

What is wrong with the remote computer just emailing the file?

Alternatively, you could a cron job at a suitable interval, to scp the
file.  If the file is there, you get it, if not you don't.


Due to an overly restrictive network administrator we can no longer
send files via scp from a remote machine to our OS X desktop.


Give him/her a chance - tell him you won't talk to his boss about his lack
of knowledge about ssh if he stops being silly immediately.  Spread the
rumour that you are trying to get him sacked.  General time wasting
politics to get what you want.


Alan


( Please do not email me AS WELL as replying to the list.  Please
  address personal email to alan+1@ as lists@ is not read. A password
  autoresponder may be invoked if this email is very old. )


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>