Changed loglevel of sereval syslog() calls from NOTICE to INFO,
because they do not really require the administrator's attention but are informational.
This commit is contained in:
parent
d40df57546
commit
625983a6b5
2
help.c
2
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);
|
||||
|
||||
12
hermes.c
12
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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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",
|
||||
|
||||
10
rfcparse.c
10
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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user