diff options
author | dakkar <dakkar@thenautilus.net> | 2017-01-04 16:07:14 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2017-01-04 16:07:41 +0000 |
commit | 3efd2284c8fd21c0a828b1ce5be913a83682019e (patch) | |
tree | d803a97e89ee788544e4dc0e32b15d7eeba5b694 /lib | |
parent | bugs from live testing (diff) | |
download | Sietima-3efd2284c8fd21c0a828b1ce5be913a83682019e.tar.gz Sietima-3efd2284c8fd21c0a828b1ce5be913a83682019e.tar.bz2 Sietima-3efd2284c8fd21c0a828b1ce5be913a83682019e.zip |
fix&test malformed moderation email
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sietima/Role/SubscriberOnly/Moderate.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sietima/Role/SubscriberOnly/Moderate.pm b/lib/Sietima/Role/SubscriberOnly/Moderate.pm index 8bfef2f..966f2d3 100644 --- a/lib/Sietima/Role/SubscriberOnly/Moderate.pm +++ b/lib/Sietima/Role/SubscriberOnly/Moderate.pm @@ -12,8 +12,8 @@ with 'Sietima::Role::SubscriberOnly', sub munge_mail_from_non_subscriber ($self,$mail) { my $id = $self->mail_store->store($mail,'moderation'); my $notice = Email::Stuffer - ->from($self->return_path) - ->to($self->admin) + ->from($self->return_path->address) + ->to($self->admin->address) ->subject("Message held for moderation - ".$mail->header_str('subject')) ->text_body("Use id $id to refer to it") ->attach($mail->as_string, content_type => 'message/rfc822'); |