Safe Haskell | None |
---|
- newtype ThreadID = ThreadID String
- data SearchResult = SearchResult {
- searchThread :: ThreadID
- searchTime :: UTCTime
- searchDateRel :: Text
- searchSubject :: Text
- searchAuthors :: Text
- searchTags :: [Text]
- searchMatched :: Int
- searchTotal :: Int
- notmuchSearch :: MonadIO m => String -> m [SearchResult]
- newtype MessageID = MessageID {}
- type MessageHeaders = Map (CI Text) Text
- data MessageContent
- = ContentText Text
- | ContentMultipart [MessagePart]
- | ContentMsgRFC822 [(MessageHeaders, [MessagePart])]
- data MessagePart = MessagePart {}
- data Message = Message {}
- messageSubject :: Message -> Text
- messageFrom :: Message -> Text
- data Thread = Thread {}
- notmuchShow :: MonadIO m => ThreadID -> m Thread
- notmuchMessagePart :: MonadIO m => MessageID -> Int -> (m MessagePart, Source (ResourceT IO) ByteString)
- notmuchTagMessage :: MonadIO m => [String] -> [String] -> MessageID -> m ()
- notmuchTagThread :: MonadIO m => [String] -> [String] -> ThreadID -> m ()
- data Reply = Reply {
- replyHeaders :: Map (CI Text) Text
- replyOriginal :: Message
- data ReplyTo
- = ReplyAll
- | ReplySender
- notmuchReply :: MonadIO m => MessageID -> ReplyTo -> m Reply
- notmuchRaw :: MonadIO m => [String] -> m (ExitCode, String, String)
- notmuchJson :: (MonadIO m, FromJSON a) => [String] -> m a
- notmuchVersion :: MonadIO m => m Version
Search
data SearchResult Source
A single entry returned from the notmuch search command.
SearchResult | |
|
notmuchSearch :: MonadIO m => String -> m [SearchResult]Source
The notmuch search command.
Show
data MessageContent Source
data MessagePart Source
MessagePart | |
|
Message | |
|
messageSubject :: Message -> TextSource
messageFrom :: Message -> TextSource
notmuchShow :: MonadIO m => ThreadID -> m ThreadSource
The notmuch show command.
Export Part
notmuchMessagePart :: MonadIO m => MessageID -> Int -> (m MessagePart, Source (ResourceT IO) ByteString)Source
Tag
Reply
Reply | |
|
Utils
Run a raw notmuch command.
A helper function to run notmuch and parse the result from json. For this to work, the arguments must include '--format=json'.
notmuchVersion :: MonadIO m => m VersionSource
The version of notmuch