Fetching contributors…
Cannot retrieve contributors at this time
390 lines (262 sloc) 19 KB

Tue Jun 8 01:55:21 UTC 2010 Mikel Lindsaar <>

  • Added inline attachment support to mail (mikel)

Mon Jun 7 18:00:39 UTC 2010 Mikel Lindsaar <>

  • Updating versioning so we only have one source, VERSION.yml (mikel)

  • Changed activesupport dependency to 2.3.6 to fix #53, #64, and def #67. (Artem Titoulenko)

  • Fixing typo in break_down_to.rb. (mikel)

Mon Jun 7 18:07:16 UTC 2010 Mikel Lindsaar <>

  • fixing a typo when generating docs. (Andrew Bloom)

  • Changing rnt to rns throughout mail (mikel)

  • Handle multiple quoted words in Encodings.unquote_and_convert_to (Eric Kidd)

  • Ruby 1.9: mark source encoding so it's usable with -Ks, -Ke, etc (Jeremy Kemper)

  • Add #include? to mail body for convenience (Maxim Chernyak)

  • Use Mail::TestMailer.deliveries in README example (John Trupiano)

  • Allow bundler to automatically build a gem directly from git (Eric Kidd)

Sun Apr 11 07:49:15 UTC 2010 Mikel Lindsaar <>

  • Lots of updates on encoding and decoding of headers and unstructured fields. This is now a lot cleaner and nicer. Also more predictable.

  • Merged encoding branch back into head

  • Version bump to 2.2.0

  • Tagged 2.2.0

Sun Apr 4 06:41:46 UTC 2010 Mikel Lindsaar <>

  • Created non-ascii header auto encoding for address fields and unstructured fields

  • Changed default behaviour of mail, if you specify a charset, it will use that charset regardless of what is in the body. Previously, if the body was all US-ASCII, it would set the charset to US-ASCII in preference.

  • Many internal version jumps from => - unreleased development versions

Mon 29 Mar 2010 07:04:34 UTC Mikel Lindsaar <>

  • Version bump to

  • No longer depend on vendor'd treetop as treetop now has optional loading of parts of the library

  • Change treetop dependency to 1.4.5

Sun 28 Mar 2010 10:31:33 UTC Mikel Lindsaar <>

  • Version bump to

  • Fixed up preserve case in header fields when assigned from a message closes issue #46

Sun 28 Mar 2010 09:02:20 UTC Mikel Lindsaar <>

  • Version bump to

  • Fixed net/pop3.rb regression for Ruby 1.8.6

  • Merged in Jeremy Kemper's updates:

    • Bump vendored treetop to 1.4.4

    • Use Mikel's treetop for cucumber workaround

    • Use LOAD_PATH for spec_helper instead of relative requires

    • Force treetop from git so cucumber doesn't pull in old version

Sun Mar 28 07:01:07 UTC 2010 Mikel Lindsaar <>

  • Version bump to 2.1.5

  • Changed guess encoding to short circuit to binary if the mime type is unknown, should be safe

  • Renaming spec to match the file for attachment_lists.rb

  • Adding Message#decoded returns Message#body#decoded if the message is not multipart

Sun Mar 28 02:55:42 UTC 2010 Mikel Lindsaar <>

  • Version bump to 2.1.4

Sun Mar 28 00:26:27 UTC 2010 Mikel Lindsaar <>

  • Merged in Jeremy/treetop to vendored treetop

  • Merged in nathansobo/treetop to vendored treetop

  • Merged in pzbowen/mail into mail - Adds body auto encoding - awesome work

  • Fixed content-transfer-encoding parser to be more compliant per RFC, also now handles trailing semi-colons correctly

  • Fixed content-transfer-encoding parser to handle weird “from the wild” misspellings

  • Added message.errors, header.errors arrays, returns array of [field_name, value, error_object] for each field that failed to parse

  • Removed bundler require from Rakefile

Sun Mar 17 03:03:03 UTC 2010 Mikel Lindsaar <>

  • Keep header name case when failing to unstructured field

Wed Feb 24 09:14:56 UTC 2010 Mikel Lindsaar <>

  • Fixed multiaddress bounce messages crashing when calling .bounced? Now just take the first report and return that.

  • Closes issue 38 - final_recipient method give problem when one bounce email for multiple email ids

  • Fixing up TODO and Docs

Sun Mar 22 03:24:15 UTC 2010 Mikel Lindsaar <>

  • Version bump to 2.1.3

Thu Jan 28 00:25:02 UTC 2010 Mikel Lindsaar <>

  • Added TMM1's patch to not raise errors if a email is not multipart/report

  • Added html_part and text_part now return the first text/html or text/plain part they find. Order is from top to bottom of the email, all parts, flattened.

  • Cleaning up register_interceptor and register_observer including documentation

  • Renamed #register_for_delivery_notification to #register_observer

  • Renamed #register_for_delivery_interception to #register_interceptor

  • Adding spec to check for folding of non ASCII words that have been encoded

  • Updating Message#inspect to be a bit more friendly… it is for us mere mortals after all

  • Version bump to 2.1.2

Sun Jan 28 02:59:34 UTC 2010 Mikel Lindsaar <>

  • Removed old method of setting delivery_method

Mon Jan 25 11:36:13 UTC 2010 Mikel Lindsaar <>

  • Added ability for address fields to init on an array instead of just a string.

  • Version bump to 2.1.1

Mon Jan 25 10:36:33 UTC 2010 Mikel Lindsaar <>

  • Now passes a block to the delivery handler, which can just call yield if it want's Mail to just do it's normal delivery method

  • Moved Mail.deliveries into Mail::TestMailer.deliveries. Now only gets mail appended to it if you are sending with the :test delivery_method (only for testing)

  • Version bump to 2.1.0

Mon Jan 25 01:44:13 UTC 2010 Mikel Lindsaar <>

  • Change :deliver! to deliver a mail object, bypassing the :perform_deliveries and :raise_delivery_errors flags, also does not append the mail object to Mail.deliveries, thus the ! (dangerous). The intended use for :deliver! is for people wanting to have their own delivery_handler (like ActionMailer uses) to track and handle delivery failures.

  • Added :delivery_handler to Message. Allows you to pass an object that will be sent :deliver_mail(self) by the Mail::Message instance when it is sent :deliver and bypasses the usual delivery method.

  • Changed :perform_deliveries flag to be more consistent with it's name, mail will not append itself to the Mail.deliveries collection if :perform_deliveries is false

Sat Jan 23 23:49:50 UTC 2010 Mikel Lindsaar <>

  • Version bump to 2.0.5

  • Added :raise_delivery_errors to Mail::Message, if set to false will silently rescue all errors raised by the delivery methods, set to true by default

Sat Jan 23 23:28:42 UTC 2010 Mikel Lindsaar <>

  • Version bump to 2.0.4

  • Added :perform_deliveries to mail, will not actually call deliver on the delivery method if this is set to false, set to true by default.

  • Added @delivery_notification_observers to mail messages, you can register an observer with mail by calling mail.register_for_delivery_notification(observer) and then when mail is told to :deliver it will call your observer with observer.delivered_email(self). It will call your observer if it actually performed the delivery or not (that is, irregardless of the :perform_deliveries flag)

  • Added ability to overwrite the Mail.deliveries store with an object of your choice instead of just an array, this is a good way to find out if something actually got delivered as if :perform_deliveries is false, this collection will not get the mail message appended

Sat Jan 23 05:32:53 UTC 2010 Mikel Lindsaar <>

  • Version bump to 2.0.3

  • Made body.sort_parts! recursive, to do the entire body

  • Added ability to use << on the results returned by the various address fields, ie, << 'new@address' now works

  • Message now adds multipart/mixed as the content type if nothing is set and there are parts to the message

  • Added #display_names and #addrs to all address fields. #addrs returns the actual Mail::Address object for each address in the field.

  • Body should call to_s on given input… incase someone gave it an IO.readlines result (Array)


