-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
This one is an interesting one. Because I'm the administrator of
several servers, I am subject to getting a lot of spam. Because of
this, I'd decided to compile a report of the amount of spam the
users of my [company's] server. We have spam filtering installed,
and it's doing _really_ well, and because of such, I get over 3000
emails a day (not including usual business mail, and lists etc).
Those 3000+ emails are reports of quarantined emails which have a
common format.
My plan is to do something like this:
- Read all the mails in a certain folder
- grab from it:
* the destination user
* the quarantine file
* the spam score
The general format of the mail is constant, and is as such:
,----- [ spam report ]
| Unsolicited bulk email from:
| [sending email]
| Subject: Ears Ringing -- We Can Help
|
| The message WILL BE delivered to:
| <[destination email]>
|
| The message has been quarantined as:
| /var/virusmails/[spam file]
|
| SpamAssassin report:
| This mail is probably spam. The original message has been attached
| along with this report, so you can recognize or block similar unwanted
| mail in future. See http://spamassassin.org/tag/ for more details.
|
| Content preview: This message contains an HTML formatted message but
| your email client does not support the display of HTML. Please view
| this message in a different mail client or forward this email to a
| web-based mail system. [...]
|
| Content analysis details: (12.80 points, 5 required)
`-----
Some occasionally have an extra few lines after the Subject section,
while others don't. There is extra data after the content line as
well, but irrelevant in this case. The data in the [] are to be
replaced with real values (hidden for security). The details I want
from this report are:
<[destination email]>
[spam file]
12.80
The last is a variable depending on the score level, the other two
are variable depending on the file, and email. Is it possible to
generate a filter in TB, with the aid of some nifty regex to pull
that information? My regex is very limited, so I wouldn't even know
where to start to just get the destination email from. I'd like the
format to be put into a plain text file, in a tab delimited format
as such:
[email] [score] [file]
Thanks in advanced.
- --
Jonathan Angliss
([EMAIL PROTECTED])
I cna ytpe 300 wrods pre mniuet!!!
-----BEGIN PGP SIGNATURE-----
iQA/AwUBP3pIvCuD6BT4/R9zEQIwTgCgu6ddnmv+1onrBOQ21tP0CHRIQp8AoPWz
EYsDtjPTmrk30gvHfHL0czrV
=w9Mn
-----END PGP SIGNATURE-----
________________________________________________________
http://www.silverstones.com/thebat/TBUDLInfo.html