-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: added enotify and mime as valid options for ui
- Loading branch information
1 parent
68616c2
commit 6ee0303
Showing
2 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version='1.0' standalone='yes'?> | ||
|
||
<extension name="enotify"> | ||
<command name="notify"> | ||
<parameter type="tag" name="from" occurrence="optional"> | ||
<parameter type="string" name="from-address" /> | ||
</parameter> | ||
|
||
<parameter type="tag" name="importance" regex="(1|2|3)" occurrence="optional" /> | ||
|
||
<parameter type="tag" name="options" occurrence="optional"> | ||
<parameter type="stringlist" name="option-strings" /> | ||
</parameter> | ||
|
||
<parameter type="tag" name="message" occurrence="optional"> | ||
<parameter type="string" name="message-text" /> | ||
</parameter> | ||
|
||
<parameter type="string" name="method" /> | ||
</command> | ||
|
||
<test name="valid_notify_method"> | ||
<parameter type="stringlist" name="notification-uris" /> | ||
</test> | ||
|
||
<test name="notify_method_capability"> | ||
<parameter type="string" name="notification-uri" /> | ||
<parameter type="string" name="notification-capability" /> | ||
<parameter type="stringlist" name="key-list" /> | ||
</test> | ||
|
||
<modifier name="encodeurl" /> | ||
</extension> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version='1.0' standalone='yes'?> | ||
|
||
<extension name="mime"> | ||
<command name="foreverypart"> | ||
<parameter type="string" name="name" occurrence="optional" /> | ||
<block /> | ||
</command> | ||
|
||
<command name="break"> | ||
<parameter type="string" name="name" occurrence="optional" /> | ||
</command> | ||
|
||
<tagged-argument extends="(header|address|exists)"> | ||
<parameter type="tag" name="mime" regex="mime" occurrence="optional" /> | ||
</tagged-argument> | ||
<tagged-argument extends="(header|address|exists)"> | ||
<parameter type="tag" name="anychild" regex="anychild" occurrence="optional" /> | ||
</tagged-argument> | ||
<tagged-argument extends="(header)"> | ||
<parameter type="tag" name="type" occurrence="optional" /> | ||
</tagged-argument> | ||
<tagged-argument extends="(header)"> | ||
<parameter type="tag" name="subtype" occurrence="optional" /> | ||
</tagged-argument> | ||
<tagged-argument extends="(header)"> | ||
<parameter type="tag" name="contenttype" occurrence="optional" /> | ||
</tagged-argument> | ||
<tagged-argument extends="(header)"> | ||
<parameter type="tag" name="param" regex="param" occurrence="optional"> | ||
<parameter type="stringlist" name="param-list" /> | ||
</parameter> | ||
</tagged-argument> | ||
<tagged-argument extends="(header|address|exists)"> | ||
<parameter type="stringlist" name="header-names" /> | ||
</tagged-argument> | ||
<tagged-argument extends="(header)"> | ||
<parameter type="stringlist" name="key-list" /> | ||
</tagged-argument> | ||
|
||
<action name="replace"> | ||
<parameter type="tag" name="mime" regex="mime" occurrence="optional" /> | ||
<parameter type="string" name="subject" occurrence="optional" /> | ||
<parameter type="string" name="from" occurrence="optional" /> | ||
<parameter type="string" name="replacement" /> | ||
</action> | ||
|
||
<action name="enclose"> | ||
<parameter type="string" name="subject" occurrence="optional" /> | ||
<parameter type="stringlist" name="headers" occurrence="optional" /> | ||
<parameter type="string" name="text" /> | ||
</action> | ||
|
||
<action name="extracttext"> | ||
<parameter type="tag" name="first" regex="first" occurrence="optional" /> | ||
<parameter type="number" name="number" occurrence="optional" /> | ||
<parameter type="string" name="varname" /> | ||
</action> | ||
</extension> |