diff options
author | Raúl Benencia <rul@kalgan.cc> | 2013-08-30 09:49:01 -0300 |
---|---|---|
committer | Raúl Benencia <rul@kalgan.cc> | 2013-08-30 09:49:01 -0300 |
commit | 4010acf611b862be18e4a5fc8964f38c7767e5f2 (patch) | |
tree | f59ede857631c63a59d54fa7b2089ca795c0c8e5 /Email.hs | |
parent | 96be972c18b9ff389cf713d9cd025fb31bea503f (diff) |
Removed the workaround, as Rfc2822 is now fixed
Diffstat (limited to 'Email.hs')
-rw-r--r-- | Email.hs | 20 |
1 files changed, 2 insertions, 18 deletions
@@ -18,7 +18,7 @@ data Email = Email { emailPath :: String } parseEmail :: String -> Message -parseEmail msg = unwrapEmail $ parse message "<stdin>" $ fixEol $ uglyWorkaround msg +parseEmail msg = unwrapEmail $ parse message "<stdin>" $ fixEol msg unwrapEmail (Right email) = email getFields (Message fs _) = fs @@ -72,20 +72,4 @@ fixEol [] = [] -- emailDescription = emailDescriptionWithPP defaultDescriptionPP --- emailDescriptionWithPP pp - -{- This is an ugly, Ugly, UGLY workaround for the encoding problems that I - - have with Rfc2822 module. I've reported the bug. I hope it get fixed any time soon so - - I can kill this function with fire -} - -uglyWorkaround :: String -> String -uglyWorkaround = map replace where - replace c = - case c of - 'á' -> 'a' - 'é' -> 'e' - 'í' -> 'i' - 'ó' -> 'o' - 'ú' -> 'u' - 'ñ' -> 'n' - _ -> c +-- emailDescriptionWithPP pp
\ No newline at end of file |