Sievescript is ran at delivery time.<br>But distribution list have no mailbox, then their is no delivery.<br>Distribution list is just a ldap object that postfix use to "duplicate" the emails to<br>multiple addresses that are then delivered into local cyrus mailbox.
<br><br>You can what you want by simulating a distribution list inside a sieve script :<br><br>if header :contains ["To", "Cc", "Bcc"] "<a href="mailto:distlist@example.org">distlist@example.org
</a>" {<br>        if header :contains "Subject" "*myname*" {<br>          redirect "<a href="mailto:myname@example.org">myname@example.org</a>";<br>}}<br>else {<br>  redirect "<a href="mailto:recipients1@example.or">
recipients1@example.or</a>"<br>  redirect "<a href="mailto:recipients2@example.or">recipients2@example.or</a>"<br>
  redirect "<a href="mailto:recipients3@example.or">recipients3@example.or</a>"<br>
  redirect "<a href="mailto:recipients4@example.or">recipients4@example.or</a>"<br>
  fileinto "INBOX";<br>}<br><br><br><div><span class="gmail_quote">On 3/21/07, <b class="gmail_sendername">bud.golf4</b> <<a href="mailto:bud.golf4@laposte.net">bud.golf4@laposte.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hello all,<br><br>one question, how can i put a sieve script in a distribution<br>list ??<br><br>is it possible?<br>this command failed with a distribution list:<br>/kolab/bin/sieveshell --user=<a href="mailto:distlist@example.org">
distlist@example.org</a><br>--authname=manager localhost<br><br>the reason is i want to filter when a message arrive in a dist<br>list, if there is the name of the recipient in the subject<br>only it and the person in charge of the service can receive
<br>the mail, like this:<br><br>if header :contains ["To", "Cc", "Bcc"] "<a href="mailto:distlist@example.org">distlist@example.org</a>" {<br>        if header :contains "Subject" "*myname*" {
<br>          redirect "<a href="mailto:myname@example.org">myname@example.org</a>";<br>}}<br>else {<br>  fileinto "INBOX";<br>}<br><br>how can i do this?<br>thanks for your help.<br><br>Envoyez vos cartes de voeux depuis 
<a href="http://www.laposte.net">www.laposte.net</a><br>Elles seront ensuite distribuées par le facteur : pratique et malin !<br><br>_______________________________________________<br>Kolab-users mailing list<br><a href="mailto:Kolab-users@kolab.org">
Kolab-users@kolab.org</a><br><a href="https://kolab.org/mailman/listinfo/kolab-users">https://kolab.org/mailman/listinfo/kolab-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>--<br>Alain Spineux<br>aspineux gmail com
<br>May the sources be with you<br>