Page 1 of 1

issues with email filter

Posted: Tue Nov 08, 2016 12:48 pm
by rainer300

this is my first post :D
I installed Zoneminder 1.3 and it is working fine.
But i have somme issuses with filtering and sending emails on events.

I did the email setup as discribed in the Wiki and created a filter to send emails on alarm:

- Date/Time greater than or equal to -2 Minutes
- Sort by <Date/Time> <Desc>
- Limit to the <1> results only
- Email details of all matches <is selected>

The sript runs every 5 minutes.

And here ist the problem:
The filter as above selects allways the right event (the newest one, even it was sended by email or not) but i receive more than one email with different events.
That means the first email ist the correct one (with the selected event), but after the next run of (every 5 Minutes) i receive a new email which includes an older event.
It seems, that the script selects allways the newest event which has not been sended by email.

Any help to this?
Thanks in advance

Re: issues with email filter

Posted: Wed Nov 09, 2016 9:31 am
by Wil
I've got this settings working just fine, if it can help...
Capture.JPG (39.72 KiB) Viewed 2189 times
Did you try to sort by <Asc> ?

Re: issues with email filter

Posted: Thu Nov 10, 2016 5:56 pm
by rainer300
Here are my settings, which works fine (shows the right event in zoneminder) but did not send the right event-data (as discribed in my first post).

Sorting by <Asc> will bring the oldest - not the newest - event.

Re: issues with email filter

Posted: Sat Nov 12, 2016 9:45 am
by rainer300
It seems that the zoneminder filter selects and displays the newest event in the web interface but for the step "Email details of all matches" the filter selects allways the newest event from the database which has not yet the "sent" flag (and of course that can be different events).

Any ideas?

Re: issues with email filter

Posted: Mon Nov 14, 2016 7:54 am
by B F
I'm no Zoneminder expert but you could tick "Archive all matches" as well as "Email details of all matches" and then add another line to your filter that says "Archive Status equal to Unarchived Only".

Of course you will then end up with a growing number of "archived" events that will need to be deleted manually or you could create another filter to delete them after say a few days.