./mail/ruby-mail, Mail provides a nice Ruby DSL for making, sending and reading emails

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.7.0, Package name: ruby24-mail-2.7.0, Maintainer: pkgsrc-users

Mail is an internet library for Ruby that is designed to handle emails
generation, parsing and sending in a simple, rubyesque manner.

The purpose of this library is to provide a single point of access to handle
all email functions, including sending and receiving emails. All network
type actions are done through proxy methods to Net::SMTP, Net::POP3 etc.

Built from my experience with TMail, it is designed to be a pure ruby
implementation that makes generating, sending and parsing emails a no
brainer.

It is also designed form the ground up to work with Ruby 1.9. This is because
Ruby 1.9 handles text encodings much more magically than Ruby 1.8.x and so
these features have been taken full advantage of in this library allowing
Mail to handle a lot more messages more cleanly than TMail. Mail does run on
Ruby 1.8.x... it's just not as fun to code.

Finally, Mail has been designed with a very simple object oriented system
that really opens up the email messages you are parsing, if you know what
you are doing, you can fiddle with every last bit of your email directly.


Required to run:
[lang/ruby24-base] [mail/ruby-mini_mime]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: d02b9e5708fc4198b7a13957b7d17c19e68c1081
RMD160: 7b2459f35e9ba3bd86760fa2eac9eb4b7ceca0a6
Filesize: 376 KB

Version history: (Expand)


CVS history: (Expand)


   2018-03-14 15:46:07 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
mail/ruby-mail: update to 2.7

Version 2.7.0 (2017-10-31)

Security:

* #1097 – SMTP security: prevent command injection via To/From addresses.
  (jeremy)

Features:

* #647 – IMAP: specify IMAP server search charset with
   Mail.find(search_charset: 'UTF-8'). (yalab)
* #650 - UTF-7 charset support. (johngrimes)
* #664 - RSpec: with_html and with_text matchers. (zakkie)
* #723 – IMAP: support `enable_starttls: true` for TLS upgrade on
  non-IMAPS/SSL servers. (doits)
* #804 - Configurable SMTP open_timeout and read_timeout. (ankane)
* #853 - `Mail::Message#set_sort_order` overrides the default message part
  sort order. (rafbm)
* #856 - Added :logger delivery method. (zacholauson)
* #900 - Support non-instance_eval builder API. Yield self to Mail.new if the
  provided block takes any arguments. (taavo)
* #1065 - Require STARTTLS using :enable_starttls. (bk2204)
* #1002 - Transcoding replaces invalid chars with "�" instead of \ 
discarding
  them. (kjg)
* #1053 - Ruby 2.4.0 compatibility. Fixnum+Bignum unified as
  Integer. (peterkovacs)
* #1094 - Core extensions removal: Drop `String#at`, `from`, `last` and
  `is_utf8?` since they are no longer used by Mail internals. (metcalf)
* #1095 - Core extensions removal: Drop `String#mb_chars`, `not_ascii_only?`,
  `constantize`, `first`, `to` to avoid monkey patching the standard
  library. (metcalf)
* #1111 - Mail::Field.parse API which deprecates calling Mail::Field.new with
  unparsed header fields. (jeremy)
* #1117 - Configurable POP3 read_timeout. (hspazio)

Performance:

* #1059 - Switch from mime-types to mini_mime for a much smaller memory
  footprint. (SamSaffron)
* #1119 - Speed up large attachment encoding by memoizing slow ASCII-only
  checks. (dalibor)

Compatibility:

* #464 - Improve attachment filename detection by preferring
  Content-Disposition filename. (lawrencepit)
* #535 - IMAP: fetch messages WITH IMAP FLAGS by passing a block with four
  args. (lawrencepit)
* #558 - Parser: cope with unknown charsets in header fields by falling back
  to ASCII. (boesemar)
* #655 - Sort attachments to the end of the parts list to work around email
  clients that may mistake a text attachment for the message body. (npickens)
* #683 - SMTP: Work around Net::SMTP dot-stuffing bug with unterminated
  newlines on Ruby 1.8 and 1.9. (yyyc514)
* #766 - No longer strip 'Subject: ' from legit subject lines. (grosser)
* #982 – Faithfully preserve unfolded whitespace rather than collapsing to a
  single space. (jeremy)
