Sieve writes an empty line in headers for reject/vacation

Ken Murchison ken at oceana.com
Sat Jul 19 09:57:51 EDT 2003



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 ["be at xxx.de"] text:
> junk
> .
> ;
> 
> ##PSEUDO script start
> #vacation&&4&&"be at i12.de"&&junk&&on
> #mode&&basic
> 
> 
> - autoreply mail:
> 
> [...]
> Received: from cyrus by xxx with local (Exim 3.36 #2)
>     id 19dp5R-0000Aj-00
>     for be at xxx; Sat, 19 Jul 2003 12:37:09 +0200
> Message-ID: <cmu-sieve-664-1058611029-0 at xxx>
> 
> Date: Sat, 19 Jul 2003 12:37:09 +0200
> X-Sieve: CMU Sieve 2.2
> From: <be at i12.de>
> To: <be at berdmann.de>
> Subject: Re: junk
> In-Reply-To: <1058611023.9180c4d4e8e68 at ente.berdmann.de>
> 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), "<cmu-sieve-%d-%d-%d@%s>",
	     (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





More information about the Info-cyrus mailing list