| 1 | package SVN::Hooks::Mailer; | ||
| 2 | # ABSTRACT: Send emails after successful commits. | ||
| 3 | $SVN::Hooks::Mailer::VERSION = '1.35'; | ||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | |||
| 7 | use Carp; | ||
| 8 | use SVN::Hooks; | ||
| 9 | |||
| 10 | use Exporter qw/import/; | ||
| 11 | my $HOOK = 'MAILER'; | ||
| 12 | our @EXPORT = qw/EMAIL_CONFIG EMAIL_COMMIT/; | ||
| 13 | |||
| 14 | |||
| 15 | sub _deprecated { | ||
| 16 | croak <<"EOS"; | ||
| 17 | DEPRECATED: The SVN::Hooks::Mailer plugin was deprecated in 2008 and | ||
| 18 | became nonoperational in version 1.08. You must edit your hook | ||
| 19 | configuration to remove the directives EMAIL_CONFIG and | ||
| 20 | EMAIL_COMMIT. You may use the new SVN::Hooks::Notify plugin for | ||
| 21 | sending email notifications. | ||
| 22 | EOS | ||
| 23 | } | ||
| 24 | |||
| 25 | |||
| 26 | sub EMAIL_CONFIG { | ||
| 27 | _deprecated(); | ||
| 28 | } | ||
| 29 | |||
| 30 | |||
| 31 | sub EMAIL_COMMIT { | ||
| 32 | _deprecated(); | ||
| 33 | } | ||
| 34 | |||
| 35 | |||
| 36 | 1; # End of SVN::Hooks::Mailer | ||
| 37 | |||
| 38 | __END__ |