[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] TMail 1.2.0

Mikel Lindsaar

12/2/2007 7:50:00 AM

Note: parts of this message were removed by the gateway to make it a legal Usenet post.

TMail - The Mail Handling Library for Ruby!

TMail is the Ruby Mail handler used in the
Ruby on Rails and Nitro web frame works as
well as many others (now including, the Ruby
Talk mail gateway!).

TMail is now a gem. You can install it on any
platform via:

# gem install tmail

Alternatively you can download the source code
or view extra documentation at the website:

http://tmail.ruby...

Note for Ruby on Rails Users - as of Rails 2.0 RC1,
ActionMailer has a patch applied which will make
it use the installed Gem version of TMail if the
gem version is higher than the bundled TMail
inside of ActionMailer. So installing this gem
will also patch ActionMailer automagically.


Release Summary:
-----------------------------

New release handles three tickets in the TMail
tracker as well as a lot more documentation and
removes an unnecessary c-library.

One of the tickets was a scanner bug and is fairly critical
to anyone who is not using the C version of the scanner
routines (read, anyone using TMail in ActionMailer or
on Windows etc.)


Release Update Details:
------------------------------------

Closed 16025 - TMail scanner.rb would not parse ATOM
chars correctly making it fail tests where the C version
passed them. Fixed this by updating the Scanner.rb
version to be in step with the C version (there was
an extra @ symbol in the ATOM CHARS definition
that was not in the C version.)

Closed 15445 - TMail::Mail#create_forward now returns
a new Mail object that has the original mail as an
encoded 7 bit multipart attachment. Also moved
create_forward and create_reply from tmail/net
into tmail/interface as it makes more sense to have
it there.

Closed 15643 - TMail::Mail#reply_addresses was
returning an empty array if reply_to was set to nil
(ie, the header field existed but was empty) instead
of returning the from address or default.

Removed base64.c after doing profiling on several
platforms and finding out that the Ruby inbuilt
version is just as fast (varies per platform but
all in all about the same speed.)

Renamed the Scanner_C extension to MailScanner.

New release adds extensive new documentation to
mainly the TMail::Mail class, approximately 500
lines of examples have been included in the RDoc.

Added a default value to TMail::Mail#sender method
to allow arbitrary defaults to be passed into the
method in alignment with all the other mail interface
methods.

Made base64_decode and base64_encode into ! versions
as they are destructive on the mail body (encodes the
body to base64 or decodes it), made aliases for
base64_decode and base64_encode to point back to the
bang versions. Doing this with a view to change
base64_encode to a non destructive version
(returns the encoded body) in future versions.

See the changelog for previous changes.


Bug Reports / Fixes:
----------------------

As always, we really welcome any bug reports or code
for patches you have created. Please submit anything
you find through our RubyForge tracker project which
you can get to from our website:

http://tmail.ruby...


We hope you enjoy this release!


Mikel & Trans
The TMail Team.

4 Answers

fedzor

12/2/2007 4:30:00 PM

0

So does TMail take remote emails and make them into Ruby objects?

On Dec 2, 2007, at 2:50 AM, Mikel Lindsaar wrote:

> TMail - The Mail Handling Library for Ruby!
>
> TMail is the Ruby Mail handler used in the
> Ruby on Rails and Nitro web frame works as
> well as many others (now including, the Ruby
> Talk mail gateway!).
>



-------------------------------------------------------|
~ Ari
crap my sig won't fit


Mike Mondragon

12/2/2007 5:16:00 PM

0

On Dec 2, 2007 8:30 AM, thefed <fedzor@gmail.com> wrote:
> So does TMail take remote emails and make them into Ruby objects?
>
> On Dec 2, 2007, at 2:50 AM, Mikel Lindsaar wrote:
>
> > TMail - The Mail Handling Library for Ruby!
> >
> > TMail is the Ruby Mail handler used in the
> > Ruby on Rails and Nitro web frame works as
> > well as many others (now including, the Ruby
> > Talk mail gateway!).
> >
>
>
>
> -------------------------------------------------------|
> ~ Ari
> crap my sig won't fit
>
>
>

Yes, and its an easy interface, from the manual
http://tmail.rubyforge.org/manual/...

require 'tmail'
mail = TMail::Mail.parse(string) # from String
mail = TMail::Mail.load(filename) # from file
# access from, first to, subject, and body
mail.from.first
mail.to.first
mail.subject
mail.body

Mikel Lindsaar

12/3/2007 2:52:00 AM

0

Note: parts of this message were removed by the gateway to make it a legal Usenet post.

On Dec 3, 2007 4:16 AM, Mike Mondragon <mikemondragon@gmail.com> wrote:

> On Dec 2, 2007 8:30 AM, thefed <fedzor@gmail.com> wrote:
> > So does TMail take remote emails and make them into Ruby objects?
>
> Yes, and its an easy interface, from the manual
> http://tmail.rubyforge.org/manual/...
>

That's right, and you can also parse it in from say Net::POP3 directly into
a TMail object, modify it and send it back out Net::SMTP.

It also handles character sets, attachments etc.

If you are using ActionMailer 2.0 RC2, you are already using TMail version
1.1.0. Installing the Gem will override the bundled copy of TMail in
ActionMailer and you get the extra bug fixes.

Regards

Mikel
(TMail Maintainer)

usenet

2/26/2012 7:16:00 PM

0

Dr. Jai Maharaj posted:
>
> Death for fraud: China debates Wu Ying's sentence
>
> By Martin Yip
> BBC News
> Thursday, February 23, 2012
>
> http://www.bbc.co.uk/news/world-asia-chin...

China court to review Wu sentence

http://www.bbc.co.uk/news/world-asia-chin...

Jai Maharaj, Jyotishi
Om Shanti

-----

About the terrorist Goon Squad:

---------------------------------------------------------------------
"Myself, Mallu. Yourself?" (V. Bhattathiri) <KalluMallu123@gmail.com>
tries his best to be a bully -- telling others what and when to post,
where to post and where not to post, deliberately publishing lies
about others, stalking and abusing them with hate speech -- but fails
miserably. He is really stressed out, and like his lap dog Prem
Thomas (who currently posts as "P. Rajah" <user@this.com>, and issues
*death threats* to people), is priming himself for conditions such as
stroke and heart disease. Others in the Goon Squad include
Dayashankar M. Joshi "DMJoshi" <joshidm@gmail.com> who displays
unquestioning obedience to Goon Squad thugs, and the instigator who
posts as "Bholu" <bholu@hotmail.com>

The Goon Squad currently posts most of their abuse through eternal-
september.org and by writing someone else's name or handle in the
"From:" header -- their favorite now is "fanabbba@gmail.com" (note
the extra "b" and "gmail.com") to make it appear as if the posts are
from "fanabba@aol.com", who has been a regular poster for many years.
-Updated on February 2, 2012-
---------------------------------------------------------------------