Nathan Zabaldo wrote: > Paul J Stevens wrote: > > >>That is not correct. It should look like '#Public/Spam'. But it may well be >>sm's namespace handling is broken. > > >>I prefer fetchmailrc syntax: > > >>poll localhost with protocol imap >> user spamadmin mda "/usr/bin/sa-learn --spam --single" >> password secretpassword; >> folder "#Public/Spam" >> keep > > > Paul, I appreciate your help on this I feel I am getting closer, but I can't > get this to work. I've read the man pages for fetchmail, but it is not > making any sense to me. I couldn't find much reference to fetchmailrc > syntax.
try: man fetchmailrc > > I am typing into SSH the following, which I am sure is idiotic: Indeed. Quite idiotic. > > "/usr/sbin/fetchmail poll localhost with protocol imap user [EMAIL PROTECTED] > mda "/usr/bin/sa-learn --spam --single" password secret; folder > "#Public/Spam" keep" > > When I press enter it asks me for the password [EMAIL PROTECTED] and then > [EMAIL PROTECTED] > and then [EMAIL PROTECTED]@admin.com and then [EMAIL PROTECTED] and then > root@/usr/bin/sa-learn --spam --single then [EMAIL PROTECTED] then > [EMAIL PROTECTED] try putting this into a separate file like /etc/fetchmailrc ---<cut>--- set daemon 3600 # Pool every 60 minutes set syslog # log through syslog facility set no bouncemail # avoid loss on 4xx errors # on the other hand, 5xx errors get # more dangerous... ########################################################################## # Hosts to pool ########################################################################## # Defaults =============================================================== # Set antispam to -1, since it is far safer to use that together with # no bouncemail defaults: antispam -1 batchlimit 100 limit 512000 poll localhost with protocol imap user [EMAIL PROTECTED] mda "/usr/bin/sa-learn --spam --single" password secret; folder "\#Public/Spam" keep ---<cut>--- fetchmail -v -f /etc/fetchmailrc -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl