diff options
-rw-r--r-- | sink.c | 2 | ||||
-rw-r--r-- | smtp.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -721,7 +721,7 @@ static int open_bsmtp_sink(struct query *ctl, struct msgblk *msg, /* see the ap computation under the SMTP branch */ fprintf(sinkfp, - "MAIL FROM: %s", (msg->return_path[0]) ? msg->return_path : user); + "MAIL FROM:%s", (msg->return_path[0]) ? msg->return_path : user); if (ctl->pass8bits || (ctl->mimemsg & MSG_IS_8BIT)) fputs(" BODY=8BITMIME", sinkfp); @@ -232,13 +232,13 @@ int SMTP_from(int sock, const char *from, const char *opts) int ok; char buf[MSGBUFSIZE]; - if (strchr(from, '<')) + if (from[0]=='<') #ifdef HAVE_SNPRINTF snprintf(buf, sizeof(buf), #else sprintf(buf, #endif /* HAVE_SNPRINTF */ - "MAIL FROM: %s", from); + "MAIL FROM:%s", from); else #ifdef HAVE_SNPRINTF snprintf(buf, sizeof(buf), |