From owner-freebsd-ports Sun Feb 3 8: 0:10 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 19E5537B400 for ; Sun, 3 Feb 2002 08:00:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g13G06e77761; Sun, 3 Feb 2002 08:00:06 -0800 (PST) (envelope-from gnats) Date: Sun, 3 Feb 2002 08:00:06 -0800 (PST) Message-Id: <200202031600.g13G06e77761@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Thomas Hurst Subject: Re: ports/34585: Mail-SpamAssassin problem when invoked from .forward Reply-To: Thomas Hurst Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/34585; it has been noted by GNATS. From: Thomas Hurst To: "Andrey V. Pevnev" Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: ports/34585: Mail-SpamAssassin problem when invoked from .forward Date: Sun, 3 Feb 2002 15:52:32 +0000 * Andrey V. Pevnev (andrey@mgul.ac.ru) wrote: > >Number: 34585 > >Category: ports > >Synopsis: Mail-SpamAssassin problem when invoked from .forward > When user adds "|/usr/local/bin/spamassassin || exit 75" to his/her > .forward file in order to check mail against spam filtering rules, > spamassassin can't deliver mail to users's mailbox, because > spamassassin can't find mailbox. Personally I'd suggest running it as a filter through procmail/maildrop. > # some bits of code from Mail::Audit here: > - $file ||= $ENV{'MAIL'} || "/var/spool/mail/".getpwuid($>); > + $file ||= $ENV{'MAIL'} || "/var/mail/".getpwuid($>); This'll break systems where /var/spool/mail is correct.. doesn't $MAIL get set in .forward's environment? That's pretty poor. I'll raise this on the ml and get this sorted upstream. A check for the /var/spool/mail or /var/mail directory should be sufficient, although personally I wouldn't feel at all bad if all delivery capabilities were dumped :) -- Thomas 'Freaky' Hurst - freaky@aagh.net - http://www.aagh.net/ - When a person goes on a diet, the first thing he loses is his temper. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message