From owner-freebsd-questions Sun Jun 16 13:36:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id C6B0B37B412 for ; Sun, 16 Jun 2002 13:36:46 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.12.3/8.12.3) id g5GKakQ4052404; Sun, 16 Jun 2002 15:36:46 -0500 (CDT) (envelope-from dan) Date: Sun, 16 Jun 2002 15:36:46 -0500 From: Dan Nelson To: Steven Lake Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Determining # of mail's per user Message-ID: <20020616203646.GB81446@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.99i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error 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 In the last episode (Jun 16), Steven Lake said: > What's the easiest way to determin how many emails a given user > has on the mail server? I need to generate a list of how many emails and > how much space each mail file is taking up per user. I'm having a space > problem on one of the mail servers and I want to create a simple formatted > output that I can put into a spreadsheet program and view who are the > biggest offenders. I could do it by mail file sizes, but to the less > experienced telling them they have 150 megs of email on the server doesn't > make as big an impact as saying they have 25,000 emails just sitting there > idle and taking up space. Plus it gives me some tangeble numbers to put > in the records. If you're using mbox format, grep -c "^From " /var/mail/* will give you # of messages per user. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message