I am trying to write a recipe that rejects emails that has attachments that are not either pdf or tiff. I found this <br><pre>if header :contains "x-attached"<br> [".exe",".bat",".js",".com",".cmd",".ini",".dll",".bas",".cpl",".drv",".inf",".sys",".pif"] {<br>
discard;<br> stop;<br>}<br><br>in this tutorial <a href="http://wiki.fastmail.fm/index.php?title=SieveRecipes">http://wiki.fastmail.fm/index.php?title=SieveRecipes</a><br></pre><pre><br></pre>
<p>So I tried:</p><p>if header :contains "x-attached"<br> [".tiff",".pdf"] {<br> fileinto "INBOX";<br> stop;<br>} else {<br> reject "Your message was returned because of the attachment type. Only pdf and tiff format allowed";<br>
}</p><p>However, it does not work. The emails get rejected regardless of their attachment type. That is, emails with pdfs and</p><p>tiffs attached get rejected. What am I doing wrong? Any help would be greatly appreciated.</p>
<p>Thanks,</p><p>Richard<br></p><p><br></p>