/[smecontribs]/rpms/smeserver-fetchmail/contribs8/smeserver-fetchmail-1.4.Recovery_of_large_attachments_with_fetchmail.patch
ViewVC logotype

Contents of /rpms/smeserver-fetchmail/contribs8/smeserver-fetchmail-1.4.Recovery_of_large_attachments_with_fetchmail.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Jan 12 17:27:11 2015 UTC (9 years, 3 months ago) by stephdl
Branch: MAIN
CVS Tags: smeserver-fetchmail-1_4-7_el5_sme, smeserver-fetchmail-1_4-4_el5_sme, smeserver-fetchmail-1_4-6_el5_sme, smeserver-fetchmail-1_4-8_el5_sme, smeserver-fetchmail-1_4-5_el5_sme, HEAD
* Mon Jan 12 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.4-4.sme
- recovery large attachments with fetchmail [SME: 8630]

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" ;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed