# HG changeset patch # User Ben Schmidt # Date 1284910892 -36000 # Node ID 5db75af2d0db63820645ace5cf87f56d59d52d46 # Parent ada79809aac002bb864db07de0c868d8f280caca Fix Content-Transfer-Encoding: header for digests, and always close digest listtext diff -r ada79809aac0 -r 5db75af2d0db ChangeLog --- 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 diff -r ada79809aac0 -r 5db75af2d0db src/send_digest.c --- 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);