Logout

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.

 [F] 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.

[Cramp, Edmund]
Edmund Cramp
Novice
Novice
Posts: 239

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.

  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Arron.Caruth@mdaemon.com - Aug 12, 2019 8:11 am (#1 Total: 4)  

Guest User  

Photo of Author
Posts: 1

Thanks for your feedback.  This is still on our list to look into.

 


--
Arron Caruth
Director of Product Development
o: 817-601-3222    e: arron.caruth@mdaemon.com

MDaemon Technologies
Simple Secure Email
Visit us on
www.mdaemon.com | Facebook | LinkedIn | YouTube
Sent using the
MDaemon Email Server

 

From: md-anti-spam@mdaemon.com [mailto:md-anti-spam@mdaemon.com] On Behalf Of Edmund Cramp (lists-md-anti-spam@mdaemon.com)
Sent: Friday, August 9, 2019 8:42 AM
To: md-anti-spam List Member <md-anti-spam@mdaemon.com>
Subject: [md-anti-spam] LEARN.BAT doesn't work when the mail is not on the same drive as MD.

 

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.


View/reply at LEARN.BAT doesn't work when the mail is not on the same drive as MD.

 
 
--MD-ANTI-SPAM-------------------------------------------------------
This list is for questions and discussions about preventing SPAM 
using MDAEMON. To unsubscribe from this mailing list send an email to 
md-anti-spam-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!------------------------------------------------
 
---------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user 
support and discussion.  MDaemon staff members may participate in the 
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical 
support please use the form here:
http://www.mdaemon.com/Support/RequestSupport/
---------------------------------------------------------------------

--MD-ANTI-SPAM-------------------------------------------------------
This list is for questions and discussions about preventing SPAM
using MDAEMON. To unsubscribe from this mailing list send an email to
md-anti-spam-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!------------------------------------------------

---------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user
support and discussion.  MDaemon staff members may participate in the
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical
support please use the form here:
http://www.mdaemon.com/Support/RequestSupport/
---------------------------------------------------------------------

Replies to this message
  • Edmund Cramp (Aug 21, 2019 7:52 am)


  • Edmund Cramp - Aug 14, 2019 6:38 am (#2 Total: 4)  

     

    Photo of Author
    Edmund Cramp
    Novice
    Novice
    Posts: 239

    MDaemon
    Outlook Connector
    WebAdmin
    I'm attaching mylearn.bat so that you can see how I'm handling it.

    Attachments:

    MyLearn.bat (2 KB) (230 Downloads)


    Replies to this message
  • Edmund Cramp (Aug 16, 2019 9:50 am)




  •   (newer msg:2)All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



     Content:

    Read New | Search

     Guest:

    Email to Admin



    You are visiting as a Guest user.