From kevin at kdab.net Wed Sep 17 12:47:44 2008
From: kevin at kdab.net (Kevin Ottens)
Date: Wed, 17 Sep 2008 12:47:44 +0200
Subject: Extension proposed to handle advanced alarms
Message-ID: <200809171247.50557.kevin@kdab.net>
Hello,
In order to be able to support advanced alarm in Kontact over Kolab storage, I
had to extend the kolab format to store more information. For now this
extension is only implemented in the enterprise4 branch, but I think it'll
probably hit trunk at one point.
The extension basically adds a new element named "advanced-alarms" which
contains a list of "alarm" elements. Each "alarm" element has a mandatory
"type" property whose value can be "display", "audio", "procedure" or "email".
So for instance it'll have the following form:
-------------------------------------
...
...
-------------------------------------
Each alarm type has a different role:
- "display" displays a message to the user when the alarm is triggered;
- "audio" plays an audio file when the alarm is triggered;
- "procedure" executes a program when the alarm is triggered;
- "email" sends an email when the alarm is triggered.
Then each alarm can have the following sub elements to specify when it is
triggered:
- "start-offset", to set how many minutes from the event beginning the alarm
should trigger, it's relative so negative values are allowed;
- "end-offset", to set how many minutes from the event end the alarm should
trigger, it's relative so negative values are allowed;
- "repeat-count", to set how many times an alarm should be repeated after the
first time it got triggered;
- "repeat-interval", to set the amount of time between to repetition of the
alarm.
So for instance, for an alarm first triggered ten minutes before the event,
and then triggered again five times every two minutes, it'll have the
following form:
-------------------------------------
-10
5
2
...
-------------------------------------
Each alarms will also have sub elements depending on their type:
- "display" type, has a "text" sub-element to specify the text displayed to
the user when the alarm is triggered:
-------------------------------------
...
Time to leave!
-------------------------------------
- "audio" type, has a "file" sub-element to specify the audio file to be
played when the alarm is triggered;
-------------------------------------
...
/path/to/some/music.ogg
-------------------------------------
- "procedure" type, has a "program" sub-element to specify the program to be
launched when the alarm is triggered, it also has an "arguments" sub-element
to specify arguments to be passed to the program when invoked;
-------------------------------------
...
/usr/bin/xmessage
Time to leave
-------------------------------------
- "email" type is the most complex and has the following sub-elements:
* "addresses" which contains a set of "address" sub-elements describing
who will receive the mail (in name+email format);
* "subject" which gives the subject of the mail;
* "mail-text" which gives the pure text content of the mail;
* "attachments" which contains a set of "attachment" sub-elements giving
the path to a file to attach to the mail.
-------------------------------------
...
First User <user1 at foo.com>
Second User <user2 at foo.com>
We're about to be late
It's really about time we leave!
/path/to/a/scary-picture.jpg
/path/to/another/scary-picture.png
-------------------------------------
It should be about it for this Kontact extension. Comments are welcome.
Thanks for your attention.
Regards.
--
Kevin Ottens, kevin at kdab.net
Klar?lvdalens Datakonsult AB, Platform-independent software solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://kolab.org/pipermail/kolab-format/attachments/20080917/675a6729/attachment.bin
From wrobel at pardus.de Fri Sep 19 12:51:14 2008
From: wrobel at pardus.de (Gunnar Wrobel)
Date: Fri, 19 Sep 2008 12:51:14 +0200
Subject: Extension proposed to handle advanced alarms
In-Reply-To: <200809171247.50557.kevin@kdab.net>
References: <200809171247.50557.kevin@kdab.net>
Message-ID: <20080919125114.43964jmbaincr6yo@webmail.pardus.de>
Quoting Kevin Ottens :
> Hello,
>
> In order to be able to support advanced alarm in Kontact over Kolab
> storage, I
> had to extend the kolab format to store more information. For now this
> extension is only implemented in the enterprise4 branch, but I think it'll
> probably hit trunk at one point.
>
> The extension basically adds a new element named "advanced-alarms" which
> contains a list of "alarm" elements. Each "alarm" element has a mandatory
> "type" property whose value can be "display", "audio", "procedure"
> or "email".
>
> So for instance it'll have the following form:
> -------------------------------------
>
>
> ...
>
>
> ...
>
>
> -------------------------------------
>
> Each alarm type has a different role:
> - "display" displays a message to the user when the alarm is triggered;
> - "audio" plays an audio file when the alarm is triggered;
> - "procedure" executes a program when the alarm is triggered;
> - "email" sends an email when the alarm is triggered.
>
> Then each alarm can have the following sub elements to specify when it is
> triggered:
> - "start-offset", to set how many minutes from the event beginning the alarm
> should trigger, it's relative so negative values are allowed;
> - "end-offset", to set how many minutes from the event end the alarm should
> trigger, it's relative so negative values are allowed;
> - "repeat-count", to set how many times an alarm should be repeated
> after the
> first time it got triggered;
> - "repeat-interval", to set the amount of time between to repetition of the
> alarm.
>
> So for instance, for an alarm first triggered ten minutes before the event,
> and then triggered again five times every two minutes, it'll have the
> following form:
> -------------------------------------
>
> -10
> 5
> 2
> ...
>
> -------------------------------------
>
> Each alarms will also have sub elements depending on their type:
> - "display" type, has a "text" sub-element to specify the text displayed to
> the user when the alarm is triggered:
> -------------------------------------
>
> ...
> Time to leave!
>
> -------------------------------------
>
> - "audio" type, has a "file" sub-element to specify the audio file to be
> played when the alarm is triggered;
> -------------------------------------
>
> ...
> /path/to/some/music.ogg
>
> -------------------------------------
>
> - "procedure" type, has a "program" sub-element to specify the program to be
> launched when the alarm is triggered, it also has an "arguments" sub-element
> to specify arguments to be passed to the program when invoked;
> -------------------------------------
>
> ...
> /usr/bin/xmessage
> Time to leave
>
> -------------------------------------
>
> - "email" type is the most complex and has the following sub-elements:
> * "addresses" which contains a set of "address" sub-elements describing
> who will receive the mail (in name+email format);
> * "subject" which gives the subject of the mail;
> * "mail-text" which gives the pure text content of the mail;
> * "attachments" which contains a set of "attachment" sub-elements giving
> the path to a file to attach to the mail.
> -------------------------------------
>
> ...
>
> First User <user1 at foo.com>
> Second User <user2 at foo.com>
>
> We're about to be late
> It's really about time we leave!
>
> /path/to/a/scary-picture.jpg
> /path/to/another/scary-picture.png
>
>
> -------------------------------------
>
> It should be about it for this Kontact extension. Comments are welcome.
Sounds interesting. Does Outlook support such a feature?
In any case I don't think it would be something we should have in the
core specification as this require a good deal of additional
functionality in the clients. Concerning Horde I can say that there is
no support for something like this at the moment.
We should in any case really start to document the client specific
Kolab Format extensions in the Kolab wiki. I hope I'll get to that soon.
Cheers,
Gunnar
>
> Thanks for your attention.
>
> Regards.
> --
> Kevin Ottens, kevin at kdab.net
> Klar?lvdalens Datakonsult AB, Platform-independent software solutions
>
--
______ http://kdab.com _______________ http://kolab-konsortium.com _
p at rdus Kolab work is funded in part by KDAB and the Kolab Konsortium
____ http://www.pardus.de _________________ http://gunnarwrobel.de _
E-mail : p at rdus.de Dr. Gunnar Wrobel
Tel. : +49 700 6245 0000 Bundesstrasse 29
Fax : +49 721 1513 52322 D-20146 Hamburg
--------------------------------------------------------------------
>> Mail at ease - Rent a kolab groupware server at p at rdus <<
--------------------------------------------------------------------
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.