Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 187855 Details for
Bug 265621
mail-filter/spamass-milter-0.3.1-r2 with no spam check for authenticated users
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
skip_authed_peers.patch
skip_authed_peers.diff (text/plain), 2.63 KB, created by
SchAmane
on 2009-04-10 07:46:47 UTC
(
hide
)
Description:
skip_authed_peers.patch
Filename:
MIME Type:
Creator:
SchAmane
Created:
2009-04-10 07:46:47 UTC
Size:
2.63 KB
patch
obsolete
>Index: spamass-milter.cpp >=================================================================== >RCS file: /cvsroot/spamass-milt/spamass-milt/spamass-milter.cpp,v >retrieving revision 1.88 >diff -u -r1.88 spamass-milter.cpp >--- spamass-milter.cpp 7 Apr 2005 02:04:24 -0000 1.88 >+++ spamass-milter.cpp 19 Apr 2005 13:52:41 -0000 >@@ -170,6 +170,7 @@ > bool flag_full_email = false; /* pass full email address to spamc */ > bool flag_expand = false; /* alias/virtusertable expansion */ > bool warnedmacro = false; /* have we logged that we couldn't fetch a macro? */ >+bool skipauthed = false; /* don't scan mails from authed peers */ > > #if defined(__FreeBSD__) /* popen bug - see PR bin/50770 */ > static pthread_mutex_t popen_mutex = PTHREAD_MUTEX_INITIALIZER; >@@ -181,7 +182,7 @@ > main(int argc, char* argv[]) > { > int c, err = 0; >- const char *args = "fd:mMp:P:r:u:D:i:b:B:e:x"; >+ const char *args = "fd:mMp:P:r:u:D:i:b:B:e:xs"; > char *sock = NULL; > bool dofork = false; > char *pidfilename = NULL; >@@ -260,6 +261,9 @@ > case 'x': > flag_expand = true; > break; >+ case 's': >+ skipauthed = true; >+ break; > case '?': > err = 1; > break; >@@ -281,7 +285,7 @@ > cout << "SpamAssassin Sendmail Milter Plugin" << endl; > cout << "Usage: spamass-milter -p socket [-b|-B bucket] [-d xx[,yy...]] [-D host]" << endl; > cout << " [-e defaultdomain] [-f] [-i networks] [-m] [-M]" << endl; >- cout << " [-P pidfile] [-r nn] [-u defaultuser] [-x]" << endl; >+ cout << " [-P pidfile] [-r nn] [-u defaultuser] [-x] [-s]" << endl; > cout << " [-- spamc args ]" << endl; > cout << " -p socket: path to create socket" << endl; > cout << " -b bucket: redirect spam to this mail address. The orignal" << endl; >@@ -302,6 +306,7 @@ > cout << " -u defaultuser: pass the recipient's username to spamc.\n" > " Uses 'defaultuser' if there are multiple recipients." << endl; > cout << " -x: pass email address through alias and virtusertable expansion." << endl; >+ cout << " -s: skip messages from authenticated peers" << endl; > cout << " -- spamc args: pass the remaining flags to spamc." << endl; > > exit(EX_USAGE); >@@ -769,6 +774,12 @@ > struct context *sctx = (struct context *)smfi_getpriv(ctx); > char *queueid; > >+ // check for authenticated peer >+ if (skipauthed && smfi_getsymval(ctx, "{auth_authen}") != NULL) { >+ debug(D_MISC, "Authenticated peer, skip spam detection"); >+ return SMFIS_ACCEPT; >+ } >+ > if (sctx == NULL) > { > debug(D_ALWAYS, "smfi_getpriv failed!");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 265621
: 187855 |
187857