Skip to content

Commit

Permalink
Expose showAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Dec 15, 2013
1 parent 68213a4 commit 69f2bc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mime-mail/Network/Mail/Mime.hs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ showAddressHeader (k, as) =
, fromByteString "\n"
]

-- |
--
-- Since 0.4.3
showAddress :: Address -> Builder
showAddress a = mconcat
[ maybe mempty ((`mappend` fromByteString " ") . encodedWord) (addressName a)
Expand Down
2 changes: 1 addition & 1 deletion mime-mail/mime-mail.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: mime-mail
Version: 0.4.2.1
Version: 0.4.3
Synopsis: Compose MIME email messages.
Description: This package provides some high-level datatypes for declaring MIME email messages, functions for automatically composing these into bytestrings, and the ability to send bytestrings via the sendmail executable. You can also use any other library you wish to send via different methods, eg directly to SMTP.
Homepage: http://github.com/snoyberg/mime-mail
Expand Down

0 comments on commit 69f2bc9

Please sign in to comment.