]> ##&name; ###&version; ###2018.10.09 - initial release ###2020.10.04 - Update with getmail 6 - patch for gmail ###2021.12.17 - Update for python 3.9 ### 2023.11.15 &pkgURL;&getmailpkg;.txz &getmailMD5; &pkgURL;&ewftgetmailpkg;.txz &ewftgetmailMD5; # Create cron entry cron=/boot/config/plugins/&name;/getmail.cron if [[ ! -f $cron ]]; then echo '# GetMail' >$cron echo -e '0 * * * * /bin/su nobody -mc "getmail --getmaildir /boot/config/plugins/ewft.getmail --rcfile getmailrc --rcfile getmailrc_ewft_bnj" &>/dev/null\n' >>$cron /usr/local/sbin/update_cron fi echo "" echo "-----------------------------------------------------------" echo " Plugin &name; is installed." echo " Version: &version;" echo "-----------------------------------------------------------" echo "" # Remove plugin related files #rm -rf /boot/config/plugins/&name; # Uninstall the 'source' package removepkg &getmailpkg; removepkg &ewftgetmailpkg; # Remove cron entry #/usr/local/sbin/update_cron