Added experimental code for zonegate echomail
This commit is contained in:
parent
a8ea085588
commit
aaf3b6cbc9
@ -7,6 +7,7 @@ v0.91.2 17-Feb-2008
|
|||||||
|
|
||||||
mbfido:
|
mbfido:
|
||||||
Added debug code for a seenby problem.
|
Added debug code for a seenby problem.
|
||||||
|
Added experimental code for zonegate echomail.
|
||||||
|
|
||||||
mbsetup:
|
mbsetup:
|
||||||
Fixed chapter numbering in the ascii sitedoc.
|
Fixed chapter numbering in the ascii sitedoc.
|
||||||
|
@ -352,6 +352,14 @@ Syslog('-', "postecho(%s)", ascfnode(p_from, 0x1f));
|
|||||||
fill_list(&sbl, sbe, NULL);
|
fill_list(&sbl, sbe, NULL);
|
||||||
if (strcmp(msgs.Tag, "VCTEST") == 0) {
|
if (strcmp(msgs.Tag, "VCTEST") == 0) {
|
||||||
Syslog('-', "zonegated message, seenby is now %s", sbe);
|
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);
|
seenlen = strlen(sbe);
|
||||||
}
|
}
|
||||||
fprintf(nfp, "%s", sbe);
|
fprintf(nfp, "%s", sbe);
|
||||||
if (strcmp(msgs.Tag, "VCTEST") == 0) {
|
//if (strcmp(msgs.Tag, "VCTEST") == 0) {
|
||||||
Syslog('-', "add %s to msg", sbe);
|
//Syslog('-', "add %s to msg", sbe);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
seenlen = MAXPATH + 1;
|
seenlen = MAXPATH + 1;
|
||||||
@ -487,6 +495,16 @@ Syslog('-', "add %s to msg", sbe);
|
|||||||
fflush(nfp);
|
fflush(nfp);
|
||||||
rewind(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.
|
* Import this echomail, even if it's bad or a dupe.
|
||||||
|
Reference in New Issue
Block a user