[Jifty-commit] jifty branch, master, updated. jifty-1.01209-18-ga3711b7
Jifty commits
jifty-commit at lists.jifty.org
Wed Jan 26 14:29:18 EST 2011
The branch, master has been updated
via a3711b7966d63de687dafbe2b7f70f47d13d7ce5 (commit)
from e61ed99b4202ed1c67ce5f9387bf3499884363d2 (commit)
Summary of changes:
lib/Jifty/Notification.pm | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit a3711b7966d63de687dafbe2b7f70f47d13d7ce5
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Jan 26 14:25:06 2011 -0500
Add support for cc and bcc in Jifty::Notification
diff --git a/lib/Jifty/Notification.pm b/lib/Jifty/Notification.pm
index 249a691..7d05782 100644
--- a/lib/Jifty/Notification.pm
+++ b/lib/Jifty/Notification.pm
@@ -8,7 +8,7 @@ use Email::Send ();
use Email::MIME::CreateHTML;
__PACKAGE__->mk_accessors(
- qw/body html_body preface footer subject from _recipients _to_list to/);
+ qw/body html_body preface footer subject from _recipients _to_list to cc bcc/);
=head1 NAME
@@ -109,6 +109,9 @@ sub send_one_message {
$self->subject || _("A notification from %1!",$appname )
);
+ my $cc = Encode::encode('MIME-Header', $self->cc || '');
+ my $bcc = Encode::encode('MIME-Header', $self->bcc || '');
+
if ( defined $self->html_body ) {
# Email::MIME takes _bytes_, not characters, for the "body"
@@ -121,6 +124,8 @@ sub send_one_message {
header => [
From => $from,
To => $to,
+ Cc => $cc,
+ Bcc => $bcc,
Subject => $subj,
],
attributes => \%attrs,
@@ -139,6 +144,8 @@ sub send_one_message {
header => [
From => $from,
To => $to,
+ Cc => $cc,
+ Bcc => $bcc,
Subject => $subj,
],
attributes => \%attrs,
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list