Thu Jan 21 05:27:17 UTC 2010 Mikel Lindsaar <>

  • Version bump to 2.0.2

  • Major change to attachments, add_file now only accepts {:filename => 'full/path/to/file.png'} or {:filename => 'file.png', :content => 'string of file content'} you can also now do mail.attachments ='path/to/file.png') which is nice too!

Fri Jan 15 09:20:51 UTC 2010 Mikel Lindsaar <>

  • Rewrote all network classes to not use singletons. Means different Mail::Message objects can have different delivery methods.

  • Added examples for how to send via GMail, MobileMe, Sendmail, File etc.

  • Version bump to 2.0.0 as Network API changed drastically, now not a singleton class.

  • Fixed that return-path should only return one address

Thu Jan 14 10:41:22 UTC 2010 Mikel Lindsaar <>

  • Version update to 1.6.0 - API change on mail.address_fields to always return arrays

  • Updated all message.address_field methods to always return arrays, so mail.from #=> [''] now, is least surprise

  • Updated handling of empty group lists so it didn't crash

Thu Jan 12 10:41:47 UTC 2010 Mikel Lindsaar <>

  • Version 1.5.3, handling invalid input on fields. Highly recommended update

  • Updated fields to always try parsing the given data (unless blank). This allows mail to catch invalid input and return UnstructuredFields. Makes mail a lot more resistant to invalid input.

Fri 8 Jan 2010 00:00:08 UTC Mikel Lindsaar <>

  • Version bump to 1.5.2

Fri 8 Jan 8:55:49 2010 +1100 Mikel Lindsaar <>

  • Updated Sendmail and SMTP delivery methods to use return-path if present

  • Fix up a lot of content-type parsing problems

  • Updating compat listing

  • Moving error emails into one directory

  • Moving error emails into one directory

  • Initializing @tls variable to remove warnings

  • Moved default corpus directory

  • Fixed up git ignore file

Thu 6 Jan 2010 23:59:29 UTC Mikel Lindsaar <>

  • Added compatibility list to Readme.rdoc

  • Fixing encoding of return path to be per RFC 2822, adding angle brackets around the addr_spec

  • Specs covering return path setting and preserving

Thu 5 Jan 2010 23:59:48 UTC Mikel Lindsaar <>

  • Moving the require for tlsmail for Ruby 1.8.6 into mail.rb

Sun Jan 3 00:08:06 UTC 2010 Mikel Lindsaar <>

  • Version bump to 1.5.0

  • Major API change in Message#field_name. This WILL break your applications that use Mail. Message#field_name now returns good, intelligent, default values. You can still access the field object by calling Message# or Message#.

Sat Jan 2 04:12:53 UTC 2010 Mikel Lindsaar <>

  • Message-ID, Content-ID, References et al, now return the default value of the message ID without the angle brackets, as per RFC 2822, “Semantically, the angle bracket characters are not part of the msg-id; the msg-id is what is contained between the two angle bracket characters.”

  • Message class now has getter and setter methods for all the supported field types explicitly. This allows us to return a “default” value for all fields.

  • All address fields, when called from Message#to or Message#from or the like, return either a string of the address spec ( if it is a single entry, or an array of address specs if there is more than one ['', '']

Mon 28 Dec 2009 01:21:52 UTC Mikel Lindsaar <>

  • Added sorting of parts, default is text/plain, then text/enriched and text/html. Access through Body#set_sort_order and Body#sort_parts! (called from Body#encode automatically)

  • Version bump to 1.4.2

Sun Dec 27 10:38:24 UTC 2009 Mikel Lindsaar <>

  • Updating treetop and mail to initialize uninitialized instance variables to nil

  • Version bump to 1.4.1

Sun Dec 27 09:51:27 UTC 2009 Mikel Lindsaar <>

  • Version bump to 1.4 because now :to_s calls :decoded for all fields and body while :to_s calls :encoded for Message and Header containers. Makes sense… really.

Sun Dec 27 07:30:02 UTC 2009 Mikel Lindsaar <>

  • Changed fields to default to :decoded on :to_s, all container objects retain :encoded as the default for :to_s

Thu Dec 17 06:35:05 UTC 2009 Mikel Lindsaar <>

  • Fixed parsing error 'Subject: =?ISO-8859-1?Q?Re=3A_ol=E1?=' (has a new line embedded)

Thu Dec 17 02:14:23 UTC 2009 Mikel Lindsaar <>

  • Version 1.3.4

  • Vendor'd treetop

Thu Dec 17 01:32:00 UTC 2009 Mikel Lindsaar <>

  • Version 1.3.3

  • Removed dependency on treetop, don't need it at runtime

Wed Dec 16 23:48:46 UTC 2009 Mikel Lindsaar <>

  • Version 1.3.2

  • Resolved Ruby 1.9.1-head not working because File.basename only accepts US-ASCII or 8Bit

Sun Dec 13 01:06:17 UTC 2009 Mikel Lindsaar <>

  • Version 1.3.1

  • Resolved Issue #18 - Wrong instance variable name

  • Resolved Issue #15 - Duplicate block call

Thu Dec 10 21:25:37 UTC 2009 Mikel Lindsaar <>

  • Resolved Issue #13 - replacing From field results in from field becoming optional field.

Thu 3 Dec 2009 00:52:12 UTC Mikel Lindsaar <>

  • Added POP upgrades from Nicolas Fouché

  • Added patch to handle multiple from lines in email from Luke Grimstrup

Mon Nov 23 23:34:22 UTC 2009 Mikel Lindsaar <>

  • Resolved Issue #12 - Wrong comment in smtp.rb

Mon Nov 23 22:35:50 UTC 2009 Mikel Lindsaar <>

  • Changed the way attachments are added so that it does not break depending on the order of the Hash passed in.

  • Version bump to 1.3.0 - Now works with Edge ActionMailer, MRI 1.8.6, 1.8.7, 1.9.1, all tests passing

Sun Nov 22 12:19:44 UTC 2009 Mikel Lindsaar <>

  • Added check on add_part to make sure if there is already a body, and if so, make a text_part of the body

  • Fixing up attachment adding and making sure multipart emails always have boundaries

  • Change Message#attachments to now recursively return all attachments in the email in an ordered flattened array

  • Added ability for Mail::Message to accept {:headers => {'custom-header' => 'value', 'another-custom-header' => 'value'}} as a param on init

  • Adding ability to Mail::Message to add a part via :part(params) with optional block

  • Fixed up QP encoding forcing underscores into everything with a space

  • Added ReturnPathField#address

  • Updating gem loads and active support loads

Sat Nov 21 12:52:46 UTC 2009 Mikel Lindsaar <>

  • Changed Mail::Encodings to clean it up, added in unquote_and_convert_to as well as refactor in this area

Thu Nov 19 04:16:10 UTC 2009 Mikel Lindsaar <>

  • Added sendmail support from (Simon Rozet)

  • Changed to bundler for gem dependancies and moved gem generation into rakefile (Simon Rozet)

  • Bumped to 1.2.6 for sendmail support

Wed Nov 18 04:26:21 UTC 2009 Mikel Lindsaar <>

  • Changed Encodings.param_encode(string) so it intelligently encodes and quotes needed items and leaves plain, no special char, US-ASCII alone unquoted.

Sat Nov 14 08:20:21 UTC 2009 Mikel Lindsaar <>

  • Resolved Issue #10 - empty/nil cc/bcc field causes exception (Mail::Field::ParseError)

Fri Nov 13 00:31:04 UTC 2009 Mikel Lindsaar <>

  • Hacked and mutilated the network section, made it easier to extend out with other delivery and retriever methods. API changed SLIGHTLY with this. Please check the readme

  • Resolved Issue #8 - Mail::SMTP now delivers to all mail.destinations

  • Version bump to 1.2.5

