On Monday 06 October 2003 09:55 pm, Mark wrote: > Does anyone know why if I run fetchmail from a console as root, all my > email downloads and the > server purges the emails fine, but if I run the fetchmail command as a > cron job from root, the messages > are NOT purged off the server. As far as I can tell, the commands > should use the same .fetchmailrc file, > and the file has NOKEEP option turned on. I am at a loss to explain this. > > Thanks!
It is possible that console is using the /etc/fetchmailrc file rather than /root/.fetchmailrc file which is probably what the cron job is using. You might want to check by making sure that both files, if they exist are identical to see if that fixes the problem. You can also specify the exact location of the config file as a parameter to the cron job command or build a script that does it for you. By default, webmin uses a /etc/fetchmailrc location for settings while fetchmailconf uses /root/.fetchmailrc. Not sure which one is used by fetchmail if you don't specify it. -- Bryan Phinney Software Test Engineer
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
