• Post Reply Bookmark Topic Watch Topic
  • New Topic

trigger event/program when a new email is received  RSS feed

 
Aparna Pillai
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there a way to trigger an event/program when on receiving a new email..

The use case is something like this :

Scan for the messages in inbox and check the subject line. If subject line matches, read further.

I can be done using a scheduler ..that's triggering this every 30 mins or so. Every 30 mins scheduler will run and scan for new emails and check for the subject line..

But I just wanted to check if there is a way to do this on receiving a new email(instead of relying on scheduler) ?
 
Tim Cooke
Marshal
Posts: 4048
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aparna, welcome back to the Ranch!

Do you have a program written already that can retrieve emails from your email server? Does your email server support Push email?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are running on Unix, there is something called "procmail" that does exactly this. I used it about 6 years ago to trigger a file build of something...Whenever the account got an email with a specific subject string, it would fire off a perl script that built the file they wanted and emailed it back to them.
 
Aparna Pillai
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I do have a program which retrieves the email ..but i do not have a dedicated SMTP server... I am using just a gmail id..my program just gets email from the gmail inbox

but looks like i'll need a smtp server if i need this feature..

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!