]> gitweb.michael.orlitzky.com - dead/halcyon.git/blobdiff - src/Mail.hs
Add default headers for MIME-Version and Content-type to each outgoing message.
[dead/halcyon.git] / src / Mail.hs
index 3304d7677dd501734b027bf43158876cc6672a6e..c93a6cff2e9cc53e11e96e9b0e4c36f7733b17fd 100644 (file)
@@ -22,6 +22,10 @@ data Message = Message { headers :: [Header],
                          to      :: String }
              deriving (Eq)
 
+default_headers :: [Header]
+default_headers = ["MIME-Version: 1.0",
+                   "Content-type: text/plain; charset=UTF-8"]
+
 -- |Showing a message will print it in roughly RFC-compliant
 -- form. This form is sufficient for handing the message off to
 -- sendmail.