List Info

Thread: Re: question about sieve script




Re: question about sieve script
user name
2007-03-21 05:31:40
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"] " distlistexample.org">distlistexample.org " {
       ; if header :contains "Subject" "*myname*" {
       ;   redirect " mynameexample.org">mynameexample.org";
}}
else {
  redirect " recipients1example.or"> recipients1example.or"
  redirect " recipients2example.or">recipients2example.or"
  redirect " recipients3example.or">recipients3example.or"
  redirect " recipients4example.or">recipients4example.or"
  fileinto "INBOX";
}


On 3/21/07, bud.golf4 < bud.golf4laposte.net">bud.golf4laposte.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= distlistexample.org"> distlistexample.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&quot;, "Cc&quot;, "Bcc&quot;] " distlistexample.org">distlistexample.org" {
 &nbsp; &nbsp;   ; if header :contains "Subject" "*myname*" {
   ; &nbsp; &nbsp; &nbsp; redirect " mynameexample.org">mynameexample.org";
}}
else {
 &nbsp;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-userskolab.org"> Kolab-userskolab.org
https://kolab.org/mailman/listinfo/kolab-users



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

about | contact  Other archives ( Real Estate discussion Medical topics )