diff options
author | Raúl Benencia <rul@kalgan.cc> | 2013-08-30 15:26:33 -0300 |
---|---|---|
committer | Raúl Benencia <rul@kalgan.cc> | 2013-08-30 15:26:33 -0300 |
commit | 58836f3c2020c634a2a508846140d163572fd5c0 (patch) | |
tree | 13a52943928f65a506201f06199dba1e403a7a93 /Handlers.hs | |
parent | 4010acf611b862be18e4a5fc8964f38c7767e5f2 (diff) |
Fix problem with multi-lines subjects
Diffstat (limited to 'Handlers.hs')
-rw-r--r-- | Handlers.hs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Handlers.hs b/Handlers.hs index 72f09dc..4a0ba88 100644 --- a/Handlers.hs +++ b/Handlers.hs @@ -7,6 +7,7 @@ module Handlers where +import Data.List(intercalate) import Control.Monad.State import Data.List(stripPrefix) import System.FilePath(FilePath, takeFileName, dropTrailingPathSeparator) @@ -151,10 +152,10 @@ formatIndexModeRows st = mapM formatRow where msg <- UTF8.readFile fp let email = parseEmail msg let fs = getFields email - let str = normalizeLen (screenColumns st) . concat $ - [ (ppSep ++) $ ppFlags . getFlags $ fp - , (ppSep ++) $ ppIndexNameAddr . getFrom $ fs - , (ppSep ++) $ ppIndexSubject . getSubject $ fs + let str = normalizeLen (screenColumns st) $ intercalate ppSep $ + [ ppFlags . getFlags $ fp + , ppIndexNameAddr . getFrom $ fs + , ppSubject . getSubject $ fs ] return (fp, str) |