Date: Sun, 16 Jun 2002 15:36:46 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Steven Lake <raiden@shell.core.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Determining # of mail's per user Message-ID: <20020616203646.GB81446@dan.emsphone.com> In-Reply-To: <Pine.GSO.4.44L0.0206161529060.22536-100000@shell.core.com> References: <Pine.GSO.4.44L0.0206161529060.22536-100000@shell.core.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020616203646.GB81446>