const char *smtp_get_Recipients(void) {
struct citsmtp *sSMTP = SMTP;
- if (sSMTP == NULL)
+ if (sSMTP == NULL) {
return NULL;
+ }
else return ChrPtr(sSMTP->from);
}
int num_bounces = 0;
int bounce_this = 0;
struct CtdlMessage *bmsg = NULL;
- struct recptypes *valid;
int successful_bounce = 0;
static int seq = 0;
StrBuf *BounceMB;
else {
syslog(LOG_DEBUG, "bounce to user <%s>", bounceto);
}
- /* Can we deliver the bounce to the original sender? */
- valid = validate_recipients(bounceto, smtp_get_Recipients (), 0);
- if (valid != NULL) {
- if (valid->num_error == 0) {
- CtdlSubmitMsg(bmsg, valid, "");
- successful_bounce = 1;
- }
- }
/* If not, post it in the Aide> room */
if (successful_bounce == 0) {
CtdlSubmitMsg(bmsg, NULL, CtdlGetConfigStr("c_aideroom"));
}
- /* Free up the memory we used */
- if (valid != NULL) {
- free_recipients(valid);
- }
}
FreeStrBuf(&boundary);
CM_Free(bmsg);