From: undefine Date: Wed, 3 Mar 2004 22:28:31 +0000 (+0000) Subject: - add charset to mails, patch from fedora X-Git-Tag: auto/th/anacron-2_3-25~8 X-Git-Url: https://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=505508a089c14eb877a0e2dfd633f9cd6b264d2a;hp=86768a8bafaf60fa25fbc0a3da41cbc9d1b893e5;p=packages%2Fanacron.git - add charset to mails, patch from fedora Changed files: anacron-content-type.patch -> 1.1 --- 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");