* #1103 – Support parsing UTF-8 headers. Implements RFC 6532. (jeremy)
* #1106 – Limit message/rfc822 parts' transfer encoding per RFC 2046. (ahorek)
* #1112 – Support Windows-1258 charset by parsing it as Windows-1252 in
  Ruby. (jeremy)
* #1114 – Setting `mail.body = …` on a multipart message now adds a new text
  part instead of adding a raw MIME part. (jeremy)
* #1159 – Parse emails with n newlines so long as they have no binary
  content. (jeremy)

Bugs:

* #539 - Fix that whitespace-only continued headers would be incorrectly
  parsed as the break between headers and body. (ConradIrwin)
* #605 - Fix Mail::Address#name for nil addresses (peterkovacs)
* #684 - Fix recursively fetching attachments from an embedded message/rfc822
  part whose Content-Type header has additional parameters. (vongruenigen)
* #689 - Fix Exim delivery method broken by #477 in 2.5.4. (jethrogb)
* #792 - Allow blank filenames in Content-Disposition field.
  (robinroestenburg)
* #876 - Strip valid RFC-1342 separator characters between non-matching
  encoded-words. (Caleb W. Corliss)
* #895 - Fix that Mail::Message#add_file was adding a stray filename
  header. (kirikak2)
* #923 – Fix decoding nested quotes around non-US-ASCII addresses. (averell23)
* #978 - Fix for invalid chars being left in a string for invalid b_value from
  encoding. (kjg)
* #996 - Fix that multipart/mixed emails with a delivery-status part could be
  interpreted as bounces. (kjg)
* #998 - Fix header parameter parsing (such as attachment names) for values
  encoded with a blank charset or language code. (kjg)
* #1000 - Fix header parameter parsing (such as attachment names) to transcode
  to UTF-8 (kjg)
* #1003 - Fix decoding some b encoded headers on specific rubies that don't
  account for lack of base64 padding (kjg)
* #1020 - Don't set SMTP verify mode to nil when config was not
  provided. (jhass)
* #1023 - Fix double-quoting in display names. (garethrees)
* #1032 - Fix that comparing messages changed their raw Message-ID to their
  parsed message_id. (bobjflong)
* #1074 - Fix that the first address in a list is dropped when a subsequent
  address has non-US-ASCII characters. (domininik)
* #1107 - Fix Address#display_name and other formatting flip-flopping between
  encoded and decoded forms depending on whether #encoded or #decoded was
  called last. (jeremy)
* #1110 - Fix that Mail::Multibyte::Chars#initialize mutated its argument by
  calling force_encoding on it. (jeremy)
* #1122 – Fix that tilde (~) shouldn't be escaped for Exim delivery. (Benabik)
* #1113 - Eliminate attachment corruption caused by CRLF conversion. (jeremy)
* #1131 - Fix that Message#without_attachments! didn't parse the remaining
  parts. (jeremy)
* #1019 - Fix b value encoder incorrectly splitting multibyte characters.
  (Kenneth-KT)
* #1157 - Fix base64 attachment transfer encoding being overridden by
  quoted-printable. (dalibor)
   2017-07-31 00:32:28 by Thomas Klausner | Files touched by this commit (229)
Log message:
Switch github HOMEPAGEs to https.
   2017-06-10 17:50:03 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-mail to 2.6.6

== Version 2.6.6 - 2017-06-09 Jeremy Daer <jeremydaer@gmail.com>

Security:
* #1097 – SMTP security: prevent command injection via To/From
   addresses. (jeremy)

Bugs:
* #689 - Fix Exim delivery method broken by #477 in 2.5.4. (jethrogb)
   2017-06-05 16:26:51 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-mail to 2.6.5.

== Version 2.6.5 - 2017-04-26 Jeremy Daer <jeremydaer@gmail.com>

Features:
* #1053 - Ruby 2.4.0 compatibility. Fixnum+Bignum unified as Integer. (peterkovacs)

Bugs:
* #605 - Fix Mail::Address#name for nil addresses (peterkovacs)
* #1003 - Fix decoding some b encoded headers on specific rubies that don't \ 
account for lack of base64 padding (kjg)
* #1023 - Fix double-quoting in display names. (garethrees)
   2016-10-15 15:59:37 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-mail to 2.6.4.

