From owner-freebsd-questions Wed Dec 18 17: 3: 8 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4354137B404 for ; Wed, 18 Dec 2002 17:03:07 -0800 (PST) Received: from c3po.artlogix.com (s01.artlogix.com [216.231.46.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id A074F43EDA for ; Wed, 18 Dec 2002 17:03:06 -0800 (PST) (envelope-from mcglk@artlogix.com) Received: from ralf.artlogix.com.artlogix.com (unknown [192.168.0.3]) by c3po.artlogix.com (Postfix) with ESMTP id DB5511A9BA; Wed, 18 Dec 2002 17:00:30 -0800 (PST) To: "Mxsmanic" Cc: "FreeBSD Questions" Subject: Re: Getting Perl scripts to work as mail filters References: <200212182250.GBIMOPT39354@asarian-host.net> From: Ken McGlothlen Date: 18 Dec 2002 17:04:50 -0800 In-Reply-To: Message-ID: <86isxqrf7x.fsf@ralf.artlogix.com> Lines: 21 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Mxsmanic" writes: | What about appending directly to the mailbox file under /var/mail/$USER with | the script? I'd recommend against that. Using the sendmail interface is just as easy programmatically as appending it to /var/mail/whatever, plus you don't run into any messy issues with lockfiles and such. Just use sendmail; it's already there. | Procmail is exactly the sort of bloated tool that I'm trying to avoid. Well, for this, you don't need procmail, especially if you have a dedicated alias for this. | I don't know that calling sendmail again would be _that_ hard. After all, | I'm mostly just copying the input to the output. I guess all I'd have to do | would be to change the recipient address to avoid a loop (?). Right? Can't | I just leave all the headers intact otherwise? Absolutely; in fact, that's the best solution to the problem. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message