From 625983a6b5d67014a87d090a1363226cdc28363b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 12 Feb 2001 20:44:13 +0000 Subject: [PATCH] Changed loglevel of sereval syslog() calls from NOTICE to INFO, because they do not really require the administrator's attention but are informational. --- help.c | 2 +- hermes.c | 12 ++++++------ listserv.c | 1 - members.c | 4 ++-- rfcparse.c | 10 +++++----- 5 files changed, 14 insertions(+), 15 deletions(-) diff --git a/help.c b/help.c index 5236dbf..2a81e64 100644 --- a/help.c +++ b/help.c @@ -73,7 +73,7 @@ SendHelp(struct Mail * MailStruct, free(p); } else { - syslog(LOG_NOTICE, "List \"%s\" doesn't have a description.", param1); + syslog(LOG_INFO, "List \"%s\" doesn't have a description.", param1); fprintf(fh, "No description available.\n"); } CloseMailer(fh); diff --git a/hermes.c b/hermes.c index 50192a3..48dc393 100644 --- a/hermes.c +++ b/hermes.c @@ -125,7 +125,7 @@ void hermes_main(char * incoming_mail, const char * listname) if (ListConfig->listtype == LIST_MODERATED) { - syslog(LOG_NOTICE, "\"%s\" tried to post to list \"%s\", but failed to " \ + syslog(LOG_INFO, "\"%s\" tried to post to list \"%s\", but failed to " \ "provide a correct password.", MailStruct->From, listname); fh = vOpenMailer(envelope, owner, NULL); @@ -156,7 +156,7 @@ void hermes_main(char * incoming_mail, const char * listname) if (isSubscribed(listname, MailStruct->From, NULL, NULL, TRUE) == FALSE) { - syslog(LOG_NOTICE, "\"%s\" tried to post to closed list \"%s\", but " \ + syslog(LOG_INFO, "\"%s\" tried to post to closed list \"%s\", but " \ "he is no subscriber.", MailStruct->From, listname); fh = vOpenMailer(envelope, owner, NULL); @@ -190,7 +190,7 @@ void hermes_main(char * incoming_mail, const char * listname) char* cookie; char* originator = (MailStruct->Reply_To) ? MailStruct->Reply_To : MailStruct->From; - syslog(LOG_NOTICE, "\"%s\" tried to post to acknowledged list \"%s\"; posting " \ + syslog(LOG_INFO, "\"%s\" tried to post to acknowledged list \"%s\"; posting " \ "has been deferred.", MailStruct->From, listname); cookie = queue_posting(MailStruct, listname); @@ -225,7 +225,7 @@ void hermes_main(char * incoming_mail, const char * listname) if (g_is_approved) { - syslog(LOG_NOTICE, "\"%s\" acknowledged a former posting attempt on ack-once list \"%s\"; " \ + syslog(LOG_INFO, "\"%s\" acknowledged a former posting attempt on ack-once list \"%s\"; " \ "add him to the ack file and let the posting pass.", MailStruct->From, listname); rc = add_address(ListConfig->ack_file, MailStruct->From); @@ -250,7 +250,7 @@ void hermes_main(char * incoming_mail, const char * listname) { char* cookie; - syslog(LOG_NOTICE, "\"%s\" tried to post to ack-once list \"%s\", but is posting " \ + syslog(LOG_INFO, "\"%s\" tried to post to ack-once list \"%s\", but is posting " \ "for the first time; posting has been deferred.", MailStruct->From, listname); cookie = queue_posting(MailStruct, listname); @@ -280,7 +280,7 @@ void hermes_main(char * incoming_mail, const char * listname) return; } else - syslog(LOG_NOTICE, "\"%s\" tried to post to ack-once list \"%s\" and has been found in " \ + syslog(LOG_INFO, "\"%s\" tried to post to ack-once list \"%s\" and has been found in " \ "the ack file; letting posting pass.", MailStruct->From, listname); } } diff --git a/listserv.c b/listserv.c index 9e4fddc..a2a3eaa 100644 --- a/listserv.c +++ b/listserv.c @@ -84,7 +84,6 @@ void listserv_main(char * incoming_mail, char * default_list) g_currLine = MailStruct->Body; if (*g_currLine == '\0') { - syslog(LOG_NOTICE, "Received mail with empty body."); SendHelp(MailStruct, NULL, NULL, default_list); return; } diff --git a/members.c b/members.c index d0cc6f4..e135c47 100644 --- a/members.c +++ b/members.c @@ -54,7 +54,7 @@ SendSubscriberList(struct Mail * MailStruct, listname = defaultlist; if (address == NULL || listname == NULL) { - syslog(LOG_NOTICE, "%s: members-command invalid: No list specified.", + syslog(LOG_INFO, "%s: members-command invalid: No list specified.", MailStruct->From); return 0; } @@ -70,7 +70,7 @@ SendSubscriberList(struct Mail * MailStruct, if (isValidAdminPassword(getPassword(), listname) == FALSE && ListConfig->allowmembers == FALSE) { - syslog(LOG_NOTICE, "MEMBERS command from \"%s\" has been denied.", address); + syslog(LOG_INFO, "MEMBERS command from \"%s\" has been denied.", address); fh = vOpenMailer(envelope, address, owner, NULL); if (fh != NULL) { fprintf(fh, "From: %s-request@%s (Petidomo Mailing List Server)\n", diff --git a/rfcparse.c b/rfcparse.c index cf3c8ec..e1415ba 100644 --- a/rfcparse.c +++ b/rfcparse.c @@ -271,7 +271,7 @@ ParseMail(struct Mail **result, char * incoming_mail, const char * fqdn) if (strncasecmp("From:", currLine, strlen("From:")) == 0) { if (MailStruct->From != NULL) { - syslog(LOG_NOTICE, "Received mail with multiple From: lines."); + syslog(LOG_INFO, "Received mail with multiple From: lines."); continue; } MailStruct->From = &currLine[strlen("From:")]; @@ -281,7 +281,7 @@ ParseMail(struct Mail **result, char * incoming_mail, const char * fqdn) CanonizeAddress(&(MailStruct->From), fqdn); } else if (strncasecmp("Reply-To:", currLine, strlen("Reply-To:")) == 0) { if (MailStruct->Reply_To != NULL) { - syslog(LOG_NOTICE, "Received mail with multiple Reply-To: lines."); + syslog(LOG_INFO, "Received mail with multiple Reply-To: lines."); continue; } MailStruct->Reply_To = &currLine[strlen("Reply-To:")]; @@ -301,7 +301,7 @@ ParseMail(struct Mail **result, char * incoming_mail, const char * fqdn) } else if (strncasecmp("Approve:", currLine, strlen("Approve:")) == 0) { if (MailStruct->Approve != NULL) - syslog(LOG_NOTICE, "Received mail with multiple Approve: lines."); + syslog(LOG_INFO, "Received mail with multiple Approve: lines."); MailStruct->Approve = &currLine[strlen("Approve:")]; rc = ParseApproveLine(MailStruct->Approve); if (rc != 0) @@ -309,7 +309,7 @@ ParseMail(struct Mail **result, char * incoming_mail, const char * fqdn) } else if (strncasecmp("Approved:", currLine, strlen("Approved:")) == 0) { if (MailStruct->Approve != NULL) - syslog(LOG_NOTICE, "Received mail with multiple Approve: lines."); + syslog(LOG_INFO, "Received mail with multiple Approve: lines."); MailStruct->Approve = &currLine[strlen("Approved:")]; rc = ParseApproveLine(MailStruct->Approve); if (rc != 0) @@ -317,7 +317,7 @@ ParseMail(struct Mail **result, char * incoming_mail, const char * fqdn) } else if (strncasecmp("Subject:", currLine, strlen("Subject:")) == 0) { if (MailStruct->Subject != NULL) - syslog(LOG_NOTICE, "Received mail with multiple Subject: lines."); + syslog(LOG_INFO, "Received mail with multiple Subject: lines."); MailStruct->Subject = &currLine[strlen("Subject:")]; if (*MailStruct->Subject == ' ') MailStruct->Subject += 1;