]> git.pld-linux.org Git - packages/anacron.git/commitdiff
- add charset to mails, patch from fedora
authorundefine <undefine@pld-linux.org>
Wed, 3 Mar 2004 22:28:31 +0000 (22:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    anacron-content-type.patch -> 1.1

anacron-content-type.patch [new file with mode: 0644]

diff --git a/anacron-content-type.patch b/anacron-content-type.patch
new file mode 100644 (file)
index 0000000..4481603
--- /dev/null
@@ -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 <string.h>
+ #include "global.h"
++#include <langinfo.h>
++
+ 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");
This page took 0.15854 seconds and 4 git commands to generate.