smtp-mail 0.5.0.2 → 0.5.1.0
raw patch · 3 files changed
+15/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +9/−0
- Network/Mail/SMTP.hs +5/−2
- smtp-mail.cabal +1/−1
CHANGELOG.md view
@@ -20,6 +20,15 @@ - Indicate if changes are major, minor, or patch changes. ``` +## 0.5.1.0++- [#43](https://github.com/haskell-github-trust/smtp-mail/pull/43) @spencerjanssen+ - The `Bcc` header is stripped from the message before sending it to the+ SMTP server. Previously, every recipient could see the Bcc addresses+ unless the server happened to strip the header itself.++## 0.5.0.2+ - [#119](https://github.com/haskell-github-trust/smtp-mail/pull/119) @ysangkok - Use `getHostName` from `network` instead of `network-bsd`, fixing the build with `network >= 3.2.10` - Drop the `network-bsd` dependency and require `network >= 3.2.10`
Network/Mail/SMTP.hs view
@@ -325,12 +325,15 @@ -- 'SMTPConnection' renderAndSend ::SMTPConnection -> Mail -> IO () renderAndSend conn mail@Mail{..} = do- rendered <- lazyToStrict `fmap` renderMail' mail+ rendered <- lazyToStrict `fmap` renderMail' (removeBcc mail) sendRenderedMail from to rendered conn where enc = encodeUtf8 . addressEmail from = enc mailFrom to = map enc $ mailTo ++ mailCc ++ mailBcc +removeBcc :: Mail -> Mail+removeBcc mail = mail {mailBcc = []}+ sendMailOnConnection :: Mail -> SMTPConnection -> IO () sendMailOnConnection mail con = do renderAndSend con mail@@ -435,7 +438,7 @@ renderAndSendFrom :: ByteString -> SMTPConnection -> Mail -> IO () renderAndSendFrom sender conn mail@Mail{..} = do- rendered <- BL.toStrict `fmap` renderMail' mail+ rendered <- BL.toStrict `fmap` renderMail' (removeBcc mail) sendRenderedMail sender to rendered conn where enc = encodeUtf8 . addressEmail to = map enc $ mailTo ++ mailCc ++ mailBcc
smtp-mail.cabal view
@@ -1,5 +1,5 @@ name: smtp-mail-version: 0.5.0.2+version: 0.5.1.0 synopsis: Simple email sending via SMTP description: This packages provides a simple interface for mail over SMTP. Please see the README for more information. homepage: http://github.com/haskell-github-trust/smtp-mail