znuny / Znuny

Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
https://www.znuny.org
GNU General Public License v3.0
343 stars 83 forks source link

Spamassassin spam learning integration #408

Open pboguslawski opened 1 year ago

pboguslawski commented 1 year ago

Proposed change

This mod adds new sysconfig parameter Ticket::EventModulePost###9996-LearnSpam that when enabled allows to mark ticket (using ticket text dynamic field PendingSpamLearningOperation which must exist in system, best as internal dynamic field) for learning as spam or as ham.

SpamQueues value in Ticket::EventModulePost###9996-LearnSpam must contain names of all spam queues (::: separated).

TrashQueues value in Ticket::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 parameter Daemon::SchedulerCronTaskManager::Task###SpamAssassinLearn is enabled and configured in SysConfig.

Type of change

Additional information

Author-Change-Id: IB#1110581

Checklist