Vahid Moghaddasi wrote:
> I think that I can use this to find the date entry in the log file
> with some changes. What I really want to do is similar to this: "cat
> current | grep <today's TAI date> > file.out. Then I would have all
> the lines for today's date in the file.out file.
> I need to do this so I can run different reports on mail delivery.
Have you looked at Dr. Erwin Hoffmann's "newanalyse" software...
http://www.fehcom.de/qmail/newanalyse.html
This is implemented in Korn shell script with DJB's qmailanalog. I seem to
remember seeing some
code in there for handling in queue messages but cannot say if it works
properly or not because
we do not worry about that... we just work on the successful delivery.
The package is very good and includes the ability to work on archived files as
well. Can give
various reports on a day or month etc. We use it to analyse, and email results
to an
administrator. And with a bit of modification to it and qmailanalog, gives us
monthly traffic
stats per domain.
Cheers
Graham
|