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

List:       kolab-users
Subject:    Re: question about sieve script
From:       "Alain Spineux" <aspineux () gmail ! com>
Date:       2007-03-21 10:31:40
Message-ID: 71fe4e760703210331s20cd09b2u5789b85e2ad532eb () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Sievescript is ran at delivery time.
But distribution list have no mailbox, then their is no delivery.
Distribution list is just a ldap object that postfix use to "duplicate" the
emails to
multiple addresses that are then delivered into local cyrus mailbox.

You can what you want by simulating a distribution list inside a sieve
script :

if header :contains ["To", "Cc", "Bcc"] "distlist@example.org" {
        if header :contains "Subject" "*myname*" {
          redirect "myname@example.org";
}}
else {
  redirect "recipients1@example.or"
  redirect "recipients2@example.or"
  redirect "recipients3@example.or"
  redirect "recipients4@example.or"
  fileinto "INBOX";
}


On 3/21/07, bud.golf4 <bud.golf4@laposte.net> wrote:
>
> hello all,
>
> one question, how can i put a sieve script in a distribution
> list ??
>
> is it possible?
> this command failed with a distribution list:
> /kolab/bin/sieveshell --user=distlist@example.org
> --authname=manager localhost
>
> the reason is i want to filter when a message arrive in a dist
> list, if there is the name of the recipient in the subject
> only it and the person in charge of the service can receive
> the mail, like this:
>
> if header :contains ["To", "Cc", "Bcc"] "distlist@example.org" {
>         if header :contains "Subject" "*myname*" {
>           redirect "myname@example.org";
> }}
> else {
>   fileinto "INBOX";
> }
>
> how can i do this?
> thanks for your help.
>
> Envoyez vos cartes de voeux depuis www.laposte.net
> Elles seront ensuite distribuées par le facteur : pratique et malin !
>
> _______________________________________________
> Kolab-users mailing list
> Kolab-users@kolab.org
> https://kolab.org/mailman/listinfo/kolab-users
>



-- 
--
Alain Spineux
aspineux gmail com
May the sources be with you

[Attachment #5 (text/html)]

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 \
&quot;duplicate&quot; 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 [&quot;To&quot;, \
&quot;Cc&quot;, &quot;Bcc&quot;] &quot;<a \
href="mailto:distlist@example.org">distlist@example.org </a>&quot; \
{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if header :contains \
&quot;Subject&quot; &quot;*myname*&quot; \
{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;redirect &quot;<a \
href="mailto:myname@example.org">myname@example.org</a>&quot;;<br>}}<br>else \
{<br>&nbsp; redirect &quot;<a href="mailto:recipients1@example.or"> \
recipients1@example.or</a>&quot;<br>&nbsp; redirect &quot;<a \
href="mailto:recipients2@example.or">recipients2@example.or</a>&quot;<br> &nbsp; \
redirect &quot;<a href="mailto:recipients3@example.or">recipients3@example.or</a>&quot;<br>
 &nbsp; redirect &quot;<a \
href="mailto:recipients4@example.or">recipients4@example.or</a>&quot;<br> &nbsp; \
fileinto &quot;INBOX&quot;;<br>}<br><br><br><div><span class="gmail_quote">On \
3/21/07, <b class="gmail_sendername">bud.golf4</b> &lt;<a \
href="mailto:bud.golf4@laposte.net">bud.golf4@laposte.net</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;"> 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 [&quot;To&quot;, \
&quot;Cc&quot;, &quot;Bcc&quot;] &quot;<a \
href="mailto:distlist@example.org">distlist@example.org</a>&quot; \
{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if header :contains \
&quot;Subject&quot; &quot;*myname*&quot; { \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;redirect &quot;<a \
href="mailto:myname@example.org">myname@example.org</a>&quot;;<br>}}<br>else \
{<br>&nbsp;&nbsp;fileinto &quot;INBOX&quot;;<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>



_______________________________________________
Kolab-users mailing list
Kolab-users@kolab.org
https://kolab.org/mailman/listinfo/kolab-users


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

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