== Version 2.6.4 - Wed Mar 23 08:16 -0700 2016 Jeremy Daer \ 
<jeremydaer@gmail.com>

Features:
* #772 - Normalize encoding matchers (grosser)
* #775 - Avoid failed encodings / stop bad charsets early (grosser)
* #782 – Make the gem compatible with Rubinius (robin850)
* #865 - Allow a body with an invalid encoding to be round tripped (kjg)
* #866 - Support decoding message bodies with non-Ruby-standard charsets (jeremy)
* #868 - Use the Ruby19.charset_encoder when decoding message bodies (kjg)
* #872 - Low-level option to include BCC field in the encoded message (grossadamm)
* #901 - Allow mail.text_part = '…' and mail.html_part = \ 
'<p>…</p>' (taavo)
* #924 - Matcher for having attachments (schepedw)

Performance:
* #956 - Use native String#encode for CR/LF conversion (carsonreinke)
* #970 - Support Ruby 2.3+ frozen string literals (twalpole)

Bugs:
* #719 - Fix to not extract header content that looks like its field name (kjg)
* #789 - Fix encoding collapsing not dealing with multiple encodings in 1 line \ 
(grosser)
* #808 - Mail::Field correctly responds_to? the methods of its instantiated \ 
field (thegcat)
* #849 - Handle calling Part#inline? when the Content-Disposition field couldn't \ 
be parsed (kjg)
* #874 – Stay under 1000-char SMTP line length limits (pushrax)
* #877 - Make Mail::Field == other take the field value into account (kjg)
* #907 - Mail::ContentDispositionField should work with nil value (kjg)
* #910 - Mail::Address should handle b_value_encoded local and domain parts (kjg)
* #918 - Account for possibility of absent delivery-status headers (kjg)
   2015-12-13 17:42:31 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Switch depends on ruby-mime-types2 package.

Bump PKGREVISION.
   2015-11-04 00:27:24 by Alistair G. Crooks | Files touched by this commit (312)
Log message:
Add SHA512 digests for distfiles for mail category

Problems found locating distfiles:
	Package mutt: missing distfile patch-1.5.24.rr.compressed.gz
	Package p5-Email-Valid: missing distfile Email-Valid-1.198.tar.gz
	Package pine: missing distfile fancy.patch.gz
	Package postgrey: missing distfile targrey-0.31-postgrey-1.34.patch
	Package qmail: missing distfile badrcptto.patch
	Package qmail: missing distfile outgoingip.patch
	Package qmail: missing distfile qmail-1.03-realrcptto-2006.12.10.patch
	Package qmail: missing distfile qmail-smtpd-viruscan-1.3.patch
	Package thunderbird24: missing distfile enigmail-1.7.2.tar.gz
	Package thunderbird31: missing distfile enigmail-1.7.2.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2015-02-04 16:20:39 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-mail to 2.6.3.

== Version 2.6.3 - Mon Nov 3 23:53 +1100 2014 Mikel Lindsaar \ 
<mikel@reinteractive.net>

* #796 support uu encoding (grosser)

== Version 2.6.2 (Unreleased) - Wed Oct 22 13:42 -0500 2014 Benjamin Fleischer \ 
<github@benjaminfleischer.com>

Performance:
* #681 - fewer hotspot object allocations (srawlins)
* #815 - autoload parsers for load-time speed and memory usage (grosser)

Bugs:
* #736 - Mail.new copes with non-UTF8 messages marked as UTF8 (jeremy)

== Version 2.6.1 - Sun Jun 8 15:34 +1100 2014 Mikel Lindsaar \ 
<mikel@reinteractive.net>

Features:
* Silence warnings on loading ragel-generated parsers (bf4)

== Version 2.6.0 - Mon Jun 2 22:49 +1100 2014 Mikel Lindsaar \ 
<mikel@reinteractive.net>

