I suppose theoretically a Spamassassin plugin could be developed to handle this task, but I seriously doubt that is the most effective approach. I believe you should evaluate this situation within the context of your mail delivery system, not the spam scanning context.
The question you really are asking is not about "what did SA think of the messages" but more: what did the mail-handler do with the messages. So explore what your mail handler options are, and if they don't suit you then explore what you can do to/with/inside the mail system itself. If you can't get the count-keeping and notice-writing to work on the fly while mail is being processed, maybe an after-the-fact application can count items-per-folder and write the users a note saying "you have N spam items that are Y days old" perhaps. >>> TWR <tra...@lhtc.net> 02/03/09 10:50 AM >>> Point well taken. Spamassassin is scanning the email, qmail-scanner does the labeling as "spam" and mailfilter is then shooting it email to the spam folder. I was hoping there was a way that spamassassin could log that user a received x number of spam and then notify the recipient that the email had been blocked as such. From my understanding there is no option available short of writing a program. Would this be correct? Kevin Parris-2 wrote: > > Spamassassin did not put the message in the spam folder. SA does not know > if the item is going to be put in a folder (spam or otherwise) or tossed > into the bit bucket. SA doesn't even, necessarily, actually know who the > item is to - or which of possible multiple recipients might want to be > notified - thus there is no way it could undertake such notification. > > In some situations there may be a dozen different instances of SA running > in high-volume load-balancing service configurations, and each one of them > might process one or more items for each potential recipient every day - > would your end-user want to see a dozen different notices about how many > spam items were sent to them, based on how they flowed through the various > paths? > > The application that actually made the choice to store the item in the > folder has responsibility for notifying about what it has done. > All Spamassassin does is analyze items and assign a score. It does not > block email. It does not deposit email in folders. > Other software does things with the messages and has opportunity to > generate notifications about the actions taken. > >>>> TWR <tra...@lhtc.net> 02/03/09 9:02 AM >>> > > I am running qmail with spamassassin so that any message flagged as 'spam' > is > deposited into a users 'spam' folder. The user has to manually login to > their webmail.domain.com spam folder in order to view these messages. Is > there a way for spamassassin to notify the end user once a day that > (x)number of spam messages has been quarantined. Perhaps the message > could > include the subject line and contain a hyperlink to their webmail based > spam > folder.