1 |
diff -Nur smeserver-fetchmail-1.4.old8630/root/etc/e-smith/templates/etc/fetchmail/90fetchmail smeserver-fetchmail-1.4.bz8630/root/etc/e-smith/templates/etc/fetchmail/90fetchmail |
2 |
--- smeserver-fetchmail-1.4.old8630/root/etc/e-smith/templates/etc/fetchmail/90fetchmail 2015-01-12 18:13:18.451918895 +0100 |
3 |
+++ smeserver-fetchmail-1.4.bz8630/root/etc/e-smith/templates/etc/fetchmail/90fetchmail 2015-01-12 18:22:39.057766042 +0100 |
4 |
@@ -312,9 +312,11 @@ |
5 |
my $ssl = ''; |
6 |
if ( $mtype =~ s/^S// ) { $ssl = 'options ssl' } |
7 |
|
8 |
- my $mdbg='-d0 --silent --syslog'; |
9 |
- if($Debug eq "YES") { $mdbg='-d0 --verbose --syslog'; } |
10 |
- |
11 |
+ #We retrieve the $qmail{MaxMessageSize} to fix the max limit where emails won't be downloaded |
12 |
+ my $size = $db->get_prop('qmail','MaxMessageSize') || '0'; |
13 |
+ my $mdbg='-l' . $size . ' -d0 --silent --syslog'; |
14 |
+ if($Debug eq "YES") { $mdbg='-l' . $size . ' -d0 --verbose --syslog'; } |
15 |
+ |
16 |
my $staticvalue = "/usr/bin/fetchmail $mdbg --fetchmailrc - <<EOF\n" ; |
17 |
$staticvalue .= "set postmaster \"postmaster\@$dom\"\n" ; |
18 |
$staticvalue .= "set bouncemail\nset properties \"\"\n" ; |