Changes for version 2.70 - 2008-02-29
- See http://justatheory.com/computers/programming/perl/modules/svnnotify-2.70.html for an announcement of this release.
- Fixed issues with character encoding handling, starting from a patch submitted by Toshikazu Kinkoh, and with a lot of experimentation and testing by Toshikazu, Martin Lindhe, and myself. Hopefully these changes will help solve the various encoding problems that continue to crop up:
- Removed --io-layer, which, it seems, never actually worked.
- Changed --charset to --encoding, although the former is still supported for backwards compatibility.
- Added --svn-encoding, which identifies the encoding in which data is stored in SVN. It defaults to the value of --encoding.
- Added --diff-encoding, which identifies the encoding in which files are stored in SVN. This is useful for the case when log messages are written in one encoding and files stored in another. Defaults to the value of --svn-encoding.
- The --language option is now used to set the C<$LANG> environment variable for the execution of `svnlook` as well as `sendmail`, although not `svnlook diff`, which always runs under the "C" locale.
- Now only setting the $LANG environment variable for the execution of `svnlook` and `sendmail` if it is not already set. This allows the existing usages such as `LANG=ja_JP svnnotify ...` to keep working.
- Fixed character encoding when sending messages via SMTP.
- Added extensive documentation on how to deal with character encodings under "Character Encoding Support" in the SVN::Notify docs.
- Added support for output filtering. This allows users to easily modify content before it's output.
- Added SVN::Notify::Filter, which fully documents the interface for filtering (it's really easy!).
- Added SVN::Notify::Filter:Trac, which parses log messages from the Trac wiki syntax to HTML. Useful for use with SVN::Notify::HTML and SVN::Notify::HTML::ColorDiff, and as a nice example of filtering.
- Split up the output of the HTML <head> section and the <body> section into two methods in SVN::Notify::HTML in order to simplify filtering.
- The CSS output by SVN::Notify::HTML is now output inside the <body> tags, rather than inside the <head> tags. This isn't valid, but will hopefully it will allow messages to display better in Web mail clients such as Gmail.
- Eliminated locale warnings during tests.
- Tweaked the CSS emitted by SVN::Notify::HTML to support a lot of HTML in the log message, since such formatting can come from the use of SVN::Notify::Filter::Trac and, potentially, other output filters.
- Fixed issue running tests with a Perl other than /usr/bin/perl without running `./Build`. If you just did `./Build test`, it could fail with a lot of errors, but no more.
- Fixed use of the SMTP feature under Perl 5.6. Reported by CPAN testers David Cantrell and Slaven Rezic.
- Fixed the formatting and display of the log message when using the --wrap-log option with SVN::Notify::HTML.
- Eliminated a bogus empty paragraph when using the --wrap-log option with SVN::Notify::HTML.
- Fixed the encoding of the subject line so that Unicode characters show up properly. Reported by Ian Anderson (Ticket # 24138).
- Switched from using `crypt` to using a simple random string algorithm for generating email part boundaries, since `crypt` was choking on multibyte characters from message subjects. Reported by Toshikazu Kinkoh.
- Added a link to SVN::Notify's Subversion repository.
Documentation
Subversion activity notification
Modules
Subversion activity notification
MIME multipart/alternative notification
Create output filters for SVN::Notify
Filter SVN::Notify output in Trac format
Subversion activity HTML notification
Subversion activity HTML notification with colorized diff
Provides
in lib/SVN/Notify.pm