Sieve filter scripts with Kolab (was Re: hello)

Andreas Gungl Andreas.Gungl at osp-dd.de
Wed Apr 28 09:08:23 CEST 2004


On Wednesday 21 April 2004 12:49, gladenko wrote:
> I wanto know how activate siege filter and where and how writing the
> script, where i put the file created in kolab server???

Write your sieve script. Something like:

# Kolab / Kroupware Mailing Liste
if header :contains ["List-Id"] ["kolab-users.kolab.org"]
{
  fileinto "INBOX/kolab";
}
# Spam marked by SpamAssassin or Bogofilter
elsif anyof (header :contains ["X-Spam-Flag"] ["yes"],
             header :contains ["X-Bogosity"] ["yes"])
{
  fileinto "INBOX/Trash";
}

Use this to start sieveshell to upload your script:

# sieveshell --user <your-login> --auth <your-login> <your-server>
> list
> deactivate
> put /<path-to-your-script>/<your-script>
> activate <your-script>
> list
> quit
#

Hope that helps for first steps. For further details please RTFM.

Regards,
Andreas




More information about the users mailing list