Page 1 of 1

Filters

Posted: Mon Sep 19, 2016 9:37 am
by andrewf
We have a number of feeds which we “pass” through the Combined Feed plugin which works well. This in turn using the send email plugin, emails are sent with the links once the channel is updated.

However, we placed a number of a keyword items in the filter but it does not appear anything is being filtered as everything seems to be emailed with a huge amount of non relevant information/feeds/articles.

Is there any way we can improve the filters to only keep/send articles that we want?

Re: Filters

Posted: Mon Sep 19, 2016 10:23 am
by support
Filters are a UI thing i.e. Awasu always stores all the items received on a channel, and the filters control what gets shown at any given time. You can see the effect of this by changing a filter's configuration, or adding/removing them.

The SendEmail hook gets called whenever new feed items are received, and so what's happening in the UI doesn't affect it.

One way to work around this might be to write a plugin channel that monitors the Awasu channel of interest, and synthesizes a new feed that contains only the items you're interested in, and then attach the SendEmail hook to that. SendEmail will still get called for every feed item received on the channel, but it will have been pre-filtered to contain only the stuff you want.

It would also be possible to write an external script to monitor Awasu content, via the Awasu API, and send out emails when it sees new content of interest.

Depending on how much content you have, and how much you want to do with it, it might be worthwhile using Awasu to store all the incoming data in an external database e.g. MySQL or SQL Server. It's more work up-front, but it opens up a lot of possibilities in terms of what you would be able to do with the data.

Re: Filters

Posted: Fri Sep 23, 2016 6:21 am
by kevotheclone
What about specifying your keywords in an Awasu Search Channel and then attaching the Send Email Channel Hook to the newly-created Search Channel?

You can even use SMTP-to-SMS gateways to send text messages to plain old cell phones; here's a partial list of US-based SMTP-to-SMS gateways:
https://en.wikipedia.org/wiki/SMS_gateway#Email_clients

Re: Filters

Posted: Fri Sep 23, 2016 7:04 am
by support
Sigh... I didn't think of that - you want a job? :roll:

I s'pose it's indicative of the power of Awasu that you can combine the features together in a way that even the author didn't think of :wall:

Re: Filters

Posted: Fri Sep 23, 2016 7:30 am
by kevotheclone
support wrote:Sigh... I didn't think of that - you want a job? :roll:

I'm just happy to help. :)

Pairing Search Channel's with the Send Email Channel Hook was one of my favorite combo features of Awasu 8+ years ago, and it remains so to this day.

support wrote:I s'pose it's indicative of the power of Awasu that you can combine the features together in a way that even the author didn't think of :wall:


Another option?
Although Channel Filters are generally a "UI thing", a Channel Filter can also serve as the data source for a Report; so one could create a Report based upon a Channel Filter and then have the Report emailed. While this technically does not use the Send Email Channel Hook, you may still achieve the same desired outcome.

Sometimes, the "power of Awasu" seems infinite! :D Thanks again for providing all that power at such a reasonable cost. :clap:
Zzz... :asleep: for the night...