From aeaef6f0dab60e6c9e99113e3f4beb29dde93cba Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sat, 1 Sep 2001 11:03:09 +0000 Subject: [PATCH] Fixed errormessage for dupe mail --- mbfido/postecho.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mbfido/postecho.c b/mbfido/postecho.c index b4a3795b..bb9b3bb2 100644 --- a/mbfido/postecho.c +++ b/mbfido/postecho.c @@ -2,7 +2,7 @@ * * File ..................: mbfido/postecho.c * Purpose ...............: Post echomail message. - * Last modification date : 29-Aug-2001 + * Last modification date : 01-Sep-2001 * ***************************************************************************** * Copyright (C) 1997-2001 @@ -499,11 +499,12 @@ int postecho(faddr *p_from, faddr *f, faddr *t, char *orig, char *subj, /* * Import this echomail, even if it's bad or a dupe. */ - if (storeecho(f, t, mdate, flags, subj, msgid, reply, bad, dupe, nfp) || bad || dupe) { + if ((rc = storeecho(f, t, mdate, flags, subj, msgid, reply, bad, dupe, nfp)) || bad || dupe) { /* - * Store failed or it was bad or a dupe. + * Store failed or it was bad or a dupe. Only log failed store. */ - WriteError("Store echomail in JAM base failed"); + if (rc) + WriteError("Store echomail in JAM base failed"); tidy_falist(&sbl); tidy_falist(&ptl); tidy_qualify(&qal); @@ -512,7 +513,7 @@ int postecho(faddr *p_from, faddr *f, faddr *t, char *orig, char *subj, free(msgid); if (reply) free(reply); - return 0; + return rc; } /*