/[smecontribs]/rpms/smeserver-fetchmail/contribs10/smeserver-fetchmail-1.6-bz11979-ids.patch
ViewVC logotype

Contents of /rpms/smeserver-fetchmail/contribs10/smeserver-fetchmail-1.6-bz11979-ids.patch

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


Revision 1.4 - (show annotations) (download)
Sat Jul 30 02:33:49 2022 UTC (2 years, 4 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-fetchmail-1_6-27_el7_sme, smeserver-fetchmail-1_6-24_el7_sme, smeserver-fetchmail-1_6-26_el7_sme, smeserver-fetchmail-1_6-25_el7_sme, HEAD
Changes since 1.3: +11 -32 lines
* Thu Jul 28 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.6-24.sme
- fix fetchmail restart downloading all emails after reboot [SME: 11979]
  thanks to Stefano Zamboni for debuging and original fix.

1 diff -Nur --no-dereference smeserver-fetchmail-1.6.old/createlinks smeserver-fetchmail-1.6/createlinks
2 --- smeserver-fetchmail-1.6.old/createlinks 2022-07-28 10:33:25.211000000 -0400
3 +++ smeserver-fetchmail-1.6/createlinks 2022-07-29 22:20:19.665000000 -0400
4 @@ -6,20 +6,17 @@
5 #see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
6
7 foreach my $file (qw(
8 - /etc/systemd/system-preset/49-koozali.preset
9 + /etc/fetchmail
10 + /etc/startmail
11 + /etc/crontab
12 ))
13 {
14 templates2events( $file, $event );
15 }
16 #action needed in case we have a systemd unit
17 -event_link('systemd-default', $event, '10');
18 -event_link('systemd-reload', $event, '50');
19 -#action specific to this package
20 -#event_link('action', $event, '30');
21 -#services we need to restart
22 -#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service);
23 -#and Server Manager panel link
24 -#panel_link('somefunction', 'manager');
25 +event_link('systemd-default', $event, '88');
26 +event_link('systemd-reload', $event, '89');
27 +
28
29 #--------------------------------------------------
30 # functions for manager panel
31 diff -Nur --no-dereference smeserver-fetchmail-1.6.old/root/etc/e-smith/templates/etc/fetchmail/90fetchmail smeserver-fetchmail-1.6/root/etc/e-smith/templates/etc/fetchmail/90fetchmail
32 --- smeserver-fetchmail-1.6.old/root/etc/e-smith/templates/etc/fetchmail/90fetchmail 2022-07-28 10:33:25.177000000 -0400
33 +++ smeserver-fetchmail-1.6/root/etc/e-smith/templates/etc/fetchmail/90fetchmail 2022-07-28 11:17:18.575000000 -0400
34 @@ -322,6 +322,7 @@
35 my $size = $db->get_prop('qmail','MaxMessageSize') || '0';
36 my $mdbg='-l' . $size . ' -d0 --silent --syslog';
37 if($Debug eq "YES") { $mdbg='-l' . $size . ' -d0 --verbose --syslog'; }
38 + $mdbg .= " -i /var/lib/fetchmail/.fetchids "; # fix SME: 11979
39
40 my $staticvalue = "/usr/bin/fetchmail $mdbg --fetchmailrc - <<EOF\n" ;
41 $staticvalue .= "set postmaster \"postmaster\@$dom\"\n" ;

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