MIME::Tools::changes - the MIME-tools change log
Fixed MIME::WordDecoder warnings about uninitialized value. I'm new to the whole ``locale'' thing, so I'm bound to get this part wrong a few more times. Thanks to Nigel Kukard et al for the bug report.
Parser memory leak fixed. The closure-based task/benchmark mechanisms created for 5.5 were leaking references like crazy. That's been stopped.
Relationship fails; Closure is sought, yet tears fall: Memory lingers.
Better handling of truncated headers. If a header is truncated by a multipart boundary, no attempt is made to parse a body after it. This prevents bodies from getting ``lost''.
Made boundary-delimiter end-of-line sequence configurable in MIME::Entity . SOAP::MIME needs this ability, and now it has it: Thanks to Byrne Reese for the patch.
Incorporated MIMEdefang's patches to MIME::Words and MIME::Field::ParamVal . Way way way overdue. Thanks to the MIMEdefang team.
Better documentation. The docs have been split into a number of relevant pages, all referenced by the main MIME::Tools manpage. It should now be easier to find what you want, and ignore what you don't.
New logging facility. See MIME::Tools::diag for details.
All decoding to bodies is done with binmode(1). The content-type is no longer considered, even for "text/*". This is because charset makes all the difference in how to handle newlines: "charset=utf16" certainly should not output a literal '\n' byte as anything but '\n'. A last lingering big of ISO-8859 bigotry, brought to my attention by our friends in the Far East.
All bodyhandles open with binmode(1) by default. Binmode, binmode, everywhere... I'm hoping that this will make non-Unix lives a little less confusing.
Tolerance of badly-specified encodings. We now tolerate ``7-bit'', ``7_bit'', and ``7 bit'' as synonyms of ``7bit'', which is what $head->effective_type returns. Likewise for ``8bit''.
Fixed non-localized $_. A minor bug, but a bug nonetheless: $_ was not localized when fetching a body.
MIME::Tools::tmpopen() made more flexible. You can now override the tmpfile-opening behavior.
Added tolerance for unquoted =?...?= in param values. This is in violation of the RFCs, but then, so are some MUAs. Thanks to desti for bringing this to my attention.
Fixed supposedly-bad B-encoding. Thanks to Otto Frost for bringing this to my attention.
Fixed small epilogue-related bug in MIME::Entity::print_body(). Now it only outputs a final newline if the epilogue does not end in one already. Support for checking the preamble/epilogue in regression tests was also added. Thanks to Lars Hecking for bringing this issue up.
Updated documentation. All module manual pages should now direct readers to the main MIME-tools manual page.
Beware the doctor who cures seasonal head cold by killing patient
Improved naming of extracted files. If a filename is regarded as evil, we guess that it might just be because of part information, and attempt to find and use the final path element.
Simplified message logging and made it more consistent. For details, see ``Message-logging''.
The carriage return thumbs its nose at me, laughing: DOS I/O *still* sucks
shift @_, ### "shift at-underscore" or @_ will have bogus "self" object
Added some backcompat methods, like parse_FH(). Thanks (and apologies) to Alain Kotoujansky.
Added filenames-with-spaces support to MIME::Decoder::UU. Thanks to Richard Pun for the suggestion.
Removed the Alpha notice. Still a few features to tweak, but those will be minor.
Errors, like beetles, Multiply ferociously In the small hours
evil_filename output_dir output_filename output_path output_prefix output_under
My sincere apologies for any inconvenience this will cause, but it's ultimately for the best, and is quite likely the last structural change to 5.x. Thanks to Tyson Ackland for all the ideas. Incidentally, the new code also fixes a bug where identically-named files in the same message could clobber each other.
A message arrives: "Here are three files, all named 'Foo'" Only one survives. :-(
Fixed bug in MIME::Words header decoding. Underscores were not being handled properly. Thanks to Dominique Unruh and Doru Petrescu, who independently submitted the same fix within 2 hours of each other, after this bug has lain dormant for months:
Two users, same bug, same patch -- mere hours apart: Truly, life is odd.
Removed escaping of underscore in regexps. Escaping the underscore (\_) in regexps was sloppy and wrong (escaped metacharacters may include anything in \w), and the newest Perls warn about it. Thanks to David Dyck for bringing this to my attention.
What, then, is a word? Some letters, digits, and, yes: Underscores as well
Added Force option to MIME::Entity's make_multipart. Thanks to Bob Glickstein for suggesting this.
Numerous fixlets to example code. Thanks to Doru Petrescu for these.
Added REQUIREMENTS section in docs. Long-overdue. Thanks to Ingo Schmiegel for motivating this.
The hurrying bee Flies far for nectar, missing The nearest flowers
Say ten thousand times: Complex cases may succeed Where simple ones fail
Parse errors now generate warnings. Parser errors now cause warn()s to be generated if they are not turned into fatal exceptions. This might be a little redundant, seeing as they are available in the ``results'', but parser-warnings already cause warn()s. I can always put in a ``quiet'' switch if people complain.
Miscellaneous cleanup. Documentation of MIME::Parser improved slightly, and a redundant warning was removed.
Just as with beauty The eye of the beholder Is where "evil" lives.
Documentation fixes. Corrected a number of docs in MIME::Entity which were obsoleted in the transition from 4.x to 5.x. Thanks to Michael Fischer for pointing these out. For this one, a special 5-5-5-5 Haiku of anagrams:
Documentation in mutant code, O! Edit -- no, CUT! [moan] I meant to un-doc...
IO::Lines usage bug fixed. MIME::Entity was missing a ``use IO::Lines'', which caused an exception when you tried to use the body() method of MIME::Entity. Thanks to Hideyo Imazu and Michael Fischer for pointing this out.
Bareword looks fine, but Perl cries: "Whoa there... IO::Lines? Never heard of it."
Faster parsing. Sped up the MIME::Decoder::NBit decoder quite a bit by using a variant of the chunking trick I used for MIME::Decoder::Base64. I suspect that the same trick (reading a big chunk plus the next line to get a big block of lines) would work with MIME::Decoder::QuotedPrint, but I don't have the time or resources to check that right now (tested contributions would be welcome). NBit encoding is more-conveniently done line-by-line for now, because individual line lengths must be checked.
Better use of core. MIME::Body::InCore is now used when you build() an entity with the Data parameter, instead of MIME::Body::Scalar.
More documentation on toolkit configuration.
A simple warning Invokes method as function: "Warning" makes us die
Way too many bugs Thus, a self-imposed penance: Write haiku for each
Fixed bug in MIME::Parser: the reader was not handling the odd (but legal) case where a multipart boundary is followed by linear whitespace. Thanks to Jon Agnew for reporting this with the RFC citation.
Legal message fails And 'round the globe, thousands cry: READ THE RFC
Empty preambles are now handled properly by MIME::Entity when printing: there is now no space between the header-terminator and the initial boundary. Thanks to ``sen_ml'' for suggesting this.
Nature hates vacuum But please refrain from tossing Newlines in the void
Started using Benchmark for benchmarking.
MIME::Parser now has ignore_errors() set true by default.
More regression test have been added, and the ``Size'' tests in Ref.t are skipped for text document (due to CRLF differences between platforms).
Convenient new one-directory-per-message parsing mechanism.
Now through "MIME::Parser" method "output_under()",
you can tell the parser that you want it to create
a unique directory for each message parsed, to hold the
resulting parts.
Elimination of $', $` and $&.
Wow... I still can't believe I missed this. D'OH!
Thanks to Noel Burton-Krahn for all his patches.
Parser is more tolerant of weird EOL termination.
Some mailagents are can terminate lines with ``\r\r\n''.
We're okay with that now when we extract the header.
Thanks to Joao Fonseca for pointing this out.
Parser is tolerant of ``From '' lines in headers.
Thanks to Joachim Wieland, Anthony Hinsinger, Marius Stan,
and numerous others.
Parser catches syntax errors in headers.
Thanks to Russell P. Sutherland for catching this.
Parser no longer warns when subtype is undefined.
Thanks to Eric-Olivier Le Bigot for his fix.
Better integration with Mail::Internet.
For example, smtpsend() should work fine.
Thanks to Michael Fischer and others for the patch.
Miscellaneous cleanup.
Thanks to Marcus Brinkmann for additional helpful input.
Thanks to Klaus Seidenfaden for good feedback on 5.x Alpha!
Documentation fixes.
Hopefully we've seen the last of the pod2man warnings...
Better test logging.
Now uses ExtUtils::TBone.
Improved handling/saving of preamble/epilogue.
MIME::IO deprecated.
You'll see IO::Scalar, IO::ScalarArray, and IO::Wrap
to make this toolkit work.
MIME::Entity deep code.
You can now deep-copy MIME entities (except for on-disk data files).
7bit and 8bit ``encoders'' no longer encode.
As per RFC-2045, these just do a pass-through of the data,
but they'll warn you if you send bad data through.
MIME::Entity suggests encoding.
Now you can ask MIME::Entity's build() method to ``suggest''
a legal encoding based on the body and the content-type.
No more guesswork! See the ``mimesend'' example.
New module structure for MIME::Decoder classes.
It should be easier for you to see what's happening.
New MIME decoders!
Support added for decoding "x-uuencode", and for
decoding/encoding "x-gzip64". You'll need ``gzip'' to make
the latter work.
Quoted-printable back on track... and then some.
The 'quoted-printable' decoder now uses the newest MIME::QuotedPrint,
and amends its output with guideline #8 from RFC2049 (From/.).
Thanks to Denis N. Antonioli for suggesting this.
The ``multipart/digest'' semantics are now preserved.
Parts of digest messages have their mime_type() defaulted
to ``message/rfc822'' instead of ``text/plain'', as per the RFC.
Thanks to Carsten Heyl for suggesting this.
You can prevent recommended filenames from being output.
This possible security hole has been plugged; when building MIME
entities, you can specify a body path but suppress the filename
in the header.
Thanks to Jason L. Tibbitts for suggesting this.
MIME::Head::add() now no longer downcases its argument.
Thanks to Brandon Browning & Jason L. Tibbitts for finding this bug.
MIME::ParserBase no longer defaults to RFC-1522-decoding headers.
The documentation correctly stated that the default setting was
to not RFC-1522-decode the headers. The code, on the other hand,
was init'ing this parser option in the ``on'' position.
This has been fixed.
MIME::ParserBase::parse_nested_messages reexamined.
If you use this feature, please re-read the documentation.
It explains a little more precisely what the ramifications are.
MIME::Entity tries harder to ensure MIME compliance.
It is now a fatal error to use certain bad combinations of content
type and encoding when ``building'', or to attempt to ``attach'' to
anything that is not a multipart document. My apologies if this
inconveniences anyone, but it was just too darn easy before for folks
to create bad MIME, and gosh darn it, good libraries should at least
try to protect you from mistakes.
The ``make'' now halts if you don't have the right stuff,
provided your MakeMaker supports PREREQ_PM. See ``REQUIREMENTS''
for what you need to install this package. I still provide
old courtesy copies of the MIME:: decoding modules.
Thanks to Hugo van der Sanden for suggesting this.
The ``make test'' is far less chatty.
Okay, okay, STDERR is evil. Now a "make test" will just give you
the important stuff: do a "make test TEST_VERBOSE=1" if you want
the gory details (advisable if sending me a bug report).
Thanks to Andreas Koenig for suggesting this.
You can now parse a MIME message from a scalar,
an array-of-scalars, or any MIME::IO-compliant object (including IO::
objects.) Take a look at parse_data() in MIME::ParserBase. The
parser code has been modified to support the MIME::IO interface.
Thanks to fellow Chicagoan Tim Pierce (and countless others)
for asking.
More sensible toolkit configuration.
A new config() method in MIME::ToolUtils makes a lot of toolkit-wide
configuration cleaner. Your old calls will still work, but with
deprecation warnings.
You can now sign messages just like in Mail::Internet.
See MIME::Entity for the interface.
You can now remove signatures from messages just like in Mail::Internet.
See MIME::Entity for the interface.
You can now compute/strip content lengths
and other non-standard MIME fields.
See sync_headers() in MIME::Entity.
Thanks to Tim Pierce for bringing the basic problem to my attention.
Many warnings are now silent unless $^W is true.
That means unless you run your Perl with "-w", you won't see
deprecation warnings, non-fatal-error messages, etc.
But of course you run with "-w", so this doesn't affect you. ":-)"
Completed the 7-bit encodings in MIME::Latin1.
We hadn't had complete coverage in the conversion from 8- to 7-bit;
now we do. Thanks to Rolf Nelson for bringing this to my attention.
Fixed broken parse_two() in MIME::ParserBase.
BTW, if your code worked with the ``broken'' code, it should still
work.
Thanks again to Tim Pierce for bringing this to my attention.
Building MIME messages is even easier.
Now, when you use MIME::Entity's "build()" or "attach()",
you can also supply individual
mail headers to set (e.g., "-Subject", "-From", "-To").
Added "Disposition" to MIME::Entity's "build()" method.
Thanks to Kurt Freytag for suggesting this feature.
An "X-Mailer" header is now output
by default in all MIME-Entity-prepared messages,
so any bad MIME we generate can be traced back to this toolkit.
Added "purge()" method to MIME::Entity for deleteing leftover files.
Thanks to Jason L. Tibbitts III for suggesting this feature.
Added "seek()" and "tell()" methods to built-in MIME::IO classes.
Only guaranteed to work when reading!
Thanks to Jason L. Tibbitts III for suggesting this feature.
When parsing a multipart message with apparently no boundaries,
the error message you get has been improved.
Thanks to Andreas Koenig for suggesting this.
MIME::Entity's "build()" method now warns you if you give it an illegal boundary string, and substitutes one of its own.
MIME::Entity's "build()" method now generates safer, fully-RFC-1521-compliant boundary strings.
Bug in MIME::Decoder's "install()" method was fixed. Thanks to Rolf Nelson and Nickolay Saukh for finding this.
Changed FileHandle::new_tmpfile to FileHandle->new_tmpfile, so some Perl installations will be happier. Thanks to Larry W. Virden for finding this bug.
Gave "=over" an arg of 4 in all PODs. Thanks to Larry W. Virden for pointing out the problems of bare =over's
Fixed bug in MIME::Entity::body() where it was using the bodyhandle completely incorrectly. Thanks to Joel Noble for bringing this to my attention.
Fixed MIME::Head::VERSION so CPAN:: is happier. Thanks to Larry Virden for bringing this to my attention.
Fixed undefined-variable warnings when dumping skeleton (happened when there was no Subject: line) Thanks to Joel Noble for bringing this to my attention.
MIME::Parser can now store message data in-core. There were a lot of requests for this feature.
MIME::Entity can now compose messages. There were a lot of requests for this feature.
Added option to parse "message/rfc822" as a pseduo-multipart document. Thanks to Andreas Koenig for suggesting this.
Fixed idiotic is_multipart() bug. Thanks to Andreas Koenig for noticing it.
Added untested binmode() calls to parser for DOS, etc. systems. No idea if this will work...
Reorganized the output_path() methods to allow easy use of inheritance, as per Achim Bohnet's suggestion.
Changed MIME::Head to report mime_type more accurately.
POSIX module no longer loaded by Parser if perl >= 5.002. Hey, 5.001'ers: let me know if this breaks stuff, okay?
Added unsupported ./examples directory.
Added t/*.t files for testing. Eeeeeeeeeeeh...it's a start.
Fixed bug in default parsing routine for generating output paths; it was warning about evil filenames if there simply were no recommended filenames. D'oh!
Fixed redefined parts() method in Entity.
Fixed bugs in Head where field name wasn't being case folded.
A bad regexp for parameter names was causing some parameters to be parsed incorrectly; this has also been fixed. Thanks again to Igor Starovoitov for reporting this bug.
It is now possible to get full control of the filenaming algorithm before output files are generated, and the default algorithm is safer. Thanks to Laurent Amon for pointing out the problems, and suggesting some solutions.
Fixed illegal ``simple'' multipart test file. D'OH!
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |