The 03.06.08 at 23:19, H du Plooy wrote:
My plan is to use spamassassin to get rid of the 10 or so junkmails I get per day. I have six different pop accounts, for personal, business, and various different mail lists, all being checked by evolution.
I got fetchmail so far to download messages and deliver to my /var/mail/*user* and have evolution pick it up there. This wasn't easy though. I first tried (as normal user) to just:
# fetchmail
This works if you have a .fetchmailrc file on the home dir of the user calling fetchmail. Otherwise, you have to specify the file.
/etc/init.d/fetchmail: line 20: /etc/rc.config: No such file or directory
The contents of that file has been distributed inside files in /etc/sysconfig/*. You'l have to search for the correct one. Have a look at the rest of init.d scripts for ideas. But in your case, I would do something else. I understand you connect by dialup, ie, not permanently. Therefore, I would call it from /etc/ppp/ip-up.local, or perhaps from "/etc/ppp/poll.tcpip", which at least suse 8.1 included. This is set up from "/etc/sysconfig/network/ifcfg-ppp0" or equivalent. That would make the script poll.tcpip be run as soon as the networks goes up. I do it via my own script; if you are insterested, I'll post it another day.
I'm not sure how fetcmail does this, but all the mail clients I've used, download a list of all the mail on the pop server, then download them all, then delete them all from the server. With a not too stable dial-up connection, and sometimes a couple of hundred messages at a time, I'd like it to go:
fetchmail is very powerfull and configurable. For example, it can be set to flush the mailserver every 50 mail (say) so that if the line goes down you will not retrieve them again. I'd recomend reading the manual pag.
download message 1 delete message download message 2 delete message 2 ect...
Is this possible?
It is possible, but not recomended: the load on the server would be heavy. The explanation is the fetchmail man page.
Last question: If I have fetchmail running as a service, as user, all is working well, and it is checking mail every now and then, is there a way to see it's progress when it's downloading a large number at a time? A gui tool of some sorts that keeps and eye on fetchmail and reports what it's doing?
Not a gui: but it logs via syslog (default is /var/log/mail) or otherwise (again: as documented). -- Cheers, Carlos Robinson