Merge pull request #5985 from mailcow/feat/improve-sieve-parser
ui: added enotify and mime as valid options for ui
This commit is contained in:
		
						commit
						e398cb91e9
					
				
							
								
								
									
										33
									
								
								data/web/inc/lib/sieve/extensions/enotify.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								data/web/inc/lib/sieve/extensions/enotify.xml
									
									
									
									
									
										Normal file
									
								
							| @ -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> | ||||
							
								
								
									
										58
									
								
								data/web/inc/lib/sieve/extensions/mime.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										58
									
								
								data/web/inc/lib/sieve/extensions/mime.xml
									
									
									
									
									
										Normal file
									
								
							| @ -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> | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Niklas Meyer
						Niklas Meyer