From 505508a089c14eb877a0e2dfd633f9cd6b264d2a Mon Sep 17 00:00:00 2001 From: undefine Date: Wed, 3 Mar 2004 22:28:31 +0000 Subject: [PATCH 1/1] - add charset to mails, patch from fedora Changed files: anacron-content-type.patch -> 1.1 --- anacron-content-type.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 anacron-content-type.patch diff --git a/anacron-content-type.patch b/anacron-content-type.patch new file mode 100644 index 0000000..4481603 --- /dev/null +++ b/anacron-content-type.patch @@ -0,0 +1,22 @@ +diff -u anacron-2.3/runjob.c~ anacron-2.3/runjob.c +--- anacron-2.3/runjob.c~ 2003-07-10 15:25:44.000000000 +0900 ++++ anacron-2.3/runjob.c 2003-07-10 15:25:44.000000000 +0900 +@@ -35,6 +35,8 @@ + #include + #include "global.h" + ++#include ++ + static int + temp_file() + /* Open a temporary file and return its file descriptor */ +@@ -217,6 +219,9 @@ + xwrite(fd, "To: "); + xwrite(fd, username()); + xwrite(fd, "\n"); ++ xwrite(fd, "Content-Type: text/plain; charset=\""); ++ xwrite(fd, nl_langinfo(CODESET)); ++ xwrite(fd, "\"\n"); + xwrite(fd, "Subject: Anacron job '"); + xwrite(fd, jr->ident); + xwrite(fd, "'\n\n"); -- 2.44.0