it is added by the mda. If it sees one, it means that the enqueuer was used
as the mda and it needs to strip it otherwise the message will end with two
delimiters later down the road. Same applies to "Return-Path".
bug experienced by James Turner, confirmed by Giovanni.
fix suggested by Todd Miller, diff ok eric@
-/* $OpenBSD: enqueue.c,v 1.93 2015/05/03 18:10:58 gilles Exp $ */
+/* $OpenBSD: enqueue.c,v 1.94 2015/05/13 07:34:49 gilles Exp $ */
/*
* Copyright (c) 2005 Henning Brauer <henning@bulabula.org>
line = buf;
+ if (inheaders) {
+ if (strncasecmp("from ", line, 5) == 0)
+ continue;
+ if (strncasecmp("return-path: ", line, 13) == 0)
+ continue;
+ }
+
if (msg.saw_content_transfer_encoding || msg.noheader ||
inheaders || !msg.need_linesplit) {
send_line(fout, 0, "%.*s", (int)len, line);