summaryrefslogtreecommitdiff
path: root/lib/JWebmail/Model
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-04-22 19:31:45 +0200
committerJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-04-22 19:31:45 +0200
commit5c3fa491eebc690fbac8a963996a0244882813c7 (patch)
tree784623eb6b652ff98473549c48c7a997898fc38e /lib/JWebmail/Model
parente1bafc13858b5c72a7584c52d3d9d6d597d39e6b (diff)
refactored plugin I18N2
added actions script
Diffstat (limited to 'lib/JWebmail/Model')
-rw-r--r--lib/JWebmail/Model/WriteMails.pm6
1 files changed, 4 insertions, 2 deletions
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);
}