Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Add support for Rmilter/Rspamd #23

Merged
merged 2 commits into from
May 24, 2017
Merged

Conversation

mundschenk-at
Copy link
Contributor

  • detects both spam and viruses
  • no need for configuration

Copy link
Member

@tonioo tonioo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job 👍

spam_result = m.group("result")
if dom is not None and dom in self.domains:
if spam_result == "INFECTED":
self.inc_counter(dom, 'virus')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double quotes please ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Sorry, don't know how those got mixed in again.

if spam_result == "INFECTED":
self.inc_counter(dom, 'virus')
elif spam_result in ["SPAM", "SPAMMY"]:
self.inc_counter(dom, 'spam')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@mundschenk-at
Copy link
Contributor Author

@tonioo single quotes fixed.

@tonioo tonioo merged commit f77c656 into modoboa:master May 24, 2017
@mundschenk-at mundschenk-at deleted the rmilter_rspamd branch May 24, 2017 09:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants