I don't know about the qualities of the IMail Log Analyzer, but given lines
like this:
03:07 00:01 SMTP-(00000E28) processing C:\IMail\spool\Q51d8530a0130f5ad.SMD
03:07 00:02 SMTPD(1A4100DE) [24.71.223.10]
C:\IMail\spool\D521e1a4100de06a6.SMD 41370
You can do this:
find " SMTPD(" < sys1229.txt | find /c "C:\IMail\spool\"
and you will get a quick answer of the number of messages received by your
IMail server. I've tweaked the text inside the quotes to cut down false
positives and deliberately not used the /i parameter to speed up the text
matching.
If your server is acting as a gateway, you may also want to filter in/out
the addresses of your mail hosts behind the gateway, e.g.:
find " SMTPD(" < sys1229.txt | find "[192.168.1.1]" | find /c
"C:\IMail\spool\"
would count only the log lines where your IMail gateway received a message
from your internal mail host at 192.168.1.1 ... this query is no speed
demon, because I've not optimized the set of data to find the smallest data
set first, and we're making three passes. But this example is easy to read
when you compare it to the log line.
The same thing can be done rather faster in two passes like this:
find "[192.168.1.1]" < sys0307.txt | find /c "C:\"
But it isn't as easy to follow. And if it was speed you were after, a grep
query with a regular expression would more likely do the trick.
Andrew 8)
-----Original Message-----
From: Kris McElroy [mailto:[EMAIL PROTECTED]
Sent: Monday, December 29, 2003 7:56 AM
To: [EMAIL PROTECTED]
Subject: [Declude.JunkMail] Number of messages per day
Is there anyway that I can get a count of the Number of Incoming messages
before Declude Junkmail/Virus gets them? I just need a count of incoming
messages on the server? If I run the Imail Log Analyzer will this give me
the number before or after declude?
Thanks,
Kris McElroy
[EMAIL PROTECTED]
Chief Technology Officer
Duracom, INC.
www.duracom.net
"I am always doing that which I can not do, in order that I may learn how to
do it."
---
[This E-mail was scanned for viruses by Declude Virus
(http://www.declude.com)]
---
This E-mail came from the Declude.JunkMail mailing list. To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail". The archives can be found
at http://www.mail-archive.com.
---
[This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)]
---
This E-mail came from the Declude.JunkMail mailing list. To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail". The archives can be found
at http://www.mail-archive.com.