[Tutor] Real time reading
python at kapitalisten.no
Sun Dec 5 11:31:32 CET 2004
I would like to analyze a maillog. The maillog is automatically generated
and every mail sent is added to the log. I would like to check if someone
send more than 5 mails pr minute (spams) and if so, get Python to send a
warningmail to the mailmaster.
How would I in the best way read the log? To open the file and close it
every second sounds like a bad idea? Is there some function to analyze the
file, and automatically extract additions to the file?
Thanks in advance.
This email has been scanned for viruses & spam by Decna as - www.decna.no
Denne e-posten er sjekket for virus & spam av Decna as - www.decna.no
More information about the Tutor