GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MAILSTAT(1) User Contributed Perl Documentation MAILSTAT(1)

mailstat.pl - shows mail-arrival statistics

mailstat [-klmots] [logfile]

mailstat.pl example program using Log::Procmail to mimic mailstat(1)

mailstat parses a procmail-generated $LOGFILE and displays a summary about the messages delivered to all folders (total size, average size, nr of messages). The $LOGFILE is truncated to zero length, unless the -k option is used. Exit code 0 if mail arrived, 1 if no mail arrived.

-k
keep logfile intact
-l
long display format
-m
merge any errors into one line
-o
use the old logfile
-t
terse display format
-s
silent in case of no mail

Customise to your heart's content, this program is only provided as a guideline.

This program was written by Philippe 'BooK' Bruhat as an example of use for Log::Procmail. It mimics mailstat(1) as much as possible.

The original mailstat(1) was created by S.R. van den Berg, The Netherlands.

The original manual page was written by Santiago Vila <sanvila@debian.org> for the Debian GNU/Linux distribution (but may be used by others).

Copyright (c) 2002-2005, Philippe Bruhat. All Rights Reserved.

This script is free software. It may be used, redistributed and/or modified under the terms of the Perl Artistic License (see http://www.perl.com/perl/misc/Artistic.html)

perl, Log::Procmail.
2013-01-02 perl v5.32.1

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.