Features:
* Allow interceptors and observers to be unregistered (zuhao)
* Added feature to find the mail in uid (taketin)
* Save settings passed to TestMailer#new (svanderbleek)
* Allow the setting of envelope from directly (jeremy)
* Accept other IETF/IANA-registered Content-Types and Content-Transfer-Encodings \ 
(jeremy)
* Alias shift-jis charset to Shift_JIS Ruby encoding (jeremy)
* Add support for ks_c_5601-1987 charset, aliased to CP949 Ruby encoding (jeremy)
* Don't allow colons in header names (jeremy)
* Can assign arrays of Message-IDs to References and In-Reply-To (jeremy)
* Setting the html_ or text_part sets a default text/html or text/plain content \ 
type (jeremy)
* Setting the html_ or text_part to nil removes it (jeremy)
* Addresses without a parsable email or display name still format as their raw \ 
text (jeremy)
* Close pull request 504 - Alias GB2312 charset to GB18030 Ruby encoding (bpot)
* Close pull request 399 - Accept :ca_path and :ca_file options for SMTP \ 
delivery (ndbroadbent)
* Close pull request 389 - Don't add superfluous message headers to MIME parts \ 
(djmaze, jeremy)

Performance:
* Migrate to RAGEL based parser, awesome work by (bpot)
* Performance improvements for people parsing email headers (ConradIrwin)
* Close pull request 488 - Speed up field construction & comparison (bpot)

Bugs:
* Fix for when content looks like field name (kjg)
* Don't change original when you change a copy (TylerRick)
* Don't include separating semicolon in paramter value when sanitizing (bpot)
* Fix fencepost encoding problem with binhex strings and only one token (drasch)
* Fix sendmail delivery to addresses with a leading hyphen (lifo, jeremy)
* Correctly format mbox From headers per RFC4155 (bpot, jeremy)
* Fix bogus '=' at the end of some quoted-printable messages (jeremy)
* Shouldn't be fooled into encoding strings on 1.8 by unrelated Encoding \ 
constant (emiellohr, jeremy)
* Header encoding should be US-ASCII, not the default external encoding (jeremy)
* Address elements should return decoded display names by default (jeremy)
* Fix up tests that depend on utf-8 external encoding; read fixtures as binary \ 
(jeremy)
* Capture stderr from Sendmail and Exim deliveries (jeremy)
* RFC2822 quoted_string content may be empty (jeremy)
* Calling #to_s on a field with a nil value returns an empty string instead of \ 
nil (jeremy)
* The Received header may contain zero name/value pairs, qmail-style (jeremy)
* Fix that setting an attachment with a :mime_type and :encoding would override \ 
the :encoding (jeremy)
* Fix that declaring an html_part but no text_part would use \ 
multipart/alternative anyway (jeremy)
* Close pull request 508 - Don't add an extra CRLF to MIME parts; split MIME \ 
parts on correct CRLF boundaries (Aalanar)
* Close pull request 506 - Escape backslashes in quoted strings (ConradIrwin)
* Close pull request 496 - Correctly handle quoted-printable line breaks (jeremy)
* Close pull request 493 - Repair misencoded quoted-printable line breaks (jeremy)
* Close pull request 487 - Extract comments from group email addresses (bpot)
* Close pull request 481 - Correctly quote filename attributes (bpot)
* Close pull request 480 - Support mixed encodings in a single header body \ 
(adamvaughan)
* Close pull request 471 - Fix Ruby 1.8 build when UTF16/32 default to \ 
little-endian (kennyj)

Coping with third-party bugs:
* Parse multipart boundary from Content-Type headers containing extra semicolons \ 
(jeremy)
* Close pull request 389 - Only add Content-ID to inline attachments to appease \ 
Outlook (djmaze, jeremy)

Housekeeping:
* Add development gem dependency on rdoc (jeremy)
* Refresh Bundler dependencies & setup (jeremy)
* Remove i18n dependency and last vestiges of activesupport dependency in specs \ 
(jeremy)
* Clarify that Sender is a single address, not an address list (jeremy)
* Add an MIT-LICENSE file to make licensing clear & obvious; update to 2013 \ 
(jeremy)
* Close pull request 501 - Tighten up header/body whitespace splitting (ConradIrwin)
* Close pull request 499 - Clean up some dead code (ConradIrwin)
* Close pull request 489, 495 - Docs typos (JackDanger, francois)
* Close pull request 485 - Be explicit about unsupported address parsing (bpot)
* Close pull request 484 - Remove #tree specs in preparation for deprecation \ 
removal (bpot)
* Close pull request 482 - Update address field specs to reflect to #initialize \ 
API (bpot)
* Close pull request 475 - Shush warning on Object#blank? redefinition (amatsuda)
* Close pull request 472 - Clean up UTF8/UTF-8 internals (kennyj)