From nobody@FreeBSD.org  Thu Sep 26 07:31:25 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 06B1337B401
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Sep 2002 07:31:25 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BBAFA43E3B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Sep 2002 07:31:24 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g8QEVN7R099064
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Sep 2002 07:31:23 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.6/8.12.6/Submit) id g8QEVNHR099063;
	Thu, 26 Sep 2002 07:31:23 -0700 (PDT)
Message-Id: <200209261431.g8QEVNHR099063@www.freebsd.org>
Date: Thu, 26 Sep 2002 07:31:23 -0700 (PDT)
From: Peter Hollaubek <fifteen@inext.hu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mail.local -B + quota deletes messages if limit reached
X-Send-Pr-Version: www-1.0

>Number:         43392
>Category:       misc
>Synopsis:       mail.local -B + quota deletes messages if limit reached
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 26 07:40:01 PDT 2002
>Closed-Date:    Mon Feb 17 11:14:43 PST 2003
>Last-Modified:  Mon Feb 17 11:14:43 PST 2003
>Originator:     Peter Hollaubek
>Release:        FreeBSD 4.7-PRERELEASE
>Organization:
>Environment:
FreeBSD terminus.inext.hu 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #1: Mon Sep  9 09:24:19 CEST 2002     root@terminus.inext.hu:/usr/obj/usr/src/sys/TERMINUS  i386
>Description:
      In the mail.local manual page it says that the -B option turns off notification, turning off sending anything to the 512 upd port. But if mail.local is used with this option and the filesystem storing the mailboxes uses quotas, and the limit is reached, all the messages are deleted from the specific mailbox. 
>How-To-Repeat:
      Using quotas on  the filesystem storing the mail boxes, and using mail.local with -B option. (e.g: define(`LOCAL_MAILER_ARGS', `mail.local -lB') in sendmail.mc)
>Fix:
      Not using the -B option for mail.local.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: gshapiro 
Responsible-Changed-When: Sat Feb 8 11:25:33 PST 2003 
Responsible-Changed-Why:  
Over to sendmail maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43392 
State-Changed-From-To: open->patched 
State-Changed-By: gshapiro 
State-Changed-When: Sat Feb 8 11:25:51 PST 2003 
State-Changed-Why:  
I've checked in a fix to the mail.local code and will MFC it in 3 days 
to -STABLE.  If you want to try it before hand, here is the patch: 

Index: mail.local.c 
=================================================================== 
RCS file: /home/ncvs/src/contrib/sendmail/mail.local/mail.local.c,v 
retrieving revision 1.19 
diff -u -r1.19 mail.local.c 
--- mail.local.c	28 Aug 2002 18:12:02 -0000	1.19 
+++ mail.local.c	8 Feb 2003 19:19:43 -0000 
@@ -1141,10 +1141,11 @@ 
goto err1; 
} 

+	/* Get the starting offset of the new message for biff. */ 
+	curoff = lseek(mbfd, (off_t) 0, SEEK_END); 
+ 
if (!nobiff) 
{ 
-		/* Get the starting offset of the new message for biff. */ 
-		curoff = lseek(mbfd, (off_t) 0, SEEK_END); 
(void) sm_snprintf(biffmsg, sizeof(biffmsg), "%s@%lldn", 
name, (LONGLONG_T) curoff); 
} 


http://www.freebsd.org/cgi/query-pr.cgi?pr=43392 
State-Changed-From-To: patched->closed 
State-Changed-By: gshapiro 
State-Changed-When: Mon Feb 17 11:14:28 PST 2003 
State-Changed-Why:  
The change has been MFC'ed to RELENG_4. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43392 
>Unformatted:
