Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Synopsis
- type MailboxName = String
- type UID = Word64
- type Charset = String
- data MailboxInfo = MboxInfo {
- _mailbox :: MailboxName
- _exists :: Integer
- _recent :: Integer
- _flags :: [Flag]
- _permanentFlags :: [Flag]
- _isWritable :: Bool
- _isFlagWritable :: Bool
- _uidNext :: UID
- _uidValidity :: UID
- data Flag
- data Attribute
- data MboxUpdate = MboxUpdate {}
- data StatusCode
- data ServerResponse
- = OK (Maybe StatusCode) String
- | NO (Maybe StatusCode) String
- | BAD (Maybe StatusCode) String
- | PREAUTH (Maybe StatusCode) String
- data MailboxStatus
- = MESSAGES
- | RECENT
- | UIDNEXT
- | UIDVALIDITY
- | UNSEEN
- data RespDerivs = RespDerivs {
- dvFlags :: Result RespDerivs [Flag]
- advTag :: Result RespDerivs String
- advChar :: Result RespDerivs Char
- advPos :: Pos
- emptyMboxInfo :: MailboxInfo
Documentation
type MailboxName = String Source #
data MailboxInfo Source #
MboxInfo | |
|
Instances
Eq MailboxInfo Source # | |
Defined in Network.HaskellNet.IMAP.Types (==) :: MailboxInfo -> MailboxInfo -> Bool # (/=) :: MailboxInfo -> MailboxInfo -> Bool # | |
Show MailboxInfo Source # | |
Defined in Network.HaskellNet.IMAP.Types showsPrec :: Int -> MailboxInfo -> ShowS # show :: MailboxInfo -> String # showList :: [MailboxInfo] -> ShowS # |
data MboxUpdate Source #
Instances
Eq MboxUpdate Source # | |
Defined in Network.HaskellNet.IMAP.Types (==) :: MboxUpdate -> MboxUpdate -> Bool # (/=) :: MboxUpdate -> MboxUpdate -> Bool # | |
Show MboxUpdate Source # | |
Defined in Network.HaskellNet.IMAP.Types showsPrec :: Int -> MboxUpdate -> ShowS # show :: MboxUpdate -> String # showList :: [MboxUpdate] -> ShowS # |
data StatusCode Source #
ALERT | |
BADCHARSET [Charset] | |
CAPABILITY_sc [String] | |
PARSE | |
PERMANENTFLAGS [Flag] | |
READ_ONLY | |
READ_WRITE | |
TRYCREATE | |
UIDNEXT_sc UID | |
UIDVALIDITY_sc UID | |
UNSEEN_sc Integer |
Instances
Eq StatusCode Source # | |
Defined in Network.HaskellNet.IMAP.Types (==) :: StatusCode -> StatusCode -> Bool # (/=) :: StatusCode -> StatusCode -> Bool # | |
Show StatusCode Source # | |
Defined in Network.HaskellNet.IMAP.Types showsPrec :: Int -> StatusCode -> ShowS # show :: StatusCode -> String # showList :: [StatusCode] -> ShowS # |
data ServerResponse Source #
OK (Maybe StatusCode) String | |
NO (Maybe StatusCode) String | |
BAD (Maybe StatusCode) String | |
PREAUTH (Maybe StatusCode) String |
Instances
Eq ServerResponse Source # | |
Defined in Network.HaskellNet.IMAP.Types (==) :: ServerResponse -> ServerResponse -> Bool # (/=) :: ServerResponse -> ServerResponse -> Bool # | |
Show ServerResponse Source # | |
Defined in Network.HaskellNet.IMAP.Types showsPrec :: Int -> ServerResponse -> ShowS # show :: ServerResponse -> String # showList :: [ServerResponse] -> ShowS # |
data MailboxStatus Source #
the query data type for the status command
MESSAGES | the number of messages in the mailbox |
RECENT | the number of messages with the Recent flag set |
UIDNEXT | the next unique identifier value of the mailbox |
UIDVALIDITY | the unique identifier validity value of the mailbox |
UNSEEN | the number of messages with the Unseen flag set |
Instances
Eq MailboxStatus Source # | |
Defined in Network.HaskellNet.IMAP.Types (==) :: MailboxStatus -> MailboxStatus -> Bool # (/=) :: MailboxStatus -> MailboxStatus -> Bool # | |
Read MailboxStatus Source # | |
Defined in Network.HaskellNet.IMAP.Types readsPrec :: Int -> ReadS MailboxStatus # readList :: ReadS [MailboxStatus] # | |
Show MailboxStatus Source # | |
Defined in Network.HaskellNet.IMAP.Types showsPrec :: Int -> MailboxStatus -> ShowS # show :: MailboxStatus -> String # showList :: [MailboxStatus] -> ShowS # |
data RespDerivs Source #
RespDerivs | |
|