Thu Nov 12 02:58:01 UTC 2009 Mikel Lindsaar <>

  • Resolved Issue #5 - Message ID not handling multiple periods in left hand side

  • Resolved Issue #6 - Ordering of add_file and body items causes invalid emails

Tue Nov 10 08:15:14 UTC 2009 Mikel Lindsaar <>

  • Resolved Issue #5 - Message ID generation issue

  • Resolved Issue #7 - README add_file examples don't seem to work - Updated readme and rdoc in Message#add_file

Mon Nov 9 23:38:33 UTC 2009 Mikel Lindsaar <>

  • Added ability to create new email via a hash or hash-like object. <mikel>

  • Moved all of the Part init into the Message class. Part now just uses Message's init, also moved all the attachment related functions into Message. As Part is a subclass of message, you shouldn't see any interface changes here.

Fri Nov 6 22:52:10 UTC 2009 Mikel Lindsaar <>

  • a6ef2b4: Fixed Issue #4 - Can't call encoding on non existant content-transer-encoding header

Fri Nov 6 00:51:55 UTC 2009 Mikel Lindsaar <>

  • Handled unstructured field folding “blank” lines

  • Fixed error in header.rb that created fields into an array, instead of a FieldList, resulting in mail.encode returning a random sort order on the header.

  • Made unstructured fields attempt to decode their values on :decode

Thu Nov 5 04:45:31 UTC 2009 Mikel Lindsaar <>

  • 2acb70a: Closes Issue #1 - Handling badly formatted content-type fields <mikel>

Wed Nov 4 23:24:32 UTC 2009 Mikel Lindsaar <>

  • 2b5d608: Closes Issue #2 - Empty header field values not parsing <mikel>

  • Version bumb to 1.2.1

Wed Nov 4 12:54:43 UTC 2009 Mikel Lindsaar <>

  • Renamed Mail::Message.encode! to Mail::Message.ready_to_send!, deprecated :encode! <mikel>

  • Rewrote encoding and decoding methods on all classes. Adds a lot of boiler plate code, but allows us to be really precise in each field type that needs custom encoding. Now all encoding is done by the field_type itself. Need to follow through on the body. <mikel>

  • Bump version to 1.2.0 due to changes of :encoded, :decoded behaviour <mikel>

Tue Nov 3 00:59:45 UTC 2009 Mikel Lindsaar <>

  • Tested mail against entire Enron set (2.3gb) and the Trec 2005 set (0.5gb), ~ half a million emails without crashing <jlindley>

  • Some headers only can appear once, enforce during header parse assignment. <jlindley>

  • Convert empty bodies into empty arrays instead of nil. <jlindley>

  • Handle blank content dispositions. <jlindley>

  • Mention Trec 2005 Spam Corpus in readme <jlindley>

  • Add 'rake corpus:verify_all' to allow parse checks in bulk. <jlindley>

  • Added handling of multi value parameters, like filename*1*=“us-ascii'en'blah” filename*2=“bleh” <mikel>

  • Added dependency on ActiveSupport 2.3 or higher <mikel>

Sun Nov 1 12:00:00 UTC 2009 Mikel Lindsaar <>

  • handle OpenSSL::SSL::VERIFY_NONE returning 0 <jlindley>

  • doing { content_type [text, plain, { charset => UTF-8 }] } is now possible (content type accepts an array) <mikel>

Sat Oct 31 11:00:41 UTC 2009 Mikel Lindsaar <>

  • Fixed attachment handling, so mail can find attachment from a content-type,

content-disposition or content-location

  • Added content-location field and parser

  • Added message.has_attachments? for ActionMailer friendliness

  • Added attachment.original_filename for ActionMailer friendliness

Sat Oct 25 13:38:01 UTC 2009 Mikel Lindsaar <>

  • Birthday, Mail released as a gem… phew