Bug #3134

Cannot change POP3 connector poll interval

Added by Nicola Rauso over 6 years ago. Updated about 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-fetchmail
Target version:v6.6
Security class: Resolution:
Affected version:v6.6-final NEEDINFO:No

Description

If you try to change POP3 connector poll interval from NethGUI, db value changes:

# config show fetchmail
    fetchmail=service
    authType=password
    externalFreq=10
    extraOptions=--fastuidl 1 --sslproto ssl23
    status=enabled

in the system log "/va/log/messages" the operation ends with a "SUCCESS":

Apr 27 11:16:57 mynsrv /sbin/e-smith/db[3459]: /var/lib/nethserver/db/configuration: OLD fetchmail=service|authType|password|externalFreq|5|extraOptions|--fastuidl 1 --sslproto ssl23|status|enabled
Apr 27 11:16:57 mynsrv /sbin/e-smith/db[3459]: /var/lib/nethserver/db/configuration: NEW fetchmail=service|authType|password|externalFreq|10|extraOptions|--fastuidl 1 --sslproto ssl23|status|enabled
Apr 27 11:16:57 mynsrv esmith::event[3462]: Event: nethserver-fetchmail-save
Apr 27 11:16:57 mynsrv esmith::event[3462]: [INFO] service fetchmail restart
Apr 27 11:16:57 mynsrv esmith::event[3462]: Shutting down fetchmail: [  OK  ]#015
Apr 27 11:16:58 mynsrv esmith::event[3462]: Starting fetchmail: [  OK  ]#015
Apr 27 11:16:58 mynsrv esmith::event[3462]: [INFO] fetchmail restart
Apr 27 11:16:58 mynsrv esmith::event[3462]: Action: /etc/e-smith/events/actions/adjust-services SUCCESS [0.413491]
Apr 27 11:16:58 mynsrv esmith::event[3462]: Event: nethserver-fetchmail-save SUCCESS

but daemon doesn't get the change:

# ps ax | grep fetch
 3504 ?        Ss     0:00 /usr/bin/fetchmail --auth password --syslog -f - -d 300 --pidfile /var/run/fetchmail/fetchmail.pid --fastuidl 1 --sslproto ssl23

The problem seems to be into "nethserver-fetchmail-save" event, triggered in case of configuration changes, that does not expand "/etc/sysconfig/fetchmail" template.

The workaround is to trigger "nethserver-fetchmail-update"

Edit:
the UI does not update POP3 Connector > General > Check accounts every dropdown menu on save.

installed packages:
  • fetchmail-6.3.17-1.el6.x86_64
  • nethserver-fetchmail-1.1.1-2.ns6.noarch

Associated revisions

Revision b4623677
Added by Davide Principi about 6 years ago

Fix fetch interval update. Refs #3134

Expand /etc/sysconfig/fetchmail on nethserver-fetchmail-save event.

Revision 714582e1
Added by Davide Principi about 6 years ago

UI: fixed "Check accounts every" value refresh on save. Refs #3134

The selector() widget requires String values, because jQuery inArray()
is type-sensitive when matching the selection with the data source.

History

#1 Updated by Giacomo Sanchietti about 6 years ago

  • Target version set to ~FUTURE

#2 Updated by Giacomo Sanchietti about 6 years ago

  • Status changed from NEW to TRIAGED
  • Target version changed from ~FUTURE to v6.6
  • % Done changed from 0 to 20

#3 Updated by Davide Principi about 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • % Done changed from 20 to 30

#4 Updated by Davide Principi about 6 years ago

  • Description updated (diff)
  • Affected version changed from v6.6 to v6.6-final

I've found also a minor defect in UI (added to description):

the UI does not update POP3 Connector > General > Check accounts every dropdown menu on save.

#5 Updated by Davide Principi about 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

MODIFIED

#6 Updated by Davide Principi about 6 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-fetchmail-1.1.1-2.3.g714582e.ns6.noarch.rpm

#7 Updated by dz0 0te about 6 years ago

  • Assignee set to dz0 0te

#8 Updated by dz0 0te about 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (dz0 0te)
  • % Done changed from 70 to 90

System and Package Version installed
VM KVM - Clean installation of Nethserver 6.6 fully update
Package Installed: nethserver-fetchmail-1.1.1-2.ns6.noarch
Other Package installed: Email,File server,MySQL server,POP3 connector,Web server

Test Original Problem
Changing poll interval from Nethgui db value changes but not daemon. Problem also in the UI as per description

Install Updated Package

yum --enablerepo=nethserver-testing update nethserver-fetchmail-1.1.1-2.3.g714582e.ns6.noarch

Test Results after update
Changing poll interval from Nethgui now update db value and also the daemon.
Solved also the UI, now remember the correct choice.

Note
...

#9 Updated by Davide Principi about 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-updates:
nethserver-fetchmail-1.1.2-1.ns6.noarch.rpm

Also available in: Atom PDF