Bernhard Erdmann wrote:
Hi,
I have a Cyrus installation where Sieve writes an empty line into the header. Header and body of a mail are seperated by definition by a blank line.
By submitting an extra blank line between Message-ID: and Date:, Sieve writes From:, Date:, Subject: etc. into the body of the mail.
Server software is Cyrus 2.1.14 and Exim 3.36 on Linux.
- Sieve script:
#Mail filter rules for be #Generated by be using SmartSieve 0.5.1-devel 2003/07/19 12:32:41 require ["vacation"];
vacation :days 4 :addresses ["[EMAIL PROTECTED]"] text: junk . ;
##PSEUDO script start #vacation&&4&&"[EMAIL PROTECTED]"&&junk&&on #mode&&basic
- autoreply mail:
[...] Received: from cyrus by xxx with local (Exim 3.36 #2) id 19dp5R-0000Aj-00 for [EMAIL PROTECTED]; Sat, 19 Jul 2003 12:37:09 +0200 Message-ID: <[EMAIL PROTECTED]>
Date: Sat, 19 Jul 2003 12:37:09 +0200 X-Sieve: CMU Sieve 2.2 From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: junk In-Reply-To: <[EMAIL PROTECTED]> Auto-Submitted: auto-replied (vacation) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS 0.3.12
I'm not convinced that this is being caused by Cyrus. Here a snippit of the code which produces the vacation response. As you can see, there is no extra CRLF after the Message-ID (or before Date).
t = time(NULL); p = getpid(); snprintf(outmsgid, sizeof(outmsgid), "<[EMAIL PROTECTED]>", (int) p, (int) t, global_outgoing_count++, config_servername);
fprintf(sm, "Message-ID: %s\r\n", outmsgid);
rfc822date_gen(datestr, sizeof(datestr), t); fprintf(sm, "Date: %s\r\n", datestr);
fprintf(sm, "X-Sieve: %s\r\n", SIEVE_VERSION); fprintf(sm, "From: <%s>\r\n", src->fromaddr); fprintf(sm, "To: <%s>\r\n", src->addr);
-- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp