Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spamassassin spam learning integration #408

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Kernel/Config/Files/XML/Daemon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,33 @@
</Hash>
</Value>
</Setting>
<Setting Name="Daemon::SchedulerCronTaskManager::Task###SpamAssassinLearn" Required="0" Valid="0" ConfigLevel="100">
<Description Translatable="1">Sends all customer e-mail articles from marked tickets for learning as spam or ham in SpamAssassin. Schedule must be defined in UTC.</Description>
<Navigation>Daemon::SchedulerCronTaskManager::Task</Navigation>
<Value>
<Hash>
<Item Key="TaskName">SpamAssassinLearn</Item>
<Item Key="Schedule">*/10 * * * *</Item> <!-- default: every 10 minutes -->
<Item Key="Module">Kernel::System::Console::Command::Maint::Ticket::SpamAssassinLearn</Item>
<Item Key="Function">Execute</Item>
<Item Key="MaximumParallelInstances">1</Item>
<Item Key="Params">
<Array>
<Item>--host</Item>
<Item>localhost</Item>
<Item>--port</Item>
<Item>783</Item>
<Item>--username</Item>
<Item>mylogin</Item>
<Item>--limit</Item>
<Item>4000</Item>
<Item>--micro-sleep</Item>
<Item>1000</Item>
</Array>
</Item>
</Hash>
</Value>
</Setting>
<Setting Name="Daemon::SchedulerCronTaskManager::Task###MailQueueSend" Required="0" Valid="1" ConfigLevel="100">
<Description Translatable="1">Checks for queued outgoing emails to be sent.</Description>
<Navigation>Daemon::SchedulerCronTaskManager::Task</Navigation>
Expand Down
13 changes: 13 additions & 0 deletions Kernel/Config/Files/XML/Ticket.xml
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,19 @@
</Hash>
</Value>
</Setting>
<Setting Name="Ticket::EventModulePost###9996-LearnSpam" Required="0" Valid="0">
<Description Translatable="1">Marks ticket for learning as spam/ham on moving to/from SpamQueues. Optional ticket state change to NewStateAfterMarkingSpam on marking ticket as spam. Use ::: as queue name separator in SpamQueues and TrashQueues parameters (i.e. Spam1::SubSpam1:::Spam2 for queues Spam1::SubSpam1 and Spam2).</Description>
<Navigation>Core::Event::Ticket</Navigation>
<Value>
<Hash>
<Item Key="Module">Kernel::System::Ticket::Event::TicketLearnSpam</Item>
<Item Key="Event">TicketQueueUpdate</Item>
<Item Key="SpamQueues">Spam</Item>
<Item Key="TrashQueues">Trash:::Trash::Shredder</Item>
<Item Key="NewStateAfterMarkingSpam">removed</Item>
</Hash>
</Value>
</Setting>
<Setting Name="Ticket::EventModulePost###4300-EscalationStopEvents" Required="0" Valid="1">
<Description Translatable="1">Ticket event module that triggers the escalation stop events.</Description>
<Navigation>Core::Event::Ticket</Navigation>
Expand Down
Loading