From 5c3fa491eebc690fbac8a963996a0244882813c7 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Fri, 22 Apr 2022 19:31:45 +0200 Subject: refactored plugin I18N2 added actions script --- lib/JWebmail/Model/WriteMails.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/JWebmail/Model/WriteMails.pm') diff --git a/lib/JWebmail/Model/WriteMails.pm b/lib/JWebmail/Model/WriteMails.pm index aa2f1d4..7a50bcb 100644 --- a/lib/JWebmail/Model/WriteMails.pm +++ b/lib/JWebmail/Model/WriteMails.pm @@ -69,8 +69,10 @@ sub sendmail { push @recipients, @{ $mail->{cc} } if $mail->{cc}; push @recipients, @{ $mail->{bcc} } if $mail->{bcc}; - say $mime if $Block_Writes; - return 1 if $Block_Writes; + if ($Block_Writes) { + say $mime; + return 1; + } return _send($mime, @recipients); } -- cgit v1.2.3