Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

Can't send email notification with full statistics including rejected and undecided entries (not only accepted/failed ones)

$
0
0

@booch wrote:

Hello,

Before major update with new Notify plugin I had a task with daily email notification with all accepted/rejected/undecided/failed entries. I used digest plugin with appropriate states and it worked fine. After Flexget upgrade I edited my config according to new changes and now it sends email with only accepted and failed entries. My config looks like this

schedules:
  - tasks: 'task1'
    interval:
      hours: 2
  - tasks: 'task2'
    interval:
      hours: 4
  - tasks: 'emailreport'
    schedule:
      hour: 21
...
templates:
  ...
  video:
    digest:
        list: email_list
        state:
          - accepted
          - rejected
          - undecided
          - failed
...
tasks:
  task1:
    template:
      - video
...
  task2:
    template:
      - video
...
  emailreport:
    no_entries_ok: yes
    from_digest:
      list: email_list
      restore_state: yes
    seen: local

    notify:
      task:
        title: "[FLEXGET] Daily report"
        template: custom_html.template
        via:
          - email:
              from: '{? email.email_from ?}'
              to:
                - '{? email.email_to1 ?}'
                - '{? email.email_to2 ?}'
              smtp_host: smtp.gmail.com
              smtp_port: 587
              smtp_username: '{? email.smtp_username ?}'
              smtp_password: '{? email.smtp_password ?}'
              smtp_tls: yes
              html: yes

In the log I get:

2017-01-26 21:00 VERBOSE  details       emailreport     Produced 586 entries.
2017-01-26 21:00 VERBOSE  manipulate    emailreport     Modified 0 entries.
2017-01-26 21:00 VERBOSE  details       emailreport     Summary - Accepted: 0 (Rejected: 1070 Undecided: 586 Failed: 0)
2017-01-26 21:00 WARNING  task          emailreport     Task doesn't have any output plugins, you should add (at least) one!
2017-01-26 21:00 VERBOSE  notify_entry  emailreport     No accepted or failed entries, not sending a notification.

I also tried "list_add" plugin instead of "digest" with "entry_list: email_list" in "emailreport" task instead of 'from_digest' but got same result - only accepted entries were sent.

If I use "entries" event with "[what]: accepted|rejected|failed|undecided" instead of "task" in "notify" plugin then I get hundreds emails for each entry instead of only one email.

Flexget version is 2.9.8
Python version 2.7.12
OS: Ubuntu 16.04

Please help me to archive same goal to send 1 email every day with statistics about not only accepted/failed entries with new notification system.

thanks in advance

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles