Page 2 of 2

To: johndevine

Posted: Thu Nov 24, 2005 9:45 am
by phoenix
You can train it for ham by using the same zmtrainsa and changing the option for 'spam' to 'ham' and obviously point the directory to the 'good' email. The command would be zmtrainsa server user password ham cleanemailfolder

To: johndevine

Posted: Mon Nov 28, 2005 1:51 pm
by avisser
I'm using M2 and have modified the zmtrainsa script as instructed by the post (http://www.zimbra.com/forums/showpost.p ... ostcount=3), I ran it with the following result:
[zimbra@mail ~]$ zmtrainsa server user password spam junk

Option --remote is not supported with POP3

fetchmail: Query status=5 (SYNTAX)

synced Bayes databases from journal in 0 seconds: 114 unique entries (114 total entries)

[zimbra@mail ~]$


The POP3 message has me curious if the training worked?

Does the zmtrainsa add to the existing training, or clear the old training?

To: johndevine

Posted: Mon Nov 28, 2005 1:53 pm
by marcmac
It doesn't look like it trained anything.
In general, training is additive - after you train on a message, it remembers teh hash of the message, and skips it if it sees it again.
So - after you train, you can purge your junk folder, to save time the next time you train.

To: johndevine

Posted: Wed Nov 30, 2005 8:05 am
by avisser
marcmac, do you have any suggestions on how to fix the training script so it will work?

To: johndevine

Posted: Wed Nov 30, 2005 8:59 am
by marcmac
I'll take a look at it.

To: johndevine

Posted: Wed Nov 30, 2005 10:42 am
by marcmac
I'm not giving a protocol specifier in the fetchmail rc, so it tries IMAP, POP3 and POP2 (in that order) skipping those for which there's no support compiled in.
POP doesn't support the -r option (to specify a folder) which is generating the error.
I've fixed zmtrainsa thusly:
echo "server $SERVER protocol IMAP user $USER@$SERVER password $PASS keep" > ${zimbra_home}/conf/.fetchmailrc
which should force IMAP - but the problem remains, why didn't it use IMAP to start with?
Try fetchmail -V and see what it says. Mine says:

This is fetchmail release 6.2.5+IMAP-GSS+RPA+NTLM+SDPS+SSL+INET6+NLS

which seems to indicate IMAP support - does your version list IMAP?

To: johndevine

Posted: Wed Nov 30, 2005 11:17 am
by avisser
I have the same version of fetchmail as you do.
I ran it and it looks like it worked
[zimbra@mail ~]$ zmtrainsa server user password spam junk

fetchmail: Query status=2 (SOCKET)

synced Bayes databases from journal in 3 seconds: 1076 unique entries (1437 total entries)

[zimbra@mail ~]$


thanks for all the hard work.