Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Feb 2002 17:23:29 +0300 (MSK)
From:      "Andrey V. Pevnev" <andrey@mgul.ac.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34585: Mail-SpamAssassin problem when invoked from .forward
Message-ID:  <200202031423.g13ENTk4085819@ns1.mgul.ac.ru>

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

>Number:         34585
>Category:       ports
>Synopsis:       Mail-SpamAssassin problem when invoked from .forward
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 03 06:30:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andrey V. Pevnev
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
Moscow State Forestry University
>Environment:
System: FreeBSD bug.home.ru 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Fri Feb 1 02:33:39 MSK 2002 andrey@bug.home.ru:/usr/obj/usr/src/sys/BUG i386
>Description:
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.
>How-To-Repeat:
Just install p5-Mail-SpamAssassin-2.01 port and add to your .forward file line descibed above.
>Fix:
There is the patch:

--- NoMailAudit.pm.patch begins here ---
--- blib/lib/Mail/SpamAssassin/NoMailAudit.pm.orig	Sun Feb  3 16:47:03 2002
+++ blib/lib/Mail/SpamAssassin/NoMailAudit.pm	Sun Feb  3 16:47:44 2002
@@ -302,7 +302,7 @@
   my $file = shift;
 
   # some bits of code from Mail::Audit here:
-  $file ||= $ENV{'MAIL'} || "/var/spool/mail/".getpwuid($>);
+  $file ||= $ENV{'MAIL'} || "/var/mail/".getpwuid($>);
 
   if (exists $self->{accept}) {
     return $self->{accept}->();
@@ -321,7 +321,7 @@
 
     if (!defined $gotlock) {
       # dot-locking not supported here (probably due to file permissions
-      # on the /var/spool/mail dir).  just use flock().
+      # on the /var/mail dir).  just use flock().
       $nodotlocking = 1;
     }
 
--- NoMailAudit.pm.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

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




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