notmuch-web-0.2.0: A web interface to the notmuch email indexer

Safe HaskellNone

NotmuchCmd

Contents

Synopsis

Search

data SearchResult Source

A single entry returned from the notmuch search command.

notmuchSearch :: MonadIO m => String -> m [SearchResult]Source

The notmuch search command.

Show

data Thread Source

Constructors

Thread 

notmuchShow :: MonadIO m => ThreadID -> m ThreadSource

The notmuch show command.

Export Part

Tag

notmuchTagMessageSource

Arguments

:: MonadIO m 
=> [String]

new tags

-> [String]

remove tags

-> MessageID 
-> m () 

notmuchTagThreadSource

Arguments

:: MonadIO m 
=> [String]

new tags

-> [String]

remove tags

-> ThreadID 
-> m () 

Reply

data Reply Source

Constructors

Reply 

data ReplyTo Source

Constructors

ReplyAll 
ReplySender 

Instances

Utils

notmuchRawSource

Arguments

:: MonadIO m 
=> [String] 
-> m (ExitCode, String, String)

exitcode, stdout, stderr

Run a raw notmuch command.

notmuchJsonSource

Arguments

:: (MonadIO m, FromJSON a) 
=> [String]

Arguments

-> m a 

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