Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 1998 17:04:35 +0000
From:      Karl Pielorz <kpielorz@tdx.co.uk>
To:        isp@FreeBSD.ORG
Subject:   Mail header / processing - Procmail? 
Message-ID:  <34EDB7A3.41023384@tdx.co.uk>

next in thread | raw e-mail | index | archive | help
Hi,

I have a need to write a lot of programs to process incoming mail, features I
need are:

Ability to pull out from, to's, cc's, bcc's (i.e. multiple recipients etc.).

Ability to reject mail with attachments, or at least write the attachment out
to a temporary file for possible later processing.

I've been looking at procmail, and wondering if it will do what I want?

My other alternative is to write a library of routines for processing incoming
mail (on stdin) and splitting out the addresses / content 'on the fly' and
calling other programs passing these details to other programs / (and possibly
- though not likely shell scripts).

This program can then be wedged in the typical:

someaddress:	"| /usr/local/bin/myprog"

In sendmail's aliases file etc.

Anyone got any suggestions? Are there any routines for doing this available? -
Is procmail worth looking at? or am I heading in the wrong direction?...


Regards,


Karl Pielorz

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34EDB7A3.41023384>