diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-11-09 15:59:47 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-11-09 15:59:47 +0000 |
commit | b88c148d185d11e0bdcf876e586e309ef8ea78f2 (patch) | |
tree | 0fc2a8a970636062199c9b070d049afe2bc3a4f6 /libsieve | |
parent | 8b4b2e2874d7e640b033b8ba83b837e7e3dbf1ee (diff) | |
download | mailutils-b88c148d185d11e0bdcf876e586e309ef8ea78f2.tar.gz mailutils-b88c148d185d11e0bdcf876e586e309ef8ea78f2.tar.bz2 |
Rewrite default mailbox format support to make sure it does not break format autodetection. Improve the docs.
* configure.ac (MU_DEFAULT_SCHEME): New configuration variable.
* mailbox/version.c (mu_conf_opt): Include default scheme.
* examples/mimetest.c, examples/mta.c, libmu_scm/mu_scm.c: Remove
mu_path_record. Use mu_registrar_set_default_record.
* libproto/mbox/folder.c (_path_is_scheme): Rename to
_mbox_is_scheme. Minor changes as well.
(_path_record, mu_path_record): Removed.
(_mbox_record): Use _mbox_is_scheme.
* libsieve/actions.c: Remove unused variable.
* include/mailutils/Makefile.am (types.h rule): Replace
_MU_DEFAULT_RECORD_. Change MU_OFF_TYPE replacement pattern to
_MU_OFF_TYPE_.
* include/mailutils/mailbox.h (mu_mailbox_set_default_proto)
(mu_mailbox_get_default_proto): Remove. See below.
* include/mailutils/registrar.h (mu_registrar_set_default_scheme)
(mu_registrar_get_default_scheme)
(mu_registrar_get_default_record)
(mu_registrar_set_default_record)
(mu_registrar_lookup_scheme): New prototypes.
(mu_path_record): Remove.
(mu_register_all_mbox_formats): Remove mu_path_record.
Set default scheme using mu_registrar_set_default_record.
(mu_register_local_mbox_formats): Likewise.
* include/mailutils/types.hin (MU_OFF_TYPE): Rename to
_MU_OFF_TYPE_.
(MU_DEFAULT_RECORD): New define.
* mailbox/mailbox.c (mu_mailbox_set_default_proto)
(mu_mailbox_get_default_proto): Remove.
(mu_mailbox_create): Remove default_proto kludge. mu_registrar
stuff is responsible for finding the correct record.
* mailbox/registrar.c (mu_registrar_set_default_record)
(mu_registrar_get_default_record)
(mu_registrar_set_default_scheme)
(mu_registrar_get_default_scheme)
(mu_registrar_lookup_scheme): New functions.
(mu_registrar_lookup_url): Fall back to default record if no
matching record is found and the URL was not set explicitly
(i.e. does not begin with a scheme).
* mailbox/gocs.c: Use mu_registrar_set_default_scheme instead of
mu_mailbox_set_default_proto.
* libsieve/extensions/pipe.c, libsieve/extensions/spamd.c,
libsieve/extensions/vacation.c: Fix comments.
* doc/texinfo/getdate.texi: New file (from gnulib).
* doc/texinfo/Makefile.am (mailutils_TEXINFOS): Add getdate.texi
(fix-sentence-spacing): New rule. Forces single-space
inter-sentence spacing.
(check-tabs, check-sentence-spacing): New rules.
(check-format): Depend on the above two.
(check-refs, check-fixmes, check-unrevised): Fix copy-paste
errors. Print diagnostics to stderr.
* doc/texinfo/auth.texi, doc/texinfo/fdl.texi,
doc/texinfo/framework.texi, doc/texinfo/imap4.texi,
doc/texinfo/libmuauth.texi, doc/texinfo/mailbox.texi,
doc/texinfo/mailcap.texi, doc/texinfo/mailutils.texi,
doc/texinfo/mbox.texi, doc/texinfo/message.texi,
doc/texinfo/mom.texi, doc/texinfo/mu_message.texi,
doc/texinfo/mu_mime.texi, doc/texinfo/mu_scm.texi,
doc/texinfo/muint.texi, doc/texinfo/pop3.texi,
doc/texinfo/rendition.texi, doc/texinfo/sieve.texi,
doc/texinfo/url.texi, doc/texinfo/usage.texi: Use GNU instead of
@sc{gnu}, because latter looks awful when typeset (especially when
followed by a capitalized word). Fix format by running `make final'.
* doc/texinfo/programs.texi: Document more config statements.
* doc/texinfo/libsieve.texi: Document loadable actions and tests.
Diffstat (limited to 'libsieve')
-rw-r--r-- | libsieve/actions.c | 2 | ||||
-rw-r--r-- | libsieve/extensions/pipe.c | 8 | ||||
-rw-r--r-- | libsieve/extensions/spamd.c | 2 | ||||
-rw-r--r-- | libsieve/extensions/vacation.c | 2 |
4 files changed, 9 insertions, 5 deletions
diff --git a/libsieve/actions.c b/libsieve/actions.c index d5efdbda3..ba5311f9e 100644 --- a/libsieve/actions.c +++ b/libsieve/actions.c @@ -533,7 +533,7 @@ perms_tag_checker (const char *name, mu_list_t tags, mu_list_t args) mu_iterator_next (itr)) { int flag; - char *p; + const char *p; mu_sieve_runtime_tag_t *t; mu_iterator_current (itr, (void **)&t); if (strcmp (t->tag, "permissions") == 0) diff --git a/libsieve/extensions/pipe.c b/libsieve/extensions/pipe.c index 13567cf56..547ca5974 100644 --- a/libsieve/extensions/pipe.c +++ b/libsieve/extensions/pipe.c @@ -16,8 +16,12 @@ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -/* Syntax: pipe [:envelope] <program call: string> - +/* Syntax: pipe [:envelope] <program: string> + + The pipe action executes a shell command specified by its + argument and pipes the entire message to its standard input. + The envelope of the message is included, if the :envelope tag is given. + Notes/FIXME: 1. it would be nice to implement meta-variables in <program call> which would expand to various items from the message being handled. diff --git a/libsieve/extensions/spamd.c b/libsieve/extensions/spamd.c index bfd42835b..9d17e0183 100644 --- a/libsieve/extensions/spamd.c +++ b/libsieve/extensions/spamd.c @@ -232,7 +232,7 @@ sigpipe_handler (int sig MU_ARG_UNUSED) /* The test proper */ -/* Syntax: spamd [":host" <tcp-host: string] +/* Syntax: spamd [":host" <tcp-host: string>] [":port" <tcp-port: number> / ":socket" <unix-socket: string>] [":user" <name: string>] diff --git a/libsieve/extensions/vacation.c b/libsieve/extensions/vacation.c index 371bfc46e..11bb88733 100644 --- a/libsieve/extensions/vacation.c +++ b/libsieve/extensions/vacation.c @@ -23,7 +23,7 @@ [:reply_regex <expr: string>] [:reply_prefix <prefix: string>] <reply text: string> - */ +*/ #ifdef HAVE_CONFIG_H # include <config.h> |