From owner-freebsd-isp Fri Feb 20 09:05:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA24566 for freebsd-isp-outgoing; Fri, 20 Feb 1998 09:05:20 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [195.188.177.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA24461 for ; Fri, 20 Feb 1998 09:04:45 -0800 (PST) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca-tx.tdx.co.uk [195.188.177.242]) by caladan.tdx.co.uk (8.8.7/8.8.7) with ESMTP id RAA20492 for ; Fri, 20 Feb 1998 17:04:35 GMT (envelope-from kpielorz@tdx.co.uk) Message-ID: <34EDB7A3.41023384@tdx.co.uk> Date: Fri, 20 Feb 1998 17:04:35 +0000 From: Karl Pielorz Organization: TDX X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: isp@FreeBSD.ORG Subject: Mail header / processing - Procmail? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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