-
Event Notifications now can be sent
Posted on May 18th, 2005 No commentsAs of today in ACal you can have event notifications be sent to groups, users, and email addresses. Well technically here’s how it works.
When adding an event and you choose “Alarm: Email”, there is a recipient and message field. The recipient field can contain a mixture of groups, usernames, and raw email addresses seperated by a comma. For example if you wanted to send the event notification to the admin group and another user you could do this:
“Recipient: admin,otheruser”Each recipient is validated. But say what if I type in “admin” and well that happens to be both a group and a username? Well the way it works right now this is how it goes:
- If it’s a group add it to the groups array and go to the next one. Else{
- If it’s a username add it to the users array and go on. Else {
- If it’s a valid email address add it to the emails array and go on
And then some other code goes and gets all the email addresses from the groups and users and adds them to the emails array, then implodes it and sends it off to the alarm bot.
In the future I’ll make this more complicated. So you could do something like this:
“Recipient: group:admin,user:admin,myself@there.tld”
Sort of like variable declarations.
So that and some bug fixes is what I did today in ACal. Other than that I think tomorrow the wxPHP project may start.
Uncategorized Uncategorized


