On Tue, May 24, 2005 at 12:03:38PM +0100, Jason Corcoran wrote:
>>> I used to have a email address that would txt me the subject of the mails.
>> I was wondering how I would go about the following.
>> Have a particular email address [text at jcorcoran.net].
> Any time an email is sent to this address parse out the subject and send it via the o2sms.pl script?
>> What would be the best approach? Are there handy perl modules that will allow me to check a mbox for new mails and parse the headers?
I'd use procmail to process your mail as it comes in.
As an untested guess:
:0c
* ^TO_()text at jcorcoran.net
* ^Subject:
| sed -n 's/^Subject: //p' | o2sms +353number
This should text you the subjects of all mails which have a subject that
are sent/CCed to that address.
This should also be doable via an aliases file.
Brian
--
Website: http://netsoc.tcd.ie/~bbrazil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
Url : http://mail.linux.ie/pipermail/ilug/attachments/20050524/bb44ea8d/attachment.pgp
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!