Added experimental code for zonegate echomail

This commit is contained in:
Michiel Broek 2008-03-09 15:24:35 +00:00
parent a8ea085588
commit aaf3b6cbc9
2 changed files with 22 additions and 3 deletions

View File

@ -7,6 +7,7 @@ v0.91.2 17-Feb-2008
mbfido:
Added debug code for a seenby problem.
Added experimental code for zonegate echomail.
mbsetup:
Fixed chapter numbering in the ascii sitedoc.

View File

@ -352,6 +352,14 @@ Syslog('-', "postecho(%s)", ascfnode(p_from, 0x1f));
fill_list(&sbl, sbe, NULL);
if (strcmp(msgs.Tag, "VCTEST") == 0) {
Syslog('-', "zonegated message, seenby is now %s", sbe);
}
/*
* Add our system again, the rest of our aka's will be added next.
*/
snprintf(sbe, 16, "%u/%u", msgs.Aka.net, msgs.Aka.node);
fill_list(&sbl, sbe, NULL);
if (strcmp(msgs.Tag, "VCTEST") == 0) {
Syslog('-', "and added %s", sbe);
}
}
@ -458,9 +466,9 @@ Syslog('-', "zonegated message, seenby is now %s", sbe);
seenlen = strlen(sbe);
}
fprintf(nfp, "%s", sbe);
if (strcmp(msgs.Tag, "VCTEST") == 0) {
Syslog('-', "add %s to msg", sbe);
}
//if (strcmp(msgs.Tag, "VCTEST") == 0) {
//Syslog('-', "add %s to msg", sbe);
//}
}
seenlen = MAXPATH + 1;
@ -487,6 +495,16 @@ Syslog('-', "add %s to msg", sbe);
fflush(nfp);
rewind(nfp);
if (strcmp(msgs.Tag, "VCTEST") == 0) {
while ((fgets(buf, MAX_LINE_LENGTH, nfp)) != NULL) {
Striplf(buf);
if (strncmp(buf, "SEEN-BY", 7) == 0) {
Syslog('-', "%s", buf);
}
}
rewind(nfp);
}
/*
* Import this echomail, even if it's bad or a dupe.