Added debug code for a seenby problem

This commit is contained in:
Michiel Broek 2008-03-09 13:06:53 +00:00
parent 3059b33636
commit a8ea085588
2 changed files with 15 additions and 0 deletions

View File

@ -5,6 +5,9 @@ v0.91.2 17-Feb-2008
mbselib.h: mbselib.h:
Added stream scanning for F-Prot. Added stream scanning for F-Prot.
mbfido:
Added debug code for a seenby problem.
mbsetup: mbsetup:
Fixed chapter numbering in the ascii sitedoc. Fixed chapter numbering in the ascii sitedoc.

View File

@ -338,6 +338,9 @@ int postecho(faddr *p_from, faddr *f, faddr *t, char *orig, char *subj, time_t m
*/ */
if (!dupe && !isbad) { if (!dupe && !isbad) {
if (strcmp(msgs.Tag, "VCTEST") == 0) {
Syslog('-', "postecho(%s)", ascfnode(p_from, 0x1f));
}
if (msgs.Aka.zone != Link.aka.zone) { if (msgs.Aka.zone != Link.aka.zone) {
/* /*
* If it is a zonegated echomailmessage the SEEN-BY lines * If it is a zonegated echomailmessage the SEEN-BY lines
@ -347,6 +350,9 @@ int postecho(faddr *p_from, faddr *f, faddr *t, char *orig, char *subj, time_t m
tidy_falist(&sbl); tidy_falist(&sbl);
snprintf(sbe, 16, "%u/%u", Link.aka.net, Link.aka.node); snprintf(sbe, 16, "%u/%u", Link.aka.net, Link.aka.node);
fill_list(&sbl, sbe, NULL); fill_list(&sbl, sbe, NULL);
if (strcmp(msgs.Tag, "VCTEST") == 0) {
Syslog('-', "zonegated message, seenby is now %s", sbe);
}
} }
/* /*
@ -452,6 +458,9 @@ int postecho(faddr *p_from, faddr *f, faddr *t, char *orig, char *subj, time_t m
seenlen = strlen(sbe); seenlen = strlen(sbe);
} }
fprintf(nfp, "%s", sbe); fprintf(nfp, "%s", sbe);
if (strcmp(msgs.Tag, "VCTEST") == 0) {
Syslog('-', "add %s to msg", sbe);
}
} }
seenlen = MAXPATH + 1; seenlen = MAXPATH + 1;
@ -509,6 +518,9 @@ int postecho(faddr *p_from, faddr *f, faddr *t, char *orig, char *subj, time_t m
StatAdd(&nodes.MailSent, 1L); StatAdd(&nodes.MailSent, 1L);
UpdateNode(); UpdateNode();
SearchNode(tmpq->aka); SearchNode(tmpq->aka);
if (strcmp(msgs.Tag, "VCTEST") == 0) {
Syslog('-', "send message to %s", aka2str(tmpq->aka));
}
echo_out++; echo_out++;
if (EchoOut(tmpq->aka, t->name, f->name, subj, nfp, flags, cost, mdate)) if (EchoOut(tmpq->aka, t->name, f->name, subj, nfp, flags, cost, mdate))
WriteError("Forward echomail to %s failed", aka2str(tmpq->aka)); WriteError("Forward echomail to %s failed", aka2str(tmpq->aka));