Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Find all lines with a specified email address, and any lines with a matching queue ID, in a sendmail log file.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ref_9999_out
t9999
README
maillog.mx
sendmail_trace.pl

README

sendmail_trace.pl  version 0.10
===============================

The sendmail_trace application reads a sendmail log file and
collects all lines that contain the email address specified by
the user on the command line.  It also collects any line with
a queue ID that matches any qid found in the line(s) with the
desired address; and prints all lines with the same qid
together.

The program reads the input sendmail log file in one pass.

It uses a FIFO buffer to hold a number of lines that have not
yet been matched to the email address of interest.  The size
of the buffer is set to 100 lines.  If it is too small, some
related lines with matching qid's might not be collected.  If
too large, the program might exhaust memory when processing a
large log file.


The input data file is maillog.mx.
The initial release provides an abbreviated 9999-line input file.

The test scripts in t9999/ rely on reference output files,
stored in the ref_9999_out/ subdir.

Execute the tests using prove:
  prove -vr t9999/


Something went wrong with that request. Please try again.