[prev in list] [next in list] [prev in thread] [next in thread] 

List:       info-cyrus
Subject:    Re: Cyrus - Postfix - redirect mails from a special sender domain
From:       "Walter Willmertinger" <willmis () gmail ! com>
Date:       2006-06-23 7:11:11
Message-ID: 8785a8f60606230011n781fc470g3718261f947d3671 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thank you for your hints!
Do you have a place to read about all this syntax and functions, so I can
improve my knowledge about sieve and its possibilities

Best regards, Walter

P.S. By the way, is it possible to call a perl script paramtrized with the
mail data?

On 6/22/06, Kjetil Torgrim Homme <kjetilho@ifi.uio.no> wrote:
>
> On Thu, 2006-06-22 at 10:59 +0200, Sylvain MEDEOT wrote:
> > Here is what I am using...
> >
> > if allof (address :contains ["From","FROM"] "extspec.de") {
> >      redirect "myuserlist@mylocaldmain.de";
> > }
>
> just picking some Sieve nits, I hope you don't mind.
>
> the header field name is case insensitive, so you don't have to specify
> both "From" and "FROM" -- all variants will be checked anyway.  also,
> allof is superfluous here since there is only one test.  finally, in
> this case I would prefer :matches for more exact matching, e.g.,
>
>   From: Some One <nextspec.detritus@example.com>
>
> would return true for the above test.  so I suggest:
>
>   if address :matches "From" "*@extspec.de" {
>     ...
>   }
>
> --
> Kjetil T.
>
>
>


-- 
MfG

Walter Willmertinger
Auenstr. 22
82194 Groebenzell

[Attachment #5 (text/html)]

Thank you for your hints!<br>Do you have a place to read about all this syntax and \
functions, so I can improve my knowledge about sieve and its \
possibilities<br><br>Best regards, Walter<br><br>P.S. By the way, is it possible to \
call a perl script paramtrized with the mail data? <br><br><div><span \
class="gmail_quote">On 6/22/06, <b class="gmail_sendername">Kjetil Torgrim Homme</b> \
&lt;<a href="mailto:kjetilho@ifi.uio.no">kjetilho@ifi.uio.no</a>&gt; \
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> On Thu, 2006-06-22 at \
10:59 +0200, Sylvain MEDEOT wrote:<br>&gt; Here is what I am using...<br>&gt;<br>&gt; \
if allof (address :contains [&quot;From&quot;,&quot;FROM&quot;] &quot;<a \
href="http://extspec.de">extspec.de</a>&quot;) { \
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;redirect &quot;<a \
href="mailto:myuserlist@mylocaldmain.de">myuserlist@mylocaldmain.de</a>&quot;;<br>&gt; \
}<br><br>just picking some Sieve nits, I hope you don't mind.<br><br>the header field \
name is case insensitive, so you don't have to specify <br>both &quot;From&quot; and \
&quot;FROM&quot; -- all variants will be checked anyway.&nbsp;&nbsp;also,<br>allof is \
superfluous here since there is only one test.&nbsp;&nbsp;finally, in<br>this case I \
would prefer :matches for more exact matching,  e.g.,<br><br>&nbsp;&nbsp;From: Some \
One &lt;<a href="mailto:nextspec.detritus@example.com">nextspec.detritus@example.com</a>&gt;<br><br>would \
return true for the above test.&nbsp;&nbsp;so I suggest:<br><br>&nbsp;&nbsp;if \
address :matches &quot;From&quot; &quot;*@ <a \
href="http://extspec.de">extspec.de</a>&quot; \
{<br>&nbsp;&nbsp;&nbsp;&nbsp;...<br>&nbsp;&nbsp;}<br><br>--<br>Kjetil \
T.<br><br><br></blockquote></div><br><br clear="all"><br>-- <br>MfG<br><br>Walter \
Willmertinger<br>Auenstr. 22<br>82194 Groebenzell<br>



----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic