mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Add sieve rules to mail application
This commit is contained in:
parent
da53230cd2
commit
07ab26dd1b
151
mail/templates/default/sieve.edit.xet
Normal file
151
mail/templates/default/sieve.edit.xet
Normal file
@ -0,0 +1,151 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- $Id$ -->
|
||||
<overlay>
|
||||
<template id="mail.sieve.edit" template="" lang="" group="0" version="1.9.001">
|
||||
<grid width="100%">
|
||||
<columns>
|
||||
<column width="100%"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row disabled="!@msg">
|
||||
<description id="msg" class="redItalic"/>
|
||||
</row>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption label="Condition"/>
|
||||
<grid>
|
||||
<columns>
|
||||
<column/>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row class="th">
|
||||
<description value="Match:"/>
|
||||
<menulist>
|
||||
<menupopup id="anyof"/>
|
||||
</menulist>
|
||||
</row>
|
||||
<row class="sieveRowActive">
|
||||
<description value="If from contains:(*)"/>
|
||||
<textbox id="from"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="If to contains:(*)"/>
|
||||
<textbox id="to"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="If subject contains:(*)"/>
|
||||
<textbox id="subject"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="If message size"/>
|
||||
<hbox>
|
||||
<menulist>
|
||||
<menupopup id="gthan"/>
|
||||
</menulist>
|
||||
<textbox id="size"/>
|
||||
<description value="kilobytes"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<description value="If mail header"/>
|
||||
<hbox>
|
||||
<textbox id="field"/>
|
||||
<description value="Contains(*)"/>
|
||||
<textbox id="field_val"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<description value="If mail body message type"/>
|
||||
<hbox>
|
||||
<menulist>
|
||||
<menupopup id="bodytransform"/>
|
||||
</menulist>
|
||||
<description value="Contains(*)"/>
|
||||
<textbox id="field_bodytransform"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<description value="If mail body content / attachment type"/>
|
||||
<hbox>
|
||||
<menulist>
|
||||
<menupopup id="ctype"/>
|
||||
</menulist>
|
||||
<description value="/"/>
|
||||
<textbox blur="for eg.: mpeg" id="field_ctype_val"/>
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<description value="(*) wildcards (*,?) may be used. If you are trying to match * or ? itself, you must escape them with a backslash (\). If you check "Use regular expressions" you must use valid regular expressions."/>
|
||||
</groupbox>
|
||||
</row>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption label="Action"/>
|
||||
<grid>
|
||||
<columns>
|
||||
<column/>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<radio label="File into:" id="action" options="folder"/>
|
||||
<hbox>
|
||||
<textbox id="action_folder_text"/>
|
||||
<description onclick="javascript:window.open('{folder_select_url}', 'windowName', 'width=400,height=500,toolbar=no,resizable=yes'); return false;"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<radio label="Forward to address:" id="action" options="address"/>
|
||||
<hbox>
|
||||
<textbox id="action_address_text"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<radio label="Send a reject message:" id="action" options="reject"/>
|
||||
<textbox multiline="true" id="action_reject_text"/>
|
||||
</row>
|
||||
<row>
|
||||
<radio label="Discard message" id="action" options="discard"/>
|
||||
<description/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</groupbox>
|
||||
</row>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption label="Extended"/>
|
||||
<grid>
|
||||
<columns>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<checkbox label="Check message against next rule also" id="continue"/>
|
||||
</row>
|
||||
<row>
|
||||
<checkbox label="Keep a copy of the message in your inbox" id="keep"/>
|
||||
</row>
|
||||
<row>
|
||||
<checkbox label="Use regular expressions (see wikipedia for information on POSIX regular expressions)" id="regexp"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</groupbox>
|
||||
</row>
|
||||
<row>
|
||||
<hbox>
|
||||
<button statustext="Saves this rule" label="Save" id="button[save]"/>
|
||||
<button statustext="Applies the changes made" label="Apply" id="button[apply]"/>
|
||||
<hbox align="right">
|
||||
<button label="Delete" id="button[delete]"/>
|
||||
<button label="Cancel" id="button[cancel]"/>
|
||||
</hbox>
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</template>
|
||||
</overlay>
|
65
mail/templates/default/sieve.editVacation.xet
Normal file
65
mail/templates/default/sieve.editVacation.xet
Normal file
@ -0,0 +1,65 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- $Id$ -->
|
||||
<overlay>
|
||||
<template id="mail.sieve.editVacation" template="" lang="" group="0" version="1.9.001">
|
||||
<grid>
|
||||
<columns>
|
||||
<column/>
|
||||
<column width="100%"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row class="th" valign="top" part="header">
|
||||
<description value="Edit vacation settings"/>
|
||||
<description/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Status:"/>
|
||||
<hbox>
|
||||
<radio label="Active" id="status" options="active"/>
|
||||
<radio label="Deactive" id="status" options="disabled"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Respond to mail sent to:"/>
|
||||
<hbox>
|
||||
<listbox rows="6" options=",,,,,,0"/>
|
||||
<description/>
|
||||
<listbox rows="6" options=",,,,,,0"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Validate selected addresses on submit: "/>
|
||||
<hbox>
|
||||
<radio label="Active" id="check_mail_sent_to" options="active"/>
|
||||
<radio label="Deactive" id="check_mail_sent_to" options="disabled"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Every:"/>
|
||||
<menulist>
|
||||
<menupopup type="select-day" id="days"/>
|
||||
</menulist>
|
||||
</row>
|
||||
<row>
|
||||
<vbox>
|
||||
<description value="With message:"/>
|
||||
<checkbox label="set it as default"/>
|
||||
</vbox>
|
||||
<textbox multiline="true" id="vacation_text"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Forward messages to Separate multiple addresses by comma:"/>
|
||||
<textbox id="vacation_forwards"/>
|
||||
</row>
|
||||
<row>
|
||||
<hbox>
|
||||
<button label="Save" id="button[save]"/>
|
||||
<button label="Apply" id="button[apply]"/>
|
||||
<button label="Cancel" id="button[cancel]"/>
|
||||
</hbox>
|
||||
<description/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</template>
|
||||
</overlay>
|
43
mail/templates/default/sieve.index.xet
Normal file
43
mail/templates/default/sieve.index.xet
Normal file
@ -0,0 +1,43 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- $Id$ -->
|
||||
<overlay>
|
||||
<template id="mail.sieve.index.rows" template="" lang="" group="0" version="1.9.001">
|
||||
<grid width="100%" id="rg" sortable="mail.mail_sieve.ajax_moveRule">
|
||||
<columns>
|
||||
<column/>
|
||||
<column/>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row class="th">
|
||||
<description value="Rule priority position"/>
|
||||
<description value="Status"/>
|
||||
<description value="rules"/>
|
||||
</row>
|
||||
<row class="mail_sieve_$row_count[status]" >
|
||||
<description id="${row}[ruleID]" />
|
||||
<menulist>
|
||||
<menupopup id="${row}[status]" readonly= "true"/>
|
||||
</menulist>
|
||||
<description id="${row}[rules]" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</template>
|
||||
<template id="mail.sieve.index" template="" lang="" group="0" version="1.9.001">
|
||||
<description align="left" id="msg" no_lang="1" span="all" class="message"/>
|
||||
<grid width="100%">
|
||||
<columns>
|
||||
<column width="100%"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<buttononly align="right" label="Add" id="add" onclick="window.open(egw::link('/index.php','menuaction=mail.mail_sieve.edit'),'_blank','dependent=yes,width=600,height=400,scrollbars=yes,status=yes'); return false;"/>
|
||||
</row>
|
||||
<row>
|
||||
<template id="rows"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</template>
|
||||
</overlay>
|
Loading…
Reference in New Issue
Block a user