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

Use MapItems for summary configuration #19

Open
fxnn opened this issue May 23, 2015 · 0 comments
Open

Use MapItems for summary configuration #19

fxnn opened this issue May 23, 2015 · 0 comments
Labels
Milestone

Comments

@fxnn
Copy link
Owner

fxnn commented May 23, 2015

The following summarizer is malfunctioning:

- summarizer: count
  title: Hosts of Discarded and Junk Mails
  where: {
    allof: {
      tags: {contains: 'mail.log'},
      SYSLOGPROG: {contains: 'dovecot'}
    }
  }
  config: {
    '%{msgid_host}': 'deliver\(%{USER:user}\): sieve: msgid=<%{DATA:msgid_nonhost}@%{IPORHOST:msgid_host}>: marked message to be discarded if not explicitly delivered',
    '%{msgid_host}': "deliver\\(%{USER:user}\\): sieve: msgid=<%{DATA:msgid_nonhost}@%{IPORHOST:msgid_host}>: stored mail into mailbox 'Junk'"
  }

The reason for this is the duplicate key in the config section. Currently, only one of both entries gets processed.

To resolve the problem, we must use YAML maps instead.

@fxnn fxnn added the bug label May 23, 2015
@fxnn fxnn added this to the 1.0.0.M1 milestone May 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant