thp / urlwatch

Watch (parts of) webpages and get notified when something changes via e-mail, on your phone or via other means. Highly configurable.
https://thp.io/2008/urlwatch/
Other
2.79k stars 350 forks source link

urlwatch 2.28: html: separate: true not sending separate emails #818

Open jpiszcz opened 2 months ago

jpiszcz commented 2 months ago

I am testing the 'separate' feature with 2.28: https://github.com/thp/urlwatch/blob/17d02c44e909b719b2b050b1c67cdbcf7d5fd0d8/docs/source/configuration.rst#L108

However, I am still receiving a single email that contains 4 changes: 4 changes: Camel Camel Camel, CNN1, CNN2, CNN3

Using the following setting:

  html:
    diff: unified
    separate: true
Jamstah commented 1 month ago

What reporters do you have enabled? Are you using the email reporter?

You could try putting the separate option under the email section instead of the html section, if that fixes it then we should update the doc.

If its still not working, can you share you config file? (don't forget to redact any credentials)

jpiszcz commented 1 month ago

Tested and it did not work (all 3 changes were in the same email)

3 changes: test file, test2, test3

display:
  error: true
  new: true
  unchanged: false
report:
  email:
    enabled: true
    from: '##########@##########.com'
    html: true
    separate: true
    method: smtp
    sendmail:
      path: sendmail
    smtp:
      host: localhost
      auth: false
      keyring: false
      port: 25
      starttls: true
    subject: '{count} changes: {jobs}'
    to: '################@##############.com'
  html:
    diff: unified
  mailgun:
    api_key: ''
    domain: ''
    enabled: false
    from_mail: ''
    from_name: ''
    subject: '{count} changes: {jobs}'
    to: ''
  pushbullet:
    api_key: ''
    enabled: false
  pushover:
    app: ''
    device: ''
    enabled: false
    sound: spacealarm
    user: ''
  stdout:
    color: true
    enabled: true
  telegram:
    bot_token: ''
    chat-id: ''
    enabled: false
  text:
    details: true
    footer: true
    line_length: 75
job_defaults:
  all:
    timeout: 60
  url:
    ignore_connection_errors: true
    ignore_timeout_errors: true
    ignore_http_error_codes: 5xx
  headers:
    User-Agent: #########################