|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Automated Email
Hey all,
I've tried to google arroud on the internet for an answer to this one, but I haven't seemed to find an answer. Here's what I'm looking to do. (FYI.. this is a *nix system). I'd like to have a script run whenever an email to a certian address is receaved. My getto solution right now is to have a cron tab set up to run a script to check for new emails every few minutes. However, if there is a way possible, I'd much rather have the script only run when an email arrives as opposed to running it every few minutes. I'm not exactly sure of the mail server specs, but if that's important, I can get them. I'd figure something like this has to be possible, after all auto-responders are sent whenever new mail is receaved, but in my case I don't want to send an email back, I want to execute a script of mine. Thanks, Jack |
|
#2
|
|||||
|
|||||
|
Re: Automated Email
You might want to look at procmail. It's pretty common on unix systems. I've never messed with it but it looks like it'll do what you want. There's pretty good documentation in the man page and the FAQ's on procmail's site (procmail.org) have some very basic examples.
|
|
#3
|
|||||
|
|||||
|
Re: Automated Email
Quote:
test: "|/usr/lib/mailman/mail/mailman post test" (with other aliases setup in a similar way passing different paramaters to the mailman binary). |
|
#4
|
||||||
|
||||||
|
Re: Automated Email
Quote:
If you only need to run a script when the e-mail is sent, the mailman method will work. If the e-mail needs to be delivered and also the script run, procmail is probably your best bet. |
|
#5
|
|||||
|
|||||
|
Re: Automated Email
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HELP: Need the FIRST Online Store Email / Phone Number | mtaman02 | General Forum | 1 | 23-05-2004 03:50 |
| Invalid Autodesk email address? | NickZ | 3D Animation and Competition | 2 | 23-02-2004 01:35 |
| FloridaFIRST: Workshops for all Florida Teams December 13th | miketwalker | General Forum | 12 | 04-12-2003 18:06 |
| Did anyone catch that email? | archiver | 2001 | 3 | 24-06-2002 02:44 |
| Contact email for Team 262? | archiver | 2000 | 0 | 23-06-2002 23:21 |