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

Enotify: added enotify extension to default compile.

parent 3023a857
No related branches found
No related tags found
No related merge requests found
......@@ -20,16 +20,6 @@ endif
# Testsuite tests
if BUILD_ENOTIFY
ENOTIFY_TESTS = \
tests/extensions/enotify/basic.svtest \
tests/extensions/enotify/encodeurl.svtest \
tests/extensions/enotify/valid_notify_method.svtest \
tests/extensions/enotify/notify_method_capability.svtest \
tests/extensions/enotify/errors.svtest \
tests/extensions/enotify/execute.svtest
endif
TESTSUITE_BIN = $(top_srcdir)/src/testsuite/testsuite
if TESTSUITE_VALGRIND
......@@ -81,7 +71,12 @@ test_cases = \
tests/extensions/vacation/errors.svtest \
tests/extensions/vacation/execute.svtest \
tests/extensions/vacation/references.svtest \
$(ENOTIFY_TESTS)
tests/extensions/enotify/basic.svtest \
tests/extensions/enotify/encodeurl.svtest \
tests/extensions/enotify/valid_notify_method.svtest \
tests/extensions/enotify/notify_method_capability.svtest \
tests/extensions/enotify/errors.svtest \
tests/extensions/enotify/execute.svtest
if HAVE_DOVECOT_LIBS
......
Current:
* Incorporate enotify extension into default compile.
Next (in order of descending priority/precedence):
* Fix remaining RFC deviations:
......
......@@ -54,18 +54,20 @@ 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]])],
AC_ARG_WITH(unfinished-features,
[AC_HELP_STRING([--with-unfinished-features],
[Build unfinished new features/extensions [default=no]])],
if test x$withval = xno || test x$withval = xauto; then
want_enotify=$withval
want_unfinished_features=$withval
else
want_enotify=yes
want_unfinished_features=yes
fi,
want_enotify=no)
AM_CONDITIONAL(BUILD_ENOTIFY, test "$want_enotify" = "yes")
AM_CONDITIONAL(BUILD_UNFINISHED, test "$want_unfinished_features" = "yes")
if test "$want_enotify" = "yes"; then
AC_DEFINE(HAVE_SIEVE_ENOTIFY,,[Define to make Sieve enotify extension available to users.])
if test "$want_unfinished_features" = "yes"; then
AC_DEFINE(HAVE_SIEVE_UNFINISHED,,
[Define to build Sieve unfinished features/extensions.])
fi
#
......
......@@ -6,4 +6,4 @@
#undef SIEVE_VERSION
/* Define to make Sieve enotify extension available to users. */
#undef HAVE_SIEVE_ENOTIFY
#undef HAVE_SIEVE_UNFINISHED
......@@ -42,10 +42,6 @@ comparators = \
cmp-i-octet.c \
cmp-i-ascii-casemap.c
if BUILD_ENOTIFY
PLUGIN_ENOTIFY = ./plugins/enotify/libsieve_ext_enotify.la
endif
# These are not actual plugins just yet...
plugins = \
./plugins/vacation/libsieve_ext_vacation.la \
......@@ -58,7 +54,7 @@ plugins = \
./plugins/include/libsieve_ext_include.la \
./plugins/body/libsieve_ext_body.la \
./plugins/variables/libsieve_ext_variables.la \
$(PLUGIN_ENOTIFY)
./plugins/enotify/libsieve_ext_enotify.la
libsieve_la_DEPENDENCIES = $(plugins)
libsieve_la_LIBADD = $(plugins)
......
if BUILD_ENOTIFY
ENOTIFY = enotify
endif
SUBDIRS = \
vacation \
subaddress \
......@@ -13,5 +9,5 @@ SUBDIRS = \
include \
body \
variables \
$(ENOTIFY)
enotify
......@@ -78,14 +78,13 @@ extern const struct sieve_extension copy_extension;
extern const struct sieve_extension include_extension;
extern const struct sieve_extension body_extension;
extern const struct sieve_extension variables_extension;
extern const struct sieve_extension enotify_extension;
/*
* Extensions under development
*/
#ifdef HAVE_SIEVE_ENOTIFY
extern const struct sieve_extension enotify_extension;
#endif
// None
/*
* List of native extensions
......@@ -103,16 +102,13 @@ const struct sieve_extension *sieve_core_extensions[] = {
&encoded_character_extension,
/* Extensions under development */
#ifdef HAVE_SIEVE_ENOTIFY
&enotify_extension,
#endif
/* 'Plugins' */
&vacation_extension, &subaddress_extension,
&comparator_i_ascii_numeric_extension,
&relational_extension, &regex_extension, &imapflags_extension,
&copy_extension, &include_extension, &body_extension,
&variables_extension
&variables_extension, &enotify_extension
};
const unsigned int sieve_core_extensions_count =
......
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.