{"id":64,"date":"2004-05-28T09:37:17","date_gmt":"2004-05-28T14:37:17","guid":{"rendered":"http:\/\/192.168.33.66\/wp\/?p=64"},"modified":"2004-05-28T09:37:17","modified_gmt":"2004-05-28T14:37:17","slug":"fetchmail-script","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=64","title":{"rendered":"fetchmail script"},"content":{"rendered":"<p>fetchmail script<\/p>\n<p>We have wrote a small and nice script for Fetchmail (check it out). You can install the script in \/etc\/fetchmail.d directory, and then run the scheduled command that we wrote (put in \/etc\/cron.hourly to let it run hourly) to automate it. Also, you should edit \/etc\/crontab file to make it run more often (may be every 15 minutes). You should edit this sample configuration to your site settings.<\/p>\n<p>We hope this is helpful to you<\/p>\n<p><\/p>\n<p><!--more--><\/p>\n<p>#!\/bin\/sh<\/p>\n<p># Add the users who responsible to run fetchmail. The fetchmail script<br \/>\n# can auto &#8220;awake&#8221; every 5 minutes by using &#8220;set daemon 600&#8221; option.<br \/>\n# Fetchmail seems died by itself after a while. So this cron job will<br \/>\n# re-enforce that the fetchmail will run every hour.<\/p>\n<p>CONFIGDIR=\/etc\/fetchmail.d<br \/>\nSILENT=&#8221;Y&#8221;<\/p>\n<p># Make sure all files are set to 600 mode<br \/>\nchmod 600 $CONFIGDIR\/*<br \/>\nOPTIONS=&#8221;&#8221;<br \/>\n[ &#8220;$SILENT&#8221; = &#8220;Y&#8221; ] &#038;&#038; OPTIONS=&#8221;-s&#8221;<\/p>\n<p>\ncd $CONFIGDIR<br \/>\nLIST=`ls -1`<br \/>\nfor i in $LIST; do<br \/>\n\tfetchmail $OPTIONS -f $CONFIGDIR\/$i > \/dev\/null 2>&#038;1<br \/>\ndone<\/p>\n","protected":false},"excerpt":{"rendered":"<p>fetchmail script We have wrote a small and nice script for Fetchmail (check it out). You can install the script in \/etc\/fetchmail.d directory, and then run the scheduled command that we wrote (put in \/etc\/cron.hourly to let it run hourly) &#8230; <a class=\"more-link\" href=\"http:\/\/www.wildow.com\/blog\/?p=64\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/64"}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=64"}],"version-history":[{"count":0,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/64\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}