diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-06-14 15:04:17 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-06-14 15:04:17 +0300 |
commit | 7ae106db9767abe3f7716a50bb8b189e47083efe (patch) | |
tree | c293d8678bb0da4e81c22ce3cdf2bf7ff5dca411 /sieve | |
parent | 1dbebc4d49b15e4715ab01f4e23a76cb713c90d3 (diff) | |
download | mailutils-7ae106db9767abe3f7716a50bb8b189e47083efe.tar.gz mailutils-7ae106db9767abe3f7716a50bb8b189e47083efe.tar.bz2 |
Provide backward compatibility layer for deprecated functions.
* include/mailutils/sieve.h (mu_sieve_compile_text): New proto.
(mu_sieve_compile_buffer): Backward-compatible proto.
* include/mailutils/stream.h ((MU_IOCTL_LOGSTREAM_GET_LOCUS_DEPRECATED)
(MU_IOCTL_LOGSTREAM_SET_LOCUS_DEPRECATED): New defines.
(MU_IOCTL_LOGSTREAM_GET_LOCUS)
(MU_IOCTL_LOGSTREAM_SET_LOCUS): Use external functions to make
sure any references to these are marked as deprecated.
* include/mailutils/types.hin (mu_locus_DEPRECATED): New struct.
(mu_locus): Define to mu_locus_DEPRECATED
* libmailutils/stream/logstream.c (_log_ctl): Handle the deprecated
ctls.
* libmu_sieve/extensions/moderator.c (moderator_filter_message): Use
mu_sieve_compile_text.
* libmu_sieve/sieve-gram.y (mu_sieve_compile_buffer): Rename to
mu_sieve_compile_text. Re-introduce it as a backward-compatibility
API.
* sieve/sieve.c: Call mu_sieve_compile_text instead of
mu_sieve_compile_buffer.
Diffstat (limited to 'sieve')
-rw-r--r-- | sieve/sieve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sieve/sieve.c b/sieve/sieve.c index 32c044fa7..6d718e078 100644 --- a/sieve/sieve.c +++ b/sieve/sieve.c @@ -500,7 +500,7 @@ main (int argc, char *argv[]) pt.mu_file = "stdin"; pt.mu_line = 1; pt.mu_col = 0; - rc = mu_sieve_compile_buffer (mach, script, strlen (script), &pt); + rc = mu_sieve_compile_text (mach, script, strlen (script), &pt); } else rc = mu_sieve_compile (mach, script); |