[Jifty-commit] r1373 - in jifty/trunk: lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Wed Jun 28 09:34:45 EDT 2006
Author: alexmv
Date: Wed Jun 28 09:34:40 2006
New Revision: 1373
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Notification.pm
Log:
r14468 at zoq-fot-pik: chmrr | 2006-06-28 09:34:26 -0400
* Jifty::Notification::headers renamed to set_headers to reflect its
more active nature
Modified: jifty/trunk/lib/Jifty/Notification.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Notification.pm (original)
+++ jifty/trunk/lib/Jifty/Notification.pm Wed Jun 28 09:34:40 2006
@@ -90,10 +90,10 @@
From => $self->from || 'A Jifty Application <nobody>',
To => $to,
Subject => $self->subject || 'No subject',
- $self->headers,
],
body => join( "\n", $self->preface, $self->body, $self->footer )
);
+ $self->set_headers($message);
my $method = Jifty->config->framework('Mailer');
my $args_ref = Jifty->config->framework('MailerArgs');
@@ -111,18 +111,16 @@
$ret;
}
-=head2 headers
+=head2 set_headers MESSAGE
-Returns a list of additional headers to use when constructing the
-message; this defaults to the empty list; override it to add custom
-headers.
+Takes a L<Email::Simple> object C<MESSAGE>, and modifies it as
+necessary before sending it out. As the method name implies, this is
+usually used to add or modify headers. By default, does nothing; this
+method is meant to be overridden.
=cut
-sub headers {
- my $self = shift;
- return ();
-}
+sub set_headers {}
=head2 body [BODY]
More information about the Jifty-commit
mailing list