summaryrefslogtreecommitdiff
path: root/lib/JWebmail/Model/ReadMails
diff options
context:
space:
mode:
Diffstat (limited to 'lib/JWebmail/Model/ReadMails')
-rw-r--r--lib/JWebmail/Model/ReadMails/QMailAuthuser.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/JWebmail/Model/ReadMails/QMailAuthuser.pm b/lib/JWebmail/Model/ReadMails/QMailAuthuser.pm
index e16e2f2..311860c 100644
--- a/lib/JWebmail/Model/ReadMails/QMailAuthuser.pm
+++ b/lib/JWebmail/Model/ReadMails/QMailAuthuser.pm
@@ -232,11 +232,13 @@ sub read_qmauth {
$rc = 6;
$e = "$@";
};
- $reader->read(my $buf, 4 * 1024**2);
+ $reader->read(my $buf, 32 * 1024**2);
if (!eof $reader) {
- die 'mailpart too large (>4MB)'
+ die 'mailpart too large (>32MB)';
+ kill 'TERM', $pid;
}
close $reader;
+ waitpid $pid, 0;
$resp = {
head => $r,
body => $buf,