Alt-N Discussion Groups
MDaemon Discussion Groups
MDaemon AntiSpam
Archive
LEARN.BAT doesn't work when the mail is not on the same drive as MD.
Edmund Cramp
Novice
Posts: 235

Novice
Posts: 235
MDaemon
Outlook Connector
WebAdmin
Edmund Cramp - 08:41am, Aug 9 2019
I ran the default LEARN.BAT last night, here's the log:
Fri 2019-08-09 01:00:37.981: Performing Bayesian learning
Fri 2019-08-09 01:00:37.982: * Learning from Spam folder: D:/MDaemon/Public Folders/Bayesian Learning.IMAP/Spam.IMAP
Fri 2019-08-09 01:00:37.982: * Learned tokens from 0 message(s) (0 message(s) examined)
Fri 2019-08-09 01:00:37.982: * Learning from Ham folder: D:/MDaemon/Public Folders/Bayesian Learning.IMAP/Non-Spam.IMAP
Fri 2019-08-09 01:00:37.982: * Learned tokens from 0 message(s) (0 message(s) examined)
Fri 2019-08-09 01:00:37.982: * End Bayesian learning results
I've reported this error in the past but it's still not fixed. The problem is that the default LEARN.BAT contains commands like this:
CD "D:/MDaemon/Public Folders/Bayesian Learning.IMAP/Spam.IMAP"
But when that command is run from the default MD directory on the C: drive it doesn't work. It's a well known issues, on most versions of Windows you can't use the CD command to change drives, so all LEARN.BAT does is delete all of the files instead of submitting them to SpamAssassin.
So I'm going back to running my own MYLEARN.BAT file:
Fri 2019-08-09 08:40:19.328: * Performing updated Bayesian learning
Fri 2019-08-09 08:40:19.329: * Learning from Spam folder: D:/MDaemon/Public Folders/Bayesian Learning.IMAP/Spam.IMAP
Fri 2019-08-09 08:40:19.329: * Learned tokens from 151 message(s) (151 message(s) examined)
Fri 2019-08-09 08:40:19.329: * Learning from Ham folder: D:/MDaemon/Public Folders/Bayesian Learning.IMAP/Non-Spam.IMAP
Fri 2019-08-09 08:40:19.329: * Learned tokens from 16 message(s) (16 message(s) examined)
Fri 2019-08-09 08:40:19.330: * End updated Bayesian learning results
Problem solved.
|
|
|