Fixed a problem with out-of zone echomail

This commit is contained in:
Michiel Broek 2003-01-02 20:09:06 +00:00
parent 79d31bda0a
commit 5ae4b967b2
2 changed files with 7 additions and 2 deletions

View File

@ -44,6 +44,9 @@ v0.37.00 26-Dec-2002.
Move old files to another area failed, only the symbolic link Move old files to another area failed, only the symbolic link
was moved. was moved.
mbfido:
Echomail from other zones showed the address of your own zone.
mbsetup: mbsetup:
Removed global flags No-IBN, IFC and ITN from the setup. Removed global flags No-IBN, IFC and ITN from the setup.
Removed nodes flags No-IBN, IFC and ITN from the setup. Removed nodes flags No-IBN, IFC and ITN from the setup.

View File

@ -236,8 +236,10 @@ int importmsg(faddr *p_from, faddr *f, faddr *t, char *orig, char *subj, time_t
} /* end of checking kludges */ } /* end of checking kludges */
if (echomail) { if (echomail) {
f->zone = p_from->zone; if (!f->zone)
t->zone = tzone; f->zone = p_from->zone;
if (!t->zone)
t->zone = tzone;
rc = postecho(p_from, f, t, orig, subj, mdate, flags, cost, fp, TRUE); rc = postecho(p_from, f, t, orig, subj, mdate, flags, cost, fp, TRUE);
} else } else
rc = postnetmail(fp, f, t, orig, subj, mdate, flags, TRUE, p_from->zone, tzone); rc = postnetmail(fp, f, t, orig, subj, mdate, flags, TRUE, p_from->zone, tzone);