Email listener?

I’m trying to figure how best to write an email listener – basically,
something that listens for particular keyword(s) at an account and
responds appropriately. Any ideas?

Thanks!

Siddarth

On 06.05.2010 01:36, Siddarth Chandrasekaran wrote:

I’m trying to figure how best to write an email listener – basically,
something that listens for particular keyword(s) at an account and
responds appropriately. Any ideas?

Procmail can be made to do this:

http://www.procmail.org/

Bad news is that you might not even need Ruby for that. :slight_smile:

Kind regards

robert

Siddarth Chandrasekaran wrote:

I’m trying to figure how best to write an email listener – basically,
something that listens for particular keyword(s) at an account and
responds appropriately. Any ideas?

You could write a program which polls a POP3 mailbox periodically, and
sends replies.

Or you could write a program which accepts an E-mail on stdin, and
configure your MTA to deliver mail for a certain address directly to
that program, e.g. using a .forward file or an entry in /etc/aliases.