From 343b2385258a9093d305a6938d8ef34e36bfd8bb Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Tue, 21 Dec 2004 09:40:01 +0000 Subject: [PATCH] Sieve buglet: now it explicitly sets From: when generating an autoreply. --- doc/doc-txt/ChangeLog | 5 ++++- src/src/exim.h | 6 ++++-- src/src/sieve.c | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index 32606ba91..6cdc44cc6 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -1,4 +1,4 @@ -$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.48 2004/12/21 09:26:31 ph10 Exp $ +$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.49 2004/12/21 09:40:01 ph10 Exp $ Change log file for Exim from version 4.21 ------------------------------------------- @@ -207,6 +207,9 @@ Exim version 4.50 (the order specifies the preference for clients). The order is now AES256, AES128, 3DES, ARCFOUR128. +51. Small patch to Sieve code - explicitly set From: when generating an + autoreply. + Exim version 4.43 ----------------- diff --git a/src/src/exim.h b/src/src/exim.h index f7a4f7115..fa7acf8ba 100644 --- a/src/src/exim.h +++ b/src/src/exim.h @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/exim.h,v 1.4 2004/12/16 15:11:47 tom Exp $ */ +/* $Cambridge: exim/src/src/exim.h,v 1.5 2004/12/21 09:40:01 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -381,10 +381,12 @@ extern int ferror(FILE *); /* Exim includes are in several files. Note that local_scan.h #includes mytypes.h and store.h, so we don't need to mention them explicitly. */ + #include "config.h" -/* Before including the rest of the Exim headers, lets clear up some content +/* Before including the rest of the Exim headers, let's clear up some content scanning dependencies. */ + #ifdef WITH_OLD_DEMIME #define WITH_CONTENT_SCAN #endif diff --git a/src/src/sieve.c b/src/src/sieve.c index c684e34a9..629c73b3f 100644 --- a/src/src/sieve.c +++ b/src/src/sieve.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/sieve.c,v 1.2 2004/11/25 13:54:31 ph10 Exp $ */ +/* $Cambridge: exim/src/src/sieve.c,v 1.3 2004/12/21 09:40:01 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -2514,6 +2514,7 @@ while (*filter->pc) addr->reply = store_get(sizeof(reply_item)); memset(addr->reply,0,sizeof(reply_item)); /* XXX */ addr->reply->to = string_copy(sender_address); + addr->reply->from = expand_string(US"$local_part@$domain"); /* Allocation is larger than neccessary, but enough even for split MIME words */ buffer_capacity=16+4*subject.length; buffer=store_get(buffer_capacity); -- 2.25.1