I use e-mail addresses as user names:

/var/log/mail.log:
Dec 16 15:25:13 spam spamd[26385]: connection from mailserver [217.170.3.44]
at port 36585
Dec 16 15:25:13 spam spamd[26623]: processing message
<[EMAIL PROTECTED]> for
[EMAIL PROTECTED]:1002.
Dec 16 15:25:14 spam spamd[26623]: identified spam (8.9/1.0) for
[EMAIL PROTECTED]:1002 in 0.2 seconds, 2003 bytes. 

The sa-stats.pl script dous not work whith usernames with a @ in it. 
I think it is in "\w+:\d+\s             # for daf:1000" in the code below
but I don't know perl so I cant fix it. Does anyone have an solution?

# Agh... this is ugly.
  if (m/
^(\w{3})\s+             # Month
(\d+)\s+                # Day
(\d\d):(\d\d):(\d\d)\s+ # HH:MM:SS
\w+\s+                  # Hostname?
spamd\[\d+\]:\s+        # spamd[PID]
(clean\smessage|identified\sspam)\s  # Status
\(([-0-9.]+)\/([-0-9.]+)\)\s # Score, Threshold
for\s
\w+:\d+\s             # for daf:1000
in\s
[0-9.]+\sseconds,\s+
[0-9]+\sbytes\./x) {  # There's an extra space at the end for some reason.


Mvg,

Wiebren Braakman



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to