Forum

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
How could I use different tones, or even no tone at different times
April 4, 2012
10:52 pm
Member
Members
Forum Posts: 4
Member Since:
April 4, 2012
sp_UserOfflineSmall Offline

I've just started using ToneQuilla and I like it. Thanks

I moderate a mailgroup and when I am rostered on I would like to use ToneQuilla to alert me that an email has arrived but when I'm not rostered on I don't want to hear the alert. Now the simple way is to turn the filter on and off but I'd like something better, something more automated.

I've had a google but not really found anything.

Ideally I'd like to set a rule something like "if the day of the week is Wednesday and the time of day is after 13:00 and the time of day is before 18:00pm and the subject contains MODERATE, then play the tune."

I've tried messing with "date is before" and "date is after" but that's not going to cut it.

Anyone have any thoughts?

April 4, 2012
11:02 pm
Admin
Moderators
Forum Posts: 423
Member Since:
July 12, 2008
sp_UserOfflineSmall Offline

When you are talking about issues of a more complex filter search term than stock Thunderbird can handle, then my addon FiltaQuilla is normally your option. "subject CONTAINS moderate" is stock TB, but your date requirements are not. What you need could be specified in 2-4 lines of javascript, and FiltaQuilla allows javascript search terms. Of course you would need to know both javascript as well as something about the Mozilla platform, which is a huge barrier.

April 5, 2012
12:06 am
Member
Members
Forum Posts: 4
Member Since:
April 4, 2012
sp_UserOfflineSmall Offline

I'm not a programmer. I played with basic years ago, I've played with VB, I've learned a little pascal but that was the extent of it. The extent of my Mozilla knowledge is to be happy playing in About:config so yes, I'm up against a huge barrier.

Are you saying this can be done easily by someone who knows both?
If so, I assume you could do so, if you are willing and have the time, how long would it take you and what sort of donation would you want? (I would want it to be available for others to be able to use too)

BTW I'm using the latest TB and Linux but other I know who would want to use it would use windows.

Thanks
Max

April 6, 2012
8:55 am
Admin
Moderators
Forum Posts: 423
Member Since:
July 12, 2008
sp_UserOfflineSmall Offline

The javascript search term that you would use in FiltaQuilla for this is:

let dnow = new Date();
( (dnow.getDay() == 3) && (dnow.getHours() = 13) );

"what sort of donation would you want?" LOL Ok I'll bite: give $1 at the church of your choice on Easter morning.

April 6, 2012
1:55 pm
Member
Members
Forum Posts: 4
Member Since:
April 4, 2012
sp_UserOfflineSmall Offline

Thanks!

But we haven't covered turning it off again at 18:00
Now if I wanted this to occur on Wednesday, Thursday and Friday, how would that look.

I don't make a living from writing code but I assumed you do so I did not want you to think I was asking for something for nothing. Too much of that happens with open source. My church instigated and supports http://www.strawberryjam.net.a....._2012.html so the task is not difficult and I'm happy to put in an extra 10x that.

April 6, 2012
2:08 pm
Admin
Moderators
Forum Posts: 423
Member Since:
July 12, 2008
sp_UserOfflineSmall Offline

Very strange ... looking at the post the middle got truncated, which is why you don't see the 18. Let me try again.

let dnow = new Date();
( (dnow.getDay() == 3) && (dnow.getHours() = 13) );

"Now if I wanted this to occur on Wednesday, Thursday and Friday, how would that look."

replace (dnow.getDay() == 3) with:

((dnow.getDay() == 3) || (dnow.getDay() == 4) || (dnow.getDay() == 5))

"My church instigated and supports ... "

Isn't Hillsong from your neck of the woods? My church does a lot of their stuff. I had to switch from flat picking country to lead so I could participate.

April 6, 2012
2:12 pm
Admin
Moderators
Forum Posts: 423
Member Since:
July 12, 2008
sp_UserOfflineSmall Offline

Nope, still wrong. Let me try in quotes (but don't include the quotes in the real thing):

"let dnow = new Date();"
"( (dnow.getDay() == 3) && (dnow.getHours() = 13) );"

April 6, 2012
2:15 pm
Admin
Moderators
Forum Posts: 423
Member Since:
July 12, 2008
sp_UserOfflineSmall Offline

Let me try to escape the greater than and less than signs:

let dnow = new Date();
( (dnow.getDay() == 3) && (dnow.getHours() < 18) && (dnow.getHours() >= 13) );

April 6, 2012
2:16 pm
Admin
Moderators
Forum Posts: 423
Member Since:
July 12, 2008
sp_UserOfflineSmall Offline

Yep that is now correct.

April 7, 2012
12:07 am
Member
Members
Forum Posts: 4
Member Since:
April 4, 2012
sp_UserOfflineSmall Offline

Great, thanks, I'll have a go after the festival. Probably Monday.

No, Hillsong is on the other side of Australia 5000km+ away. I do Calvary Chapel

Forum Timezone: UTC -8

Most Users Ever Online: 41

Currently Online:
7 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

BigMike: 14

David.P: 10

Jeff Wexler: 9

taa: 8

JPRuehmann: 8

bobkatz: 8

Member Stats:

Guest Posters: 217

Members: 5053

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 7

Topics: 383

Posts: 1228

Newest Members:

GeorgeKex, OlgaBak, CichockiRor, KounthapanyaRor, QLRobert, Daylibum

Administrators: rkent: 423