From owner-freebsd-questions Fri May 15 09:59:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA28547 for freebsd-questions-outgoing; Fri, 15 May 1998 09:59:13 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from i-p-d.com (i-p-d.host4u.com [209.60.43.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA28523 for ; Fri, 15 May 1998 09:59:06 -0700 (PDT) (envelope-from chem@i-p-d.com) From: chem@i-p-d.com Received: from gateway (safehaven@brd1-p115.worldonline.nl [195.241.136.115]) by i-p-d.com (8.8.7/8.8.5) with SMTP id TAA06335; Fri, 15 May 1998 19:00:01 +0200 (CEST) Message-Id: <199805151700.TAA06335@i-p-d.com> Comments: Authenticated sender is To: djv@bedford.net Date: Fri, 15 May 1998 18:59:28 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: temporary mail 40 MB copied to root Reply-to: chem@i-p-d.com CC: questions@FreeBSD.ORG In-reply-to: <199805151320.JAA19040@lucy.bedford.net> References: <199805150751.JAA04896@i-p-d.com> from "chem@i-p-d.com" at "May 15, 98 09:51:04 am" X-mailer: Pegasus Mail for Win32 (v2.54) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > From: CyberPeasant > chem@i-p-d.com wrote: > > Hi, > > > > Now that I have the temp-files of mail.local on var, with lots of > > empty space, mail.local managed to deliver 1 of 5 (!) 40 > > MB-messages in my root-inbox, cause it has been sent over 5 days ago, > > and wasnt able to deliver it..... I deleted the 4 others in the > > mailqueue. Now - obviously - I can't open the root-inbox no more. Is > > there a way to delete this message, without loosing all my other > > messages in the root in-box? Or do I just delete my whole root-file > > at /var/mail? > > > > And in case you are wondering, I have set MaxMessageSize in sendmail > > at 2 MB now....... > > > > The easiest thing is to get rid of the file, if the other messages > are unimportant. > > OK: lets say the others are important. THey will be located > at the head of the file. Suppose you /know/ they are, total, > less than 1 MB in size. Then to grab the first 1 MB of the file, > use dd, as in: > > dd if=/var/mail/root of=/tmp/somefile bs=1k count=1k > > Now look at 'somefile' with vi, and work your way down to the > start of the bad/big mail; Delete from there to the end of file. > > then you can rm /var/mail/root, i.e. mv /tmp/somefile /var/mail/root > > Be certain that the permissions are good! Should be rw-------, > owned root.wheel > > This can also be done with "head", or with "formail" but the > dd is straightforward. > > Dave It worked! Thanks for all the help :) Gina > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message