diff options
author | Raúl Benencia <rul@kalgan.cc> | 2013-09-03 12:29:47 -0300 |
---|---|---|
committer | Raúl Benencia <rul@kalgan.cc> | 2013-09-03 12:29:47 -0300 |
commit | fc7a8483f4a66a3f47bbb335574a399df64d62e0 (patch) | |
tree | ee91c99a23b8999503d47635b1b404d54770e586 /Types.hs | |
parent | ac5a65d8adc1d9a683327165057493d9cba6fdb8 (diff) |
Color in new emails
Diffstat (limited to 'Types.hs')
-rw-r--r-- | Types.hs | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -27,11 +27,12 @@ data LazymailConfig = LazymailConfig { , selectionColor :: (Color, Color) , statusBarColor :: (Color, Color) , headerColor :: (Color, Color) + , newEmailColor :: (Color, Color) , showStatusBar :: Bool , initialPath :: FilePath , filterMaildirsHook :: [FilePath] -> IO [FilePath] , indexDateFormat :: String - , headersToShow :: [String] + , headersToShow :: [String] } data Email = Email { @@ -47,6 +48,21 @@ instance Ord Email where (Email _ d1 _) `compare` (Email _ d2 _) = d1 `compare` d2 data Mode = MaildirMode | IndexMode | EmailMode | ComposeMode + deriving (Show, Eq) + +type Maildir = FilePath + +data Flag = NEW + | SEEN + | ANSWERED + | FLAGGED + | DELETED + | DRAFT + | FORWARDED + | OTHERFLAG String + deriving (Eq) + +type Flags = [Flag] data LazymailState = LazymailState { mode :: Mode @@ -97,4 +113,5 @@ data ColorStyle = ColorStyle { , selectionColorID :: ColorID , statusBarColorID :: ColorID , headerColorID :: ColorID + , newEmailColorID :: ColorID } |