Spamassassin spam learning integration #408
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed change
This mod adds new sysconfig parameter
Ticket::EventModulePost###9996-LearnSpam
that when enabled allows to mark ticket (using ticket text dynamic fieldPendingSpamLearningOperation
which must exist in system, best as internal dynamic field) for learning as spam or as ham.SpamQueues
value inTicket::EventModulePost###9996-LearnSpam
must contain names of all spam queues (:::
separated).TrashQueues
value inTicket::EventModulePost###9996-LearnSpam
must contain names of all trash queues (:::
separated).Ticked is marked for learning as spam (PendingSpamLearningOperation dynamic field set to "spam") when is moved from non-spam queue to spam queue.
Ticked is marked for learning as ham (PendingSpamLearningOperation dynamic field set to "ham") when is moved from spam or trash queue to non-spam, non-trash queue.
When option
NewStateAfterMarkingSpam
is defined, ticket state is changed to specified state after ticket is marked for learning as spam.This mod introduces
otrs.Console.pl Maint::Ticket::SpamAssassinLearn
command (requires https://metacpan.org/pod/Mail::SpamAssassin::Client) to allow sending marked tickets (all customer e-mail messages from ticket) for learning in SpamAssassin service (PendingSpamLearningOperation is deleted from ticket after successfull learning). This task may be executed periodically by application daemon when parameterDaemon::SchedulerCronTaskManager::Task###SpamAssassinLearn
is enabled and configured in SysConfig.Type of change
Additional information
Author-Change-Id: IB#1110581
Checklist