X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fsmtp%2Fsmtp_util.c;h=1db154635cc84e30b92499d20a00e136b8401351;hb=e1241b61d2f8d7935670c36ab5fb4e10262514a6;hp=9e215c07455176cc298a52d337239f9c5d6c4262;hpb=d9c2f2b51d5833243d09143fb308915e25f18a74;p=citadel.git diff --git a/citadel/modules/smtp/smtp_util.c b/citadel/modules/smtp/smtp_util.c index 9e215c074..1db154635 100644 --- a/citadel/modules/smtp/smtp_util.c +++ b/citadel/modules/smtp/smtp_util.c @@ -116,7 +116,6 @@ void smtp_do_bounce(char *instr, StrBuf *OMsgTxt) StrBuf *boundary; int num_bounces = 0; int bounce_this = 0; - long bounce_msgid = (-1); time_t submitted = 0L; struct CtdlMessage *bmsg = NULL; int give_up = 0; @@ -258,12 +257,10 @@ void smtp_do_bounce(char *instr, StrBuf *OMsgTxt) if (num_bounces > 0) { /* First try the user who sent the message */ - syslog(LOG_DEBUG, "bounce to user? <%s>\n", bounceto); - if (IsEmptyStr(bounceto)) { + if (IsEmptyStr(bounceto)) syslog(LOG_ERR, "No bounce address specified\n"); - bounce_msgid = (-1L); - } - + else + syslog(LOG_DEBUG, "bounce to user <%s>\n", bounceto); /* Can we deliver the bounce to the original sender? */ valid = validate_recipients(bounceto, smtp_get_Recipients (), 0); if (valid != NULL) {