Hello,
I'm looking for a way to make Spamassassin learn all mails considered as SPAM from each user's SPAM folder.
I've seen this topic viewtopic.php?f=20&t=26866&start=240
but in it, they're looking to learn both HAM and SPAM, yet I only want to learn SPAM that's more than seven days old.
Could you help me to do this?
My goal is to be able to transparently use Snappymail's "Mark as Unwanted" function to train spamassassin.
Learn Spam from user spam folder
Learn Spam from user spam folder
hMailServer 5.6.8 With SpamAssassin 3.4.4
Re: Learn Spam from user spam folder
What is one without the other? How can you compare one to another if the other doesn't exist.
Spam and ham = yin and yang.

Your best bet is to take one of the scripts in that forum thread and put it to work nightly.
Spam and ham = yin and yang.

Your best bet is to take one of the scripts in that forum thread and put it to work nightly.
Re: Learn Spam from user spam folder
that's my business 
I prefer an automated spam learning and a manual ham learning.
That's why i ask this to an other topic

I prefer an automated spam learning and a manual ham learning.
That's why i ask this to an other topic

hMailServer 5.6.8 With SpamAssassin 3.4.4
Re: Learn Spam from user spam folder
I don't think that exists - at least not with spamassassin. There is automated DETECTING, but not automated learning. Spamassassin learns by feeding it spam and ham, and you need at least 200 of each before bayes filtering becomes active. I don't know how any other spam detection software works.
Re: Learn Spam from user spam folder
I think we misunderstood each other.
I'd like a script, like the one proposed by SorenR, that would copy mails older than 7 days from hmailserver users' spam folders and put them in SA-Learn's SPAM learning folder.
Because I already have a script that scans what I put in HAM and SPAM from spamassassin, but I'm looking for a way for mails left for more than X days in spam folders to be automatically taken into account as spam.
As a result, I manage to provide it with carefully sorted legitimate e-mails, but anything I leave in spam will be effortlessly learn as a spam.
I'd like a script, like the one proposed by SorenR, that would copy mails older than 7 days from hmailserver users' spam folders and put them in SA-Learn's SPAM learning folder.
Because I already have a script that scans what I put in HAM and SPAM from spamassassin, but I'm looking for a way for mails left for more than X days in spam folders to be automatically taken into account as spam.
As a result, I manage to provide it with carefully sorted legitimate e-mails, but anything I leave in spam will be effortlessly learn as a spam.
hMailServer 5.6.8 With SpamAssassin 3.4.4
Re: Learn Spam from user spam folder
Well... I have an automated, manual, SPAM and HAM handling on my server. If the user is not content with what the automated system did, he or she (or the other 112 pronouns) can override the system by manually moving the message.
One thing you need to know is that hMailServer DO NOT support individual SPAM profiles - I tried playing with the code and there is a massive lack of support to do it! Partly from hMailServer and partly from the Windows version of SpamAssassin!
So if one user moves a message to SPAM and an other user moves a similar message to HAM ... Well, just hope they are good friends

SørenR.
To understand recursion, you must first understand recursion.
To understand recursion, you must first understand recursion.
Re: Learn Spam from user spam folder
OK, but if the message is already in the spam folder and you have a script that scans the spam folder for spamassassin, then you don't need to do anything. In fact, rescanning messages in spamassassin will return an error "message already un/learned". Rescanning will not make a message "more spammy" or give it any more weight than the first scan.bagu wrote: ↑2023-09-18 18:25I think we misunderstood each other.
I'd like a script, like the one proposed by SorenR, that would copy mails older than 7 days from hmailserver users' spam folders and put them in SA-Learn's SPAM learning folder.
Because I already have a script that scans what I put in HAM and SPAM from spamassassin, but I'm looking for a way for mails left for more than X days in spam folders to be automatically taken into account as spam.
As a result, I manage to provide it with carefully sorted legitimate e-mails, but anything I leave in spam will be effortlessly learn as a spam.
Re: Learn Spam from user spam folder
Ok, it answer my question.SorenR wrote: ↑2023-09-18 18:28Well... I have an automated, manual, SPAM and HAM handling on my server. If the user is not content with what the automated system did, he or she (or the other 112 pronouns) can override the system by manually moving the message.
One thing you need to know is that hMailServer DO NOT support individual SPAM profiles - I tried playing with the code and there is a massive lack of support to do it! Partly from hMailServer and partly from the Windows version of SpamAssassin!
So if one user moves a message to SPAM and an other user moves a similar message to HAM ... Well, just hope they are good friends![]()
I thought it was possible to search directly in users' default "Junk" folders.
Since this isn't the case, and my users don't have the same taste in SPAM, I'd better continue with the manual method

hMailServer 5.6.8 With SpamAssassin 3.4.4
Re: Learn Spam from user spam folder
Whatever you choose man, I've been running this for a long time and once the users are trained in how to move a message in whatever client they are using ... Once they are trained, I don't have to lift a finger! I am seriously NOT worrying about SPAM anymore. I skim through the messages in my SPAM Account (copies of all SPAM coming in) in case I need to put an email on a black- or whitelist, but that's IT. Sometimes I don't look for a weekbagu wrote: ↑2023-09-18 18:45Ok, it answer my question.SorenR wrote: ↑2023-09-18 18:28Well... I have an automated, manual, SPAM and HAM handling on my server. If the user is not content with what the automated system did, he or she (or the other 112 pronouns) can override the system by manually moving the message.
One thing you need to know is that hMailServer DO NOT support individual SPAM profiles - I tried playing with the code and there is a massive lack of support to do it! Partly from hMailServer and partly from the Windows version of SpamAssassin!
So if one user moves a message to SPAM and an other user moves a similar message to HAM ... Well, just hope they are good friends![]()
I thought it was possible to search directly in users' default "Junk" folders.
Since this isn't the case, and my users don't have the same taste in SPAM, I'd better continue with the manual method![]()

SørenR.
To understand recursion, you must first understand recursion.
To understand recursion, you must first understand recursion.