X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhalcyon.git;a=blobdiff_plain;f=src%2FMail.hs;h=ecfa2af93b54fad18d8dabfb3877778c7175ae31;hp=db5673f62c84bef2964e2e1cb4fb188ec3d43a49;hb=7bb00e04c15781d889f950d00babf3f183047bff;hpb=26718edaad5cd7921d957a1f0972fd9f5cd5b645 diff --git a/src/Mail.hs b/src/Mail.hs index db5673f..ecfa2af 100644 --- a/src/Mail.hs +++ b/src/Mail.hs @@ -1,6 +1,12 @@ -- |Email functions and data types. -module Mail +module Mail ( + Message(..), + default_headers, + print_sendmail_result, + rfc822_now, + sendmail + ) where import Control.Concurrent @@ -50,15 +56,6 @@ instance Show Message where else (intercalate "\n" (headers m)) ++ "\n" --- |Pad a string on the left with zeros until the entire string has --- length n. -pad_left :: String -> Int -> String -pad_left str n - | n < (length str) = str - | otherwise = (replicate num_zeros '0') ++ str - where num_zeros = n - (length str) - - -- | Constructs a 'String' in RFC822 date format for the current -- date/time.