merging manually the capability to select the imap port and the web settings via the config file
resolving conflicts with enhanced cron robustness merge