From e5965591bf71c9472ef63b32734eb16e39d8441d Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 3 Jan 2003 13:13:13 +0000 Subject: [PATCH] Another piece of debugging --- mbfido/postecho.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mbfido/postecho.c b/mbfido/postecho.c index dfdc433d..fb41554b 100644 --- a/mbfido/postecho.c +++ b/mbfido/postecho.c @@ -144,7 +144,7 @@ int postecho(faddr *p_from, faddr *f, faddr *t, char *orig, char *subj, time_t m { char *buf, *msgid = NULL, *reply = NULL, *p, *q, sbe[16]; int First = TRUE, rc = 0, i, kludges = TRUE, dupe = FALSE, bad = TRUE, seenlen, oldnet; - faddr *Faddr; + faddr *Faddr, *ta; unsigned long crc; sysconnect Link; fa_list *sbl = NULL, *ptl = NULL, *tmpl; @@ -224,8 +224,18 @@ int postecho(faddr *p_from, faddr *f, faddr *t, char *orig, char *subj, time_t m crc = upd_crc32(buf, crc, strlen(buf)); First = FALSE; } - if (!strncmp(buf, "\001MSGID: ", 8)) + if (!strncmp(buf, "\001MSGID: ", 8)) { msgid = xstrcpy(buf + 8); + /* + * Extra test to see if the mail comes from a pointaddress. + */ + p = strtok(buf, " \n"); + p = strtok(NULL, " \n"); + if ((ta = parsefnode(p))) { + Syslog('m', "MSGID aka is %d", ascfnode(ta, 0x1f)); + tidy_faddr(ta); + } + } if (!strncmp(buf, "\001REPLY: ", 8)) reply = xstrcpy(buf + 8); if (!strncmp(buf, "SEEN-BY:", 8)) {