mlmmj

changeset 5db75af2d0db

Fix Content-Transfer-Encoding: header for digests, and always close digest listtext
author Ben Schmidt
date Mon, 20 Sep 2010 01:41:32 +1000
parents ada79809aac0
children b72bcb7e08a2
files ChangeLog src/send_digest.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/ChangeLog	Mon Sep 20 01:19:25 2010 +1000
     1.2 +++ b/ChangeLog	Mon Sep 20 01:41:32 2010 +1000
     1.3 @@ -1,3 +1,5 @@
     1.4 + o Ensure digest listtext is always closed
     1.5 + o Fix Content-Transfer-Encoding: header for digests
     1.6   o Fixed a bug that could cause a crash if $posteraddr$ appeared in the
     1.7     maxmaiilsize listtext
     1.8   o Documented listtexts
     2.1 --- a/src/send_digest.c	Mon Sep 20 01:19:25 2010 +1000
     2.2 +++ b/src/send_digest.c	Mon Sep 20 01:41:32 2010 +1000
     2.3 @@ -321,7 +321,7 @@
     2.4  
     2.5  		tmp = concatstr(3, "\n--", boundary,
     2.6  				"\nContent-Type: text/plain; charset=UTF-8"
     2.7 -				"\nContent-Encoding: 8bit"
     2.8 +				"\nContent-Transfer-Encoding: 8bit"
     2.9  				"\n\n");
    2.10  		if (writen(fd, tmp, strlen(tmp)) == -1) {
    2.11  			log_error(LOG_ARGS, "Could not write digest text/plain"
    2.12 @@ -376,6 +376,8 @@
    2.13  		}
    2.14  
    2.15  		close(txtfd);
    2.16 +	} else if (txtfd > 0) {
    2.17 +		close(txtfd);
    2.18  	}
    2.19  
    2.20  	myfree(line);