Added debug logging

This commit is contained in:
Michiel Broek 2005-08-20 11:20:24 +00:00
parent bc6bff0ec0
commit 603713f9cc

View File

@ -71,6 +71,8 @@ int ftnmsgid(char *msgid, char **s, unsigned long *n, char *areaname)
faddr *tmp; faddr *tmp;
static int ftnorigin = 0; static int ftnorigin = 0;
Syslog('m', "Make ftn msgid from \"%s\"", MBSE_SS(msgid));
if (msgid == NULL) { if (msgid == NULL) {
*s = NULL; *s = NULL;
*n = 0L; *n = 0L;
@ -228,6 +230,8 @@ ftnmsg *mkftnhdr(rfcmsg *msg, int newsmode, faddr *recipient)
if (p == NULL) if (p == NULL)
p = xstrcpy(hdr((char *)"To", msg)); /* 14-Aug-2001 MB */ p = xstrcpy(hdr((char *)"To", msg)); /* 14-Aug-2001 MB */
if (p) { if (p) {
Syslog('m', "Getting `to' address from \"%s\"", MBSE_SS(p));
if ((tmsg->to = parsefaddr(p)) == NULL) if ((tmsg->to = parsefaddr(p)) == NULL)
tmsg->to = parsefaddr((char *)"All@p0.f0.n0.z0"); tmsg->to = parsefaddr((char *)"All@p0.f0.n0.z0");
if ((l = strrchr(p,'<')) && (r = strchr(p,'>')) && (l < r)) { if ((l = strrchr(p,'<')) && (r = strchr(p,'>')) && (l < r)) {