Skip to content
Snippets Groups Projects
Commit 64869811 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

Started development of enotify extension.

parent 1f81f1d2
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,22 @@ else
fi
AM_CONDITIONAL(HAVE_DOVECOT_LIBS, test "$have_dovecot_libs" = "yes")
# Extensions under development
#
AC_ARG_WITH(enotify,
[AC_HELP_STRING([--with-enotify], [Build enotify extension (under development) [default=no]])],
if test x$withval = xno || test x$withval = xauto; then
want_enotify=$withval
else
want_enotify=yes
fi,
want_enotify=no)
AM_CONDITIONAL(BUILD_ENOTIFY, test "$want_enotify" = "yes")
#
#
dnl replace relative ../ paths in the file with full paths
eval `cat $dovecotdir/dovecot-config|sed 's,\$(top_builddir)/,$dovecotdir/,g'`
......@@ -69,6 +85,7 @@ src/lib-sieve/plugins/copy/Makefile
src/lib-sieve/plugins/include/Makefile
src/lib-sieve/plugins/body/Makefile
src/lib-sieve/plugins/variables/Makefile
src/lib-sieve/plugins/enotify/Makefile
src/plugins/Makefile
src/plugins/lda-sieve/Makefile
src/sieve-bin/Makefile
......
SUBDIRS = vacation subaddress comparator-i-ascii-numeric relational regex imapflags copy include body variables
if BUILD_ENOTIFY
ENOTIFY = enotify
endif
SUBDIRS = \
vacation \
subaddress \
comparator-i-ascii-numeric \
relational \
regex \
imapflags \
copy \
include \
body \
variables \
$(ENOTIFY)
noinst_LTLIBRARIES = libsieve_ext_enotify.la
AM_CPPFLAGS = \
-I../../ \
-I$(dovecot_incdir) \
-I$(dovecot_incdir)/src/lib \
-I$(dovecot_incdir)/src/lib-mail \
-I$(dovecot_incdir)/src/lib-storage
libsieve_ext_enotify_la_SOURCES = \
ext-enotify.c
/* Copyright (c) 2002-2008 Dovecot Sieve authors, see the included COPYING file
*/
/* Extension enotify
* ------------------
*
* Authors: Stephan Bosch
* Specification: draft-ietf-sieve-notify-12.txt
* Implementation: skeleton
* Status: under development
*
*/
#include <stdio.h>
#include "sieve-common.h"
#include "sieve-code.h"
#include "sieve-extensions.h"
#include "sieve-actions.h"
#include "sieve-commands.h"
#include "sieve-validator.h"
#include "sieve-generator.h"
#include "sieve-interpreter.h"
#include "sieve-result.h"
/*
* Extension
*/
static bool ext_enotify_load(int ext_id);
static bool ext_enotify_validator_load(struct sieve_validator *validator);
static int ext_my_id;
const struct sieve_extension enotify_extension = {
"enotify",
&ext_my_id,
ext_enotify_load,
ext_enotify_validator_load,
NULL, NULL, NULL, NULL, NULL,
SIEVE_EXT_DEFINE_NO_OPERATIONS,
SIEVE_EXT_DEFINE_NO_OPERANDS
};
static bool ext_enotify_load(int ext_id)
{
ext_my_id = ext_id;
return TRUE;
}
static bool ext_enotify_validator_load(struct sieve_validator *validator)
{
return TRUE;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.