comparison src/dnsbl.cpp @ 311:f5547e7b3a09

enable smtp verify logging
author Carl Byington <carl@five-ten-sg.com>
date Mon, 19 Sep 2016 09:11:30 -0700
parents 802e2b779ed1
children e172dc10fe24
comparison
equal deleted inserted replaced
310:802e2b779ed1 311:f5547e7b3a09
748 //////////////////////////////////////////////// 748 ////////////////////////////////////////////////
749 // syslog a message 749 // syslog a message
750 // 750 //
751 void my_syslog(const char *queueid, const char *text) { 751 void my_syslog(const char *queueid, const char *text) {
752 char buf[maxlen]; 752 char buf[maxlen];
753 if (queueid) { 753 if (queueid && queueid[0]) {
754 snprintf(buf, sizeof(buf), "%s: %s", queueid, text); 754 snprintf(buf, sizeof(buf), "%s: %s", queueid, text);
755 text = buf; 755 text = buf;
756 } 756 }
757 if (use_syslog) { 757 if (use_syslog) {
758 pthread_mutex_lock(&syslog_mutex); 758 pthread_mutex_lock(&syslog_mutex);