OSSP CVS Repository

ossp - Difference in ossp-pkg/petidomo/handleacl.c versions 1.2 and 1.3
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/petidomo/handleacl.c 1.2 -> 1.3

--- handleacl.c  2000/12/13 15:35:14     1.2
+++ handleacl.c  2000/12/15 15:48:00     1.3
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/handleacl.c,v $
-   $Revision: 1.2 $
+   $Revision: 1.3 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -51,18 +51,14 @@
 
     switch(operation) {
       case ACL_NONE:
-          debug((DEBUG_ACL, 4, "No ACL statement matched the mail."));
           break;
       case ACL_PASS:
-          debug((DEBUG_ACL, 4, "Mail passed access control."));
           break;
       case ACL_DROP:
-          syslog(LOG_INFO, "Mail is dropped due to access control.");
           return 1;
       case ACL_REJECTWITH:
           assert(parameter != NULL);
       case ACL_REJECT:
-          syslog(LOG_INFO, "Mail is rejected due to access control.");
           fh = vOpenMailer(envelope, owner, (MailStruct->Reply_To) ?
                            (MailStruct->Reply_To) : (MailStruct->From), NULL);
           if (fh == NULL) {
@@ -132,7 +128,6 @@
           syslog(LOG_INFO, "Mail is filtered through \"%s\" due to access control.",
               parameter);
           rc = MailFilter(MailStruct, parameter);
-          debug((DEBUG_ACL, 3, "Mail filter \"%s\" returned %d.", parameter, rc));
           if (rc != 0) {
               syslog(LOG_ERR, "Mail filter \"%s\" returned error code %d.", parameter, rc);
               return -1;
@@ -146,15 +141,5 @@
     if (parameter != NULL)
       free(parameter);
 
-#ifdef DEBUG
-    if (listname != NULL) {
-        debug((DEBUG_ACL, 3, "\"%s\" is authorized to post to \"%s\".",
-               MailStruct->From, listname));
-    }
-    else {
-        debug((DEBUG_ACL, 3, "Request from \"%s\" is okay, says ACL", MailStruct->From));
-    }
-#endif
-
     return 0;
 }

CVSTrac 2.0.1