Re: [Dovecot] Released Sieve v0.1.11 and ManageSieve v0.11.8 for Dovecot v1.2.3

2009-08-10 Thread Michal Hlavinka
 Hello Dovecot users,

Hi,

 Apart from unfinished development of the date extension, this is a set
 of bug-fix releases. A few portability issues were found, a few
 stupidities were fixed and the ManageSieve proxy now also works with
 TLS. Most notably, the include extension had an issue regarding  the
 expansion of $HOME in the personal include path.

 I've built a project site at: http://pigeonhole.dovecot.org

 Changelog Sieve v0.1.11:

  + Built skeleton implementation for the date extension (RFC5260).
It compiles, but it does not do anything useful yet. Therefore, it
is not part of the default compilation.
  - Fixed ARM portability issues caused by char type not being signed
on that platform. Reading optional operands from a binary would
fail for action side effects. Also, an accidental mixup of an int
return type with bool caused the interpreter to continue on ARM
even though an error occured.
  - Removed direct stdint.h includes to prevent portability issues.
  - Fixed segfault bug in the handling of script open failures.
  - Include: improved user error messages and system log messages.
  - Fixed copy-paste mixup between sieve_after and sieve_before
settings in the LDA Sieve plugin. If only a sieve_after script was
active, nothing would have been executed. Patch by Mike Abbott.
  - Include: fixed a bug in HOME substitution in the sieve_dir path.
Surfaced in ManageSieve.


...

 Have fun testing the new releases and don't hesitate to notify me when
 there are problems.

build process for Sieve fails when --with-unfinished-features option is set:
...
make[2]: Entering directory 
`/home/mihl/myroot/job/cvsf/dovecot/devel/dovecot-1.2.3/dovecot-1.2-
sieve-0.1.11'
make[2]: *** No rule to make target `doc/man/sieve-filter.1', needed by `all-
am'.  Stop.


without this it works.

Regards,
Michal Hlavinka


Re: [Dovecot] Released Sieve v0.1.11 and ManageSieve v0.11.8 for Dovecot v1.2.3

2009-08-10 Thread Wolfgang . Friebel

On Mon, 10 Aug 2009, Michal Hlavinka wrote:


build process for Sieve fails when --with-unfinished-features option is set:
...
make[2]: Entering directory
`/home/mihl/myroot/job/cvsf/dovecot/devel/dovecot-1.2.3/dovecot-1.2-
sieve-0.1.11'
make[2]: *** No rule to make target `doc/man/sieve-filter.1', needed by `all-
am'.  Stop.



I have added a dummy sieve-filter.1 file to get it going. See the 
attachment.


--
Wolfgang Friebel   Deutsches Elektronen-Synchrotron DESY
Phone/Fax:  +49 33762 77372/216Platanenallee 6
Mail: Wolfgang.Friebel AT desy.de  D-15738 Zeuthen  Germany.TH SIEVE-FILTER 1 8 August 2009
.SH NAME
sieve-filter \- Sieve filter for the Dovecot secure IMAP server
.SH SYNOPSIS
sieve-filter
[\fB-c\fR] 
[\fB-m\fR \fIdefault-mailbox\fR]
[\fB-s\fR \fIscript-file\fR]
[\fB-x\fR \fIextension extension ...\fR]
\fIscript-file\fR \fImail-store\fR \fI[dest-mail-store]\fR
.SH DESCRIPTION
.PP
The \fBsieve-filter\fP command is part of the Sieve implementation for the 
Dovecot secure 
IMAP server. Sieve (RFC 5228) is a simple and highly extensible language for 
filtering 
e-mail messages. It can be implemented for any type of mail access protocol, 
mail 
architecture and operating system. The language cannot execute external 
programs and in 
its basic form it does not provide the means to cause infinite loops, making it 
suitable 
for running securely on mail servers where mail users have no permission run 
arbitrary programs.
.PP
Using the \fBsieve-filter\fP command, 
bla bla (to be done)
.SH OPTIONS
.TP 
\fB-c\fP
Force compilation. By default, the compiled binary is stored on disk. When this 
binary is found
during the next execution of \fBsieve-filter\fP and its modification time is 
more recent than the
script file, it is used and the script is not compiled again. This option 
forces the script to be
compiled, thus ignoring any present binary. Refer to \fBsievec\fP(1) for more 
information about 
Sieve compilation.
.TP
\fB-m\fP \fIdefault-mailbox\fP
The mailbox where the keep action stores the message. This is INBOX by 
default.
\fB-s\fP \fIscript-file\fP
Specify additional scripts to be executed before the main script. Multiple 
\fB-s\fP arguments are
allowed and the specified scripts are executed sequentially in the order 
specified at the command
line.
.TP
\fB-x\fP \fIextension extension ...\fP
Set the available extensions. The parameter is a space-separated list of the 
active extensions. By
prepending the extension identifiers with \fB+\fP or \fB-\fP, extensions can be 
included or excluded
relative to the default set of extensions. If no extensions have a \fB+\fP or 
\fB-\fP prefix, only 
those extensions that are explicitly listed will be enabled. Unknown extensions 
are ignored and a 
warning is produced. By default, all supported extensions are available, except 
for deprecated extensions 
or those that are still under development.

