From 4c99804a176a816cb1f2d46e1dc401135a3a9d70 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 18 Oct 2002 12:33:03 +0000 Subject: Detect and rewrite local paths. svn path=/trunk/; revision=3743 --- sink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sink.c') diff --git a/sink.c b/sink.c index a906fde7..8e1b89d9 100644 --- a/sink.c +++ b/sink.c @@ -811,7 +811,7 @@ static int open_smtp_sink(struct query *ctl, struct msgblk *msg, * Also, if the hostname is a dotted quad, wrap it in square brackets. * Apparently this is required by RFC2821, section 4.1.3. */ - if (!msg->return_path[0] || (0 == strcmp(msg->return_path, "@"))) + if (!msg->return_path[0] || (msg->return_path[0] == '@')) { if (is_dottedquad(ctl->server.truename)) { -- cgit v1.2.3