emailparse-0.2.0.8: An email parser that will parse everything

Safe HaskellNone
LanguageHaskell2010

Network.Mail.Parse.Parsers.Utils

Synopsis

Documentation

discoverAttachment :: [Header] -> Maybe Text Source #

Check if the given headers represent an attachment

findAttachmentName :: Text -> Maybe Text Source #

When provided with a content-disposition header, checks if it represents an attachment. If it does it returns it's name, otherwise Nothing

isMIME :: Header -> Bool Source #

Decide if the header contains a valid MIME info