diff --git a/ChangeLog b/ChangeLog index fc3619be..d12db886 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/mbfido/postecho.c b/mbfido/postecho.c index e74aa68b..ed684124 100644 --- a/mbfido/postecho.c +++ b/mbfido/postecho.c @@ -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.