Mercurial > hg > mlmmj
changeset 740: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 wrap: on
line diff
--- a/ChangeLog Mon Sep 20 01:19:25 2010 +1000 +++ b/ChangeLog Mon Sep 20 01:41:32 2010 +1000 @@ -1,3 +1,5 @@ + o Ensure digest listtext is always closed + o Fix Content-Transfer-Encoding: header for digests o Fixed a bug that could cause a crash if $posteraddr$ appeared in the maxmaiilsize listtext o Documented listtexts
--- a/src/send_digest.c Mon Sep 20 01:19:25 2010 +1000 +++ b/src/send_digest.c Mon Sep 20 01:41:32 2010 +1000 @@ -321,7 +321,7 @@ tmp = concatstr(3, "\n--", boundary, "\nContent-Type: text/plain; charset=UTF-8" - "\nContent-Encoding: 8bit" + "\nContent-Transfer-Encoding: 8bit" "\n\n"); if (writen(fd, tmp, strlen(tmp)) == -1) { log_error(LOG_ARGS, "Could not write digest text/plain" @@ -376,6 +376,8 @@ } close(txtfd); + } else if (txtfd > 0) { + close(txtfd); } myfree(line);