For example \fB-x\fP +imapflags -enotify will enable the deprecated imapflags 
extension along with all
extensions that are available by default, except for the enotify extension.
.SH DEBUG SUPPORT
.PP
To improve script debugging, the Sieve command line tools such as 
\fBsieve-filter\fP support a custom
Sieve language extension called 'vnd.dovecot.debug'. It adds the 
\fBdebug_print\fP command that allows
printing debug messages to \fBstdout\fP. 
.PP
Example:
.PP
require vnd.dovecot.debug;
.PP
if header :contains subject hello {
.PP
  debug_print Subject header contains hello!;
.PP
}
.PP
Other tools like \fBsievec\fP and \fBsieved\fP also recognize the 
vnd.dovecot.debug extension. In contrast,
the actual Sieve plugin for the Dovecot LDA does not allow the use of the debug 
extension. So, keep in mind that 
scripts and compiled binaries that refer to de debug extension will fail to be 
run by the Sieve plugin itself.
.PP
Note that it is not necessary to enable nor possible to disable the 
availability of the debug extension with 
the \fB-x\fP option.
.SH AUTHOR
.PP
The Sieve implementation for Dovecot was written by Stephan Bosch 
step...@rename-it.nl.
.PP
Dovecot was written by Timo Sirainen t...@iki.fi.
.SH SEE ALSO
.BR sievec (1),
.BR sieved (1)



Re: [Dovecot] Released Sieve v0.1.11 and ManageSieve v0.11.8 for Dovecot v1.2.3

2009-08-10 Thread Stephan Bosch

Michal Hlavinka wrote:

Hello Dovecot users,


Hi,



Have fun testing the new releases and don't hesitate to notify me when
there are problems.


build process for Sieve fails when --with-unfinished-features option is set:
...
make[2]: Entering directory 
`/home/mihl/myroot/job/cvsf/dovecot/devel/dovecot-1.2.3/dovecot-1.2-

sieve-0.1.11'
make[2]: *** No rule to make target `doc/man/sieve-filter.1', needed by `all-
am'.  Stop.


Fixed:

http://hg.rename-it.nl/dovecot-1.2-sieve/rev/03cb0e6d4a35

Regards,

Stephan


[Dovecot] Released Sieve v0.1.11 and ManageSieve v0.11.8 for Dovecot v1.2.3

2009-08-07 Thread Stephan Bosch

Hello Dovecot users,

Apart from unfinished development of the date extension, this is a set 
of bug-fix releases. A few portability issues were found, a few 
stupidities were fixed and the ManageSieve proxy now also works with 
TLS. Most notably, the include extension had an issue regarding  the 
expansion of $HOME in the personal include path.


I've built a project site at: http://pigeonhole.dovecot.org

Changelog Sieve v0.1.11:

+ Built skeleton implementation for the date extension (RFC5260).
  It compiles, but it does not do anything useful yet. Therefore, it
  is not part of the default compilation.
- Fixed ARM portability issues caused by char type not being signed
  on that platform. Reading optional operands from a binary would
  fail for action side effects. Also, an accidental mixup of an int
  return type with bool caused the interpreter to continue on ARM
  even though an error occured.
- Removed direct stdint.h includes to prevent portability issues.
- Fixed segfault bug in the handling of script open failures.
- Include: improved user error messages and system log messages.
- Fixed copy-paste mixup between sieve_after and sieve_before
  settings in the LDA Sieve plugin. If only a sieve_after script was
  active, nothing would have been executed. Patch by Mike Abbott.
- Include: fixed a bug in HOME substitution in the sieve_dir path.
  Surfaced in ManageSieve.

Changelog ManageSieve v0.11.8:

- Fixed TLS support for proxying ManageSieve. The protocol state
  machine was incorrect. Also added a check that disables ssl when
  'starttls' is not enabled for the user. This produces a proper
  warning in the log file. There is no such thing as a managesieveS
  protocol which has SSL from the start.




The releases are available as follows:

  Sieve:

http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-sieve-0.1.11.tar.gz
http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-sieve-0.1.11.tar.gz.sig

  ManageSieve (package + patch):

http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-managesieve-0.11.8.tar.gz
http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-managesieve-0.11.8.tar.gz.sig

http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.3-managesieve-0.11.8.diff.gz
http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.3-managesieve-0.11.8.diff.gz.sig




Have fun testing the new releases and don't hesitate to notify me when
there are problems.

Regards,

--
Stephan Bosch
step...@rename-it.nl