issues with email filter

Forum for questions and support relating to the 1.30.x releases only.
Post Reply
rainer300
Posts: 3
Joined: Tue Nov 08, 2016 12:41 pm

issues with email filter

Post by rainer300 » Tue Nov 08, 2016 12:48 pm

Hello,

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 zmfilter.pl 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 zmfilter.pl (every 5 Minutes) i receive a new email which includes an older event.
It seems, that the script zmfilter.pl selects allways the newest event which has not been sended by email.

Any help to this?
Thanks in advance
Last edited by rainer300 on Sat Nov 12, 2016 9:35 am, edited 1 time in total.

Wil
Posts: 7
Joined: Wed Oct 26, 2016 10:13 am

Re: issues with email filter

Post by Wil » Wed Nov 09, 2016 9:31 am

I've got this settings working just fine, if it can help...
Capture.JPG
Capture.JPG (39.72 KiB) Viewed 2195 times
Did you try to sort by <Asc> ?

rainer300
Posts: 3
Joined: Tue Nov 08, 2016 12:41 pm

Re: issues with email filter

Post by rainer300 » Thu Nov 10, 2016 5:56 pm

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.
Attachments
pic.jpg
pic.jpg (43.12 KiB) Viewed 2155 times

rainer300
Posts: 3
Joined: Tue Nov 08, 2016 12:41 pm

Re: issues with email filter

Post by rainer300 » Sat Nov 12, 2016 9:45 am

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?
Thanks.

B F
Posts: 29
Joined: Sat May 05, 2012 5:06 pm

Re: issues with email filter

Post by B F » Mon Nov 14, 2016 7:54 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests