Koozali.org: home of the SME Server

example of a sieve script?

Offline detlevp

  • ***
  • 76
  • +0/-0
example of a sieve script?
« on: June 30, 2014, 03:56:49 PM »
Hello,

I have installed at the following documentation Dovecot and Sieve on my SME Server 8.1. On the same server running eGroupware. In the module FeLaMiMail (Mailclient) I could create rules for Sieve, but they are not saved. Now I wanted to create server rules in SME System, but do not know where I need to store these and how such the script looks like. Can anyone give me a example script here?

List Service:
sieve=service
TCPPort=4190
access=private
status=enabled

Are this correct?

Thank and greeting
Detlev

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: example of a sieve script?
« Reply #1 on: July 01, 2014, 04:19:53 AM »
detlevp

I am surprised that no one has pointed you to the Developers Manual, see
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual
Read it all, but look carefully at
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual#III._How_to_create_an_SME_Server_package_-_step_by_step


Also you should look at
http://wiki.contribs.org/Template_Tutorial
and
http://wiki.contribs.org/Db_command_tutorial
and
http://wiki.contribs.org/DB_Variables_Configuration

To see how sme works, you really need to read the underlying base code.

To fine tune parameters you create custom templates, or use db commands where support exits in the template code.
See the existing templates tree, which you copy to the custom templates tree & modify for your needs, see
/etc/e-smith/templates/

You could create a server manager panel & run your filter code from there (I assume that's something like what you want to do).

Otherwise you could create a cron job & run your filter code automatically at a preset time.

Here is a very basic example of a cron job, search forums etc for more.
http://wiki.contribs.org/Backup_with_dar#Backup_disk_size_limits_workaround
There are also examples further on in that article, re using custom templates to changed backup settings.
These are not applicable to you directly, I refer you to them as examples of how to do it only.

Quote
List Service:
sieve=service
TCPPort=4190
access=private
status=enabled

Not sure exactly what you are asking here, but assuming code support is not already existing in sme server, then you can create suitable custom template (code), that will then allow you to run db commands to set & retrieve that sort of information.

I thought you wanted to run a script from a server manager panel.

There is also a devinfo mailing list, where knowledgable developers exchange queries & info etc about development aspects of sme server, you should subscribe to that list & post your development only queries there.
See
http://lists.contribs.org/mailman/listinfo/

Also you can post you early versions code as a bug to bugzilla, & others will comment on it there.
It's best to post early & often so that fundamental problems or wrong approaches can be picked up & corrected early on in the process.
See
http://bugs.contribs.org/
Register with a valid email address as your Forum login does not work at Bugzilla

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline detlevp

  • ***
  • 76
  • +0/-0
Re: example of a sieve script?
« Reply #2 on: July 01, 2014, 06:01:24 PM »
Hi Janet,

detlevp

I am surprised that no one has pointed you to the Developers Manual, see
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual
Read it all, but look carefully at
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual#III._How_to_create_an_SME_Server_package_-_step_by_step

Many thanks for the long answer at my question. I have read a lot of literatur hier in Forum and Web. I think, you have miss understood my problem. I found no example of script in this technical docs for Sieve.

Regards Detlev

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: example of a sieve script?
« Reply #3 on: July 02, 2014, 01:05:58 AM »
detlevp

My answer was about how to use "behind the scenes methods" to tweak or adjust your sme server

I briefly read the link page you provided, and this link is maybe what you are after
http://sieve.info/

It was on  the Pigeonhole page link from the original site you quoted.

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: example of a sieve script?
« Reply #4 on: July 02, 2014, 09:11:21 AM »
Hi Janet,

Many thanks for the long answer at my question. I have read a lot of literatur hier in Forum and Web. I think, you have miss understood my problem. I found no example of script in this technical docs for Sieve.

Regards Detlev

Since sieve is not part of SME, you should search in other places for configuration examples.. which are not strictly SME related
google will tell you more

Offline detlevp

  • ***
  • 76
  • +0/-0
Re: example of a sieve script?
« Reply #5 on: July 06, 2014, 07:01:55 PM »
Hi janet and Stafano,



Since sieve is not part of SME, you should search in other places for configuration examples.. which are not strictly SME related
google will tell you more

Thank you for your valuable advice. I have looked at the original pages and will employ me intense in the holidays.

greetings Detlev

Offline nicolatiana

  • *
  • 721
  • +0/-0
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.