Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
qmailmrtg7
> qmailmrtg7-amavis-rblspp.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qmailmrtg7-amavis-rblspp.patch of Package qmailmrtg7
--- qmailmrtg7.c.orig 2012-01-21 20:06:05.119092845 +0100 +++ qmailmrtg7.c 2012-01-21 21:14:30.095772299 +0100 @@ -147,6 +147,12 @@ } else if ( strcmp(mydirent->d_name, "current") == 0 ) { snprintf(TheFile,sizeof(TheFile),"%s/%s", TheDir, mydirent->d_name); process_file(TheFile); + } else if ( strcmp(mydirent->d_name, "mail") == 0 ) { + snprintf(TheFile,sizeof(TheFile),"%s/%s", TheDir, mydirent->d_name); + process_file(TheFile); + } else if ( strcmp(mydirent->d_name, "mail.log") == 0 ) { + snprintf(TheFile,sizeof(TheFile),"%s/%s", TheDir, mydirent->d_name); + process_file(TheFile); } } closedir(mydir); @@ -255,14 +261,20 @@ case 'S': if ((tmpstr1 = strstr(TmpBuf, "identified spam"))!=NULL) { ++tspam; + } else if ((tmpstr1 = strstr(TmpBuf, "Passwed SPAMMY"))!=NULL) { + ++tspam; } else if ((tmpstr1 = strstr(TmpBuf, "clean message"))!=NULL) { ++tclean; + } else if ((tmpstr1 = strstr(TmpBuf, "Passed CLEAN"))!=NULL) { + ++tclean; } break; case 'C': if ((tmpstr1 = strstr(TmpBuf, "FOUND"))!=NULL) { ++cfound; + } else if ((tmpstr1 = strstr(TmpBuf, "INFECTED"))!=NULL) { + ++cfound; } else if ((tmpstr1 = strstr(TmpBuf, "ERROR"))!=NULL) { ++cerror; } @@ -287,6 +299,8 @@ ++tdeny; } else if ((tmpstr1 = strstr(TmpBuf, " rblsmtpd:"))!=NULL) { ++tdeny; + } else if ((tmpstr1 = strstr(TmpBuf, " rblspp: "))!=NULL) { + ++tdeny; } break;