diff options
author | Raúl Benencia <rul@kalgan.cc> | 2013-09-01 21:10:33 -0300 |
---|---|---|
committer | Raúl Benencia <rul@kalgan.cc> | 2013-09-01 21:10:33 -0300 |
commit | 56b4aef769386e9fbe3b074698451e8b74489d61 (patch) | |
tree | 174d7176ae0de7308891a7c6ce4b45dbf8e87f54 /Handlers.hs | |
parent | 917de9c6df342d032e2b05238c7ea923da2772db (diff) |
Email mode working for almost all kind of test-emails
Diffstat (limited to 'Handlers.hs')
-rw-r--r-- | Handlers.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Handlers.hs b/Handlers.hs index 503358b..ccce1d0 100644 --- a/Handlers.hs +++ b/Handlers.hs @@ -9,6 +9,7 @@ module Handlers where import Codec.MIME.Parse(parseMIMEMessage) import Codec.MIME.Type(MIMEValue(..)) +import Control.Exception(evaluate) import Control.Monad.State import Data.List(intercalate, stripPrefix) import System.FilePath(FilePath, takeFileName, dropTrailingPathSeparator) @@ -33,7 +34,7 @@ changeMode :: Mode -> LazymailCurses () changeMode EmailMode = return () changeMode IndexMode = do st <- get - msg <- liftIO $ UTF8.readFile . selectedEmailPath . indexState $ st + msg <- liftIO $ UTF8.readFile (selectedEmailPath . indexState $ st) let email = parseMIMEMessage msg let body = getBody $ email let el = formatBody body $ screenColumns st |