OCCRA
Go to Post Meh, that's nothing a freshman with a drill press and a dremel can't fix... - Chad987 [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-11-2005, 12:05 AM
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 651
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
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
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**
  #2   Spotlight this post!  
Unread 01-11-2005, 01:55 AM
evulish's Avatar
evulish evulish is offline
1010100
AKA: Grant Harding
#0084 (WATTNESS (bot: Chuck))
Team Role: Alumni
 
Join Date: Jul 2002
Location: Towanda/Wysox, PA
Posts: 1,434
evulish is just really niceevulish is just really niceevulish is just really niceevulish is just really nice
Send a message via AIM to evulish
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.
__________________
I'm a professional web developer. I'm good with PHP, Perl, Java/JSP, some RoR, XML, Javascript (AJAX as well), (x)HTML, CSS, etc.. Validated code is good; fully cross-browser code is better (you comply to your users and the software they use, not the other way around. Sorry!)
  #3   Spotlight this post!  
Unread 01-11-2005, 11:02 AM
Timothy D. Ginn's Avatar
Timothy D. Ginn Timothy D. Ginn is offline
I check here maybe once a year.
no team
 
Join Date: Apr 2003
Rookie Year: 2002
Location: Port Perry, ON. Canada
Posts: 247
Timothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to all
Send a message via ICQ to Timothy D. Ginn Send a message via AIM to Timothy D. Ginn Send a message via MSN to Timothy D. Ginn Send a message via Yahoo to Timothy D. Ginn Send a message via Skype™ to Timothy D. Ginn
Re: Automated Email

Quote:
Originally Posted by Jack
...
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.
...
The way it's done for the mailman software is like this (in my case its in /etc/aliases, but that can vary depending on system setup):

test: "|/usr/lib/mailman/mail/mailman post test"
(with other aliases setup in a similar way passing different paramaters to the mailman binary).
__________________
Alumni of FRC Team 1006
Former mentor of Full Lego Alchemist (FLL 5621) - Sempar School / Computing Students' Association of Queen's University
  #4   Spotlight this post!  
Unread 01-11-2005, 03:22 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 7,912
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Automated Email

Quote:
Originally Posted by Timothy D. Ginn
The way it's done for the mailman software is like this (in my case its in /etc/aliases, but that can vary depending on system setup):

test: "|/usr/lib/mailman/mail/mailman post test"
(with other aliases setup in a similar way passing different paramaters to the mailman binary).
I thought of recommending that method, but it depends on whether the message also needs to be delivered to the mailbox, besides running the script.

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   Spotlight this post!  
Unread 01-24-2005, 02:36 PM
AIBob's Avatar
AIBob AIBob is offline
AI Programmer
AKA: Bob Frank DOT org
FRC #0358 (Hauppauge Robotic Eagles)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Long Island, NY (in Binghamton now)
Posts: 297
AIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to behold
Send a message via ICQ to AIBob Send a message via AIM to AIBob Send a message via MSN to AIBob Send a message via Yahoo to AIBob
Re: Automated Email

Quote:
Originally Posted by Jack
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
You really can only do that if you can run a program that checks, so you would need to ask your server to run a program, or run a program on a computer that you control, but make sure its always on.
__________________
- from B B frank

Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: Need the FIRST Online Store Email / Phone Number mtaman02 General Forum 1 05-23-2004 03:50 AM
Invalid Autodesk email address? NickZ 3D Animation and Competition 2 02-23-2004 01:35 AM
FloridaFIRST: Workshops for all Florida Teams December 13th miketwalker FloridaFIRST 12 12-04-2003 06:06 PM
Did anyone catch that email? archiver 2001 3 06-24-2002 02:44 AM
Contact email for Team 262? archiver 2000 0 06-23-2002 11:21 PM


All times are GMT -5. The time now is 07:06 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi