summaryrefslogtreecommitdiff
path: root/libmu_scm
AgeCommit message (Collapse)AuthorFiles
2010-06-02Implement mu-mailbox-get-size function.Sergey Poznyakoff1
* libmu_scm/mu_mailbox.c (mu-mailbox-get-size): New function.
2010-04-14Further improvements in the Guile-related code.Sergey Poznyakoff9
* gint: Upgrade. * libmu_scm/Makefile.am: Initialize BUILT_SOURCES. * libmu_scm/mu_address.c (address_get_fp): Change signature to match those of mu_address_aget family. (all functions): Use functions from mu_address_aget family. Downcase argument names. Refer to them in the docstring using @var notation. * libmu_scm/mu_body.c: Downcase argument names. Refer to them in the docstring using @var notation. * libmu_scm/mu_logger.c: Likewise. * libmu_scm/mu_mailbox.c: Likewise. * libmu_scm/mu_message.c: Likewise. * libmu_scm/mu_mime.c: Likewise. * libmu_scm/mu_scm.c: Likewise. * libmu_scm/mu_util.c: Likewise.
2010-04-12Migrate Guile support to GINT.Sergey Poznyakoff11
* gint: New module. * am/guile.m4: Remove. * mu-aux/guile-doc-snarf: Remove. * mu-aux/guile-doc-snarf.awk: Remove. * mu-aux/Makefile.am (EXTRA_DIST): Remove guile-doc-snarf, guile-doc-snarf.awk * Makefile.am: Add gint. * bootstrap.conf: Init gint submodule. * configure.ac: Rewrite Guile support using GINT_INIT. (AC_CONFIG_FILES): Add gint/Makefile. * guimb/scm/Makefile.am (sitedir): Change. * guimb/scm/Makefile.am: Likewise. * libmu_scm/Makefile.am: Include ../gint/gint.mk Adjust all variables. Remove unnecessary rules. * libmu_scm/mailutils.scm.in: Remove exports and includes. Remove obsolete code. * libmu_scm/mu_address.c: Use SCM_DEFINE_PUBLIC to declare public interfaces. * libmu_scm/mu_body.c: Likewise. * libmu_scm/mu_mailbox.c: Likewise. * libmu_scm/mu_message.c: Likewise. * libmu_scm/mu_mime.c: Likewise. * libmu_scm/mu_util.c: Likewise. * libmu_scm/mu_logger.c: Likewise. (mu_scm_logger_init): Make all constants public. * libmu_scm/mu_scm.c: Likewise. * libmu_scm/mu_guile.c: Use scm_c_catch instead of the obsolete scm_internal_lazy_catch.
2010-04-01Implement mailbox iterators in Scheme.Sergey Poznyakoff1
* libmu_scm/mu_mailbox.c (struct mu_mailbox)<itr>: New member. (mu_scm_mailbox_free): Destroy the iterator. (mu_scm_mailbox_create0): Initialize itr to NULL. (mu-mailbox-first-message, mu-mailbox-next-message) (mu-mailbox-more-messages?): New function. * guimb/scm/sieve-core.scm (sieve-run): Rewrite main loop in the True Schemish Way.
2010-04-01Fix the use of deprecated Guile interfaces in port code.Sergey Poznyakoff2
* am/guile.m4 (MU_CHECK_GUILE): Check for SCM_DEVAL_P et al. * libmu_scm/mu_guile.c (mu_guile_init): Protect calls to SCM_DEVAL_P &c. by #ifdef GUILE_DEBUG_MACROS * libmu_scm/mu_port.c [!HAVE_SCM_T_OFF](scm_t_off): New typedef. (mu_port_make_from_stream): Use scm_new_port_table_entry instead of the deprecated scm_add_to_port_table
2010-04-01Fix SCM syslog interface.Sergey Poznyakoff1
* libmu_scm/mu_logger.c (log_tag): New static. (mu-openlog): Preserve log tag in log_tag, because openlog stores its first argument as-is. Simplify argument handling. (mu-logger): Simplify argument handling. (mu-closelog): Free log_tag.
2010-04-01Remove the uses of deprecated Guile functions.Sergey Poznyakoff8
* am/guile.m4 (MU_CHECK_GUILE): Check for scm_t_off. * include/mailutils/guile.h (mu_scm_makenum) (mu_set_variable): Remove prototypes. * libmu_scm/mu_address.c: Remove calls to deprecated Guile functions. * libmu_scm/mu_body.c: Likewise. * libmu_scm/mu_guile.c: Likewise. * libmu_scm/mu_mailbox.c: Likewise. * libmu_scm/mu_message.c: Likewise. * libmu_scm/mu_mime.c: Likewise. * libmu_scm/mu_util.c: Likewise. * libmu_scm/mu_scm.c (mu_scm_makenum): Remove. (mu_set_variable): Remove. Use scm_c_define instead.
2010-01-14More fixes in libmu_scm.Sergey Poznyakoff3
* libmu_scm/mu_mailbox.c (mu-mailbox-get-port): Fix return value. * libmu_scm/mu_port.c (mu_port_flush): Avoid warnings on passing arg 2 to mu_stream_write. (mu_port_free): Return 0. * libmu_scm/mu_message.c (mu_scm_message_free): Return 0.
2010-01-13Do not use deprecated Guile functions.Sergey Poznyakoff7
* libmu_scm/mu_address.c: Use scm_to_locale_string instead of relying on scm_i_string_chars. * libmu_scm/mu_logger.c: Likewise. * libmu_scm/mu_mailbox.c: Likewise. * libmu_scm/mu_scm.c: Likewise. * libmu_scm/mu_util.c: Likewise. * libmu_scm/mu_message.c: Likewise. (mu_scm_message_add_owner): Don't use SCM_NEWCELL. (mu-message-get-envelope) (mu-message-get-envelope-date): New functions. (string_sloppy_member): Compare scm_i_string_length bytes from the car. (mu-message-get-header-fields): Don't use SCM_NEWCELL. * libmu_scm/mu_port.c (mu_port_make_from_stream): Don't use SCM_NEWCELL.
2010-01-05Update copyright years.Sergey Poznyakoff14
Happy GNU year!
2009-10-31Bugfixes.Sergey Poznyakoff1
* libmu_scm/mu_guile.c: Include setjmp.h. * readmsg/readmsg.c (readmsg_parse_opt): Bugfixes. Patch by Steve Cotton.
2009-10-25Variois fixes (mostly to placate gcc)Sergey Poznyakoff4
* examples/base64.c, examples/mta.c, imap4d/auth_gss.c, imap4d/imap4d.c, imap4d/preauth.c, libmu_auth/ldap.c, libmu_auth/virtual.c, libmu_scm/mu_body.c, libmu_scm/mu_port.c, libproto/mailer/smtp.c, mailbox/acl.c, mailbox/secret.c, pop3d/pop3d.c, python/libmu_py/address.c, sql/odbc.c: Fix argument signedness. * imap4d/fetch.c, imap4d/store.c (closures): Change type of `count' to int, to match the signature of util_msgset. * include/mailutils/guile.h (mu_scm_message_get): Fix return type (const is useless here). * libmu_scm/mu_message.c (mu_scm_message_get): Likewise. (scm_mu_message_copy): Fix type of the `wr' automatic variable. * libmu_scm/mu_mime.c (mu_scm_mime_get): Remove const qualifier from the return type. * libmu_argp/cmdline.c: Include stdlib.h.
2009-08-28Minor fixSergey Poznyakoff1
* libmu_scm/Makefile.am (install-data-hook): Make sure libguile-mailutils links to the versioned .so file.
2009-08-13Minor fixes.Sergey Poznyakoff1
* comsat/comsat.h: Include confpaths.h, not paths.h. * lib/utmp.c: Likewise. * libmu_scm/mu_scm.h: Likewise. * libproto/mailer/sendmail.c: Likewise. * mail/mail.h: Likewise. * mailbox/mbx_default.c: Likewise. * mailbox/version.c: Likewise. * lib/daemon.c: Likewise. * include/mailutils/mailer.h (struct timeval): forward decl.
2009-08-12Rewrite conditional compilation support.Sergey Poznyakoff1
* Makefile.am: Conditionally add directories to SUBDIRS. * am/enable.m4 (MU_ENABLE_BUILD): New macro. * configure.ac: Require automake 1.11 Add MU_ENABLE_BUILDs for each utility. Remove unused substitution variables. * guimb/Makefile.am: Remove substitution variables. * guimb/scm/Makefile.am: Likewise. * libmu_scm/Makefile.am: Likewise. * mh/Makefile.am: Likewise. * python/libmu_py/Makefile.am: Likewise. * python/mailutils/Makefile.am: Likewise. * README: Document --disable-build-* options.
2009-07-07Introduce locale-independent character type and string functions.Sergey Poznyakoff2
* include/mailutils/cctype.h: New file. * include/mailutils/cstr.h: New file. * include/mailutils/Makefile.am: Add new files. * mailbox/cstrcasecmp.c: New file. * mailbox/cstrlower.c: New file. * mailbox/cstrupper.c: New file. * mailbox/muctype.c: New file. * mailbox/strltrim.c: New file. * mailbox/strrtrim.c: New file. * mailbox/strskip.c: New file. * mailbox/Makefile.am: Add new files. * .gitignore: Update * gnulib.modules: Remove strcase. * comsat/comsat.h, imap4d/imap4d.h, include/mailutils/mailutils.h, include/mailutils/mutil.h, include/mailutils/sys/pop3.h, libmu_scm/mu_scm.h, mail/mail.h: Include cstr.h and cctype.h. * comsat/oldcfg.c, config/mailutils-config.c, examples/mimetest.c, examples/mta.c, examples/nntpclient.c, examples/pop3client.c, imap4d/append.c, imap4d/create.c, imap4d/delete.c, imap4d/fetch.c, imap4d/id.c, imap4d/idle.c, imap4d/list.c, imap4d/namespace.c, imap4d/rename.c, imap4d/search.c, imap4d/status.c, imap4d/store.c, imap4d/uid.c, imap4d/util.c, libmu_argp/compat.c, libmu_auth/ldap.c, libmu_auth/sql.c, libmu_scm/mu_message.c, libmu_sieve/actions.c, libmu_sieve/comparator.c, libmu_sieve/extensions/list.c, libmu_sieve/extensions/spamd.c, libmu_sieve/extensions/vacation.c, libmu_sieve/load.c, libmu_sieve/sieve.l, libmu_sieve/tests.c, libproto/imap/folder.c, libproto/mailer/smtp.c, libproto/mbox/mbox.c, libproto/mh/folder.c, libproto/mh/mbox.c, libproto/pop/folder.c, libproto/pop/mbox.c, libproto/pop/pop3_connect.c, maidag/forward.c, maidag/lmtp.c, maidag/maidag.c, maidag/maidag.h, maidag/mailquota.c, mail/alt.c, mail/copy.c, mail/decode.c, mail/escape.c, mail/followup.c, mail/mail.c, mail/mailline.c, mail/msgset.y, mail/print.c, mail/reply.c, mail/send.c, mail/shell.c, mail/util.c, mail/write.c, mailbox/address.c, mailbox/amd.c, mailbox/assoc.c, mailbox/attachment.c, mailbox/attribute.c, mailbox/cfg_lexer.l, mailbox/date.c, mailbox/filter.c, mailbox/gdebug.c, mailbox/header.c, mailbox/kwd.c, mailbox/locale.c, mailbox/mailcap.c, mailbox/mailer.c, mailbox/message.c, mailbox/message_stream.c, mailbox/mime.c, mailbox/msrv.c, mailbox/mutil.c, mailbox/parse822.c, mailbox/progmailer.c, mailbox/rfc2047.c, mailbox/syslog.c, mailbox/url.c, mailbox/version.c, mh/mh.h, mh/mh_alias.l, mh/mh_ctx.c, mh/mh_fmtgram.y, mh/mh_init.c, mh/mh_list.c, mh/mh_msgset.c, mh/mh_sequence.c, mh/mh_whatnow.c, mh/mh_whom.c, mh/mhn.c, mh/mhparam.c, mh/pick.y, mh/sortm.c, mimeview/mimetypes.y, pop3d/bulletin.c, pop3d/expire.c, pop3d/pop3d.c, pop3d/pop3d.h, pop3d/popauth.c, pop3d/user.c, readmsg/msglist.c, readmsg/readmsg.c, readmsg/readmsg.h, sql/mysql.c, sql/postgres.c: Use locale-independent cclass and str functions.
2009-07-06Define the necessary PATH_ constants.Sergey Poznyakoff1
* paths: New file. * am/config_paths.m4: New file. * include/confpaths.h.in: New file. * Makefile.am (EXTRA_DIST): Add paths. (DISTCLEANFILES): Add pathdefs.h * configure.ac: Invoke MU_CONFIG_PATHS (AC_CONFIG_FILES): Add include/confpaths.h * include/Makefile.am (EXTRA_DIST): Add confpaths.h.in * lib/utmp.c, libmu_scm/mu_scm.c, libproto/mailer/sendmail.c, mail/mail.c: Use PATH_* constants. * mail/mail.h: Remove definition of _PATH_SENDMAIL. * .gitignore, include/.gitignore: Update.
2009-07-05Fix namespaces and inclusion directories.Sergey Poznyakoff1
* README-hacking: Update. * configure.ac (MU_COMMON_INCLUDES): Remove. (MU_LIB_COMMON_INCLUDES,MU_APP_COMMON_INCLUDES): New variables. Link lib/gettext.h and lib.intprops.h to include. * gnulib.modules: Remove fnmatch. * comsat/Makefile.am, config/Makefile.am, dotlock/Makefile.am, frm/Makefile.am, guimb/Makefile.am, imap4d/Makefile.am, maidag/Makefile.am, mail/Makefile.am, movemail/Makefile.am, pop3d/Makefile.am, python/libmu_py/Makefile.am, readmsg/Makefile.am sieve/Makefile.am (INCLUDES): Use MU_APP_COMMON_INCLUDES * lib/Makefile.am, examples/Makefile.am, libmu_argp/Makefile.am, libmu_auth/Makefile.am, libmu_cpp/Makefile.am, libmu_sieve/Makefile.am, libproto/imap/Makefile.am, libproto/mailer/Makefile.am, libproto/mh/Makefile.am, libproto/nntp/Makefile.am, libproto/pop/Makefile.am, mailbox/Makefile.am, mapi/Makefile.am, messages/Makefile.am, mh/Makefile.am, sql/Makefile.am (INCLUDES): Use MU_LIB_COMMON_INCLUDES
2009-07-05Minor changes.Sergey Poznyakoff1
* examples/mta.c: Remove include mu_asprintf.h. * libmu_auth/radius.c: Remove include inttostr.h. * libmu_scm/mu_dbgport.c: Silence gcc warnings. * libmu_sieve/extensions/pipe.c: Remove include <mu_dbm.h>. * libmu_sieve/sieve-priv.h: Remove include mu_asprintf.h. * maidag/python.c: Remove unused locals. * python/libmu_py/address.c: Likewise. * python/libmu_py/auth.c: Likewise. * python/libmu_py/body.c: Likewise. * python/libmu_py/secret.c: Likewise. * python/libmu_py/stream.c: Likewise. * python/libmu_py/url.c: Likewise. * python/libmu_py/util.c: Likewise.
2009-05-26Enable Makefile silent rules.Sergey Poznyakoff1
* Makefile.am (AUTOMAKE_OPTIONS): Remove. * bootstrap: Import from mailfromd. * configure.ac: Require autoconf 2.63 Enable silent-rules mode by default. * guimb/scm/Makefile.am: Add silent-rules markers. * include/mailutils/Makefile.am: Likewise. * libmu_scm/Makefile.am: Likewise. * testsuite/Makefile.am: Likewise.
2009-05-26Minor changes.Sergey Poznyakoff1
* guimb/main.c (main_sym): Remove const qualifier. * imap4d/imap4d.h (util_getfullpath): 1st arg is const. * imap4d/util.c: Likewise. * include/mailutils/guile.h (mu_guile_load): 1st arg is const. * include/mailutils/sql.h (mu_sql_get_field): 3rd arg is const. * libmu_auth/radius.c: Cleanup trailing whitespace. * libmu_scm/mu_guile.c (mu_guile_load): 1st arg is const. (struct load_closure): Filename is const. All uses updated. * mailbox/monitor.c (RWLOCK_TRYRDLOCK, RWLOCK_TRYWRLOCK): Remove [!WITH_PTHREAD] (RWLOCK_DESTROY): Empty define. * mailbox/mutil.c (mu_aget_user_email_domain): Minor fix. * sql/sql.c (mu_sql_get_field): 3rd arg is const.
2009-03-28Bugfixes.Sergey Poznyakoff1
* libmu_scm/mailutils.scm.in: Remove leftover reference to mu_guimb.inc
2009-03-27Implement guile output redirection in maidagSergey Poznyakoff4
* libmu_scm/mu_guimb.c: Remove * libmu_scm/mu_dbgport.c: New file. * libmu_scm/Makefile.am: Update. * include/mailutils/guile.h (mu_process_mailbox): Remove. (mu_scm_make_debug_port, mu_scm_debug_port_init): New prototypes. * libmu_scm/mu_scm.c (mu_scm_init): Call mu_scm_debug_port_init. * maidag/guile.c (scheme_check_msg): Redirect error/output to MU port. * mailbox/mutil.c (mu_expand_path_pattern): Expand ~.
2009-03-24Rewrite scripting support in maidag.Sergey Poznyakoff5
* include/mailutils/guile.h (mu_guile_init, mu_guile_load) (mu_guile_eval, mu_guile_mailbox_apply, mu_guile_message_apply) (mu_guile_safe_exec, mu_guile_safe_proc_call): New protos. * libmu_scm/Makefile.am: Add mu_guile.c * libmu_scm/mu_guile.c: New file. * libmu_scm/mu_mailbox.c (struct mu_mailbox): Kludge: new member noclose. (mu_scm_mailbox_free): Do not close/destroy mailbox if it is marked noclose. (mu_scm_mailbox_create0): Kludge: new function. * libmu_scm/mu_message.c (mu_scm_message_print): Bugfix. * maidag/Makefile.am: Add guile.c and sieve.c. * maidag/deliver.c (maidag_stdio_delivery) [WITH_GUILE]: Remove block. (deliver_url): Call script_apply, instead of sieve_test. * maidag/maidag.c: Rewrite scripting support in a modular way. Remove options: --sieve, --source (and the corresponding config statements). Add options: --language, --script. Add configure statement: filter (block). * maidag/maidag.h (progfile_pattern, sieve_pattern): Remove. (script_list, sieve_debug_flags, message_id_header, sieve_enable_log): New prototypes. [WITH_GUILE]: Remove. (maidag_script_fun, struct maidag_script): New data type. (script_handler): New extern. (script_lang_handler, script_suffix_handler) (script_register, script_apply): New protos. (scheme_check_msg, sieve_check_msg): New protos. * maidag/script.c: Rewrite. Provide general-purpose serialized script support. * guimb/guimb.h (struct guimb_data): Remove. * guimb/main.c: Rewrite in a cleaner way, using functions from mu_guile.c. * guimb/collect.c (guimb_catch_body, guimb_catch_handler) (guimb_exit): Remove. * guimb/scm/sieve-core.scm (sieve-current-message, sieve-mailbox): Public. (sieve-run-current-message): New public function. (sieve-run): Call sieve-run-current-message for each message. * guimb/scm/sieve.scm.in (sieve-save-program): Change code generation to suit both per-mailbox and per-message invocation. This kicks mail.local out of whack. * maidag/guile.c: New file. * maidag/sieve.c: New file.
2009-03-22Improve autoconf machinery, drop support for Guile < 1.8Sergey Poznyakoff2
* scripts/guile-1.4: Removed. * scripts/guile-1.6/guile-doc-snarf: Move to the parent dir. * scripts/guile-1.6/guile-doc-snarf.awk: Move to the parent dir. * scripts: Rename to mu-aux. All references updated. * am/enable.m4 (MU_ENABLE_SUPPORT): add fourth argument, action-default Translate + to x. * am/guile.m4 (MU_RESULT_ACTIONS): Remove. (MU_CHECK_GUILE): Rewrite. Drop support for versions < 1.8 * am/lib.m4 (MU_CHECK_LIB): Rewrite using a cleaner approach. * bootstrap.conf: Remove build_aux assignement. * configure.ac: Assume a new naming scheme for optional builds: for each subst variable named MU_whatever_BUILD there is a corresponing Makefile.am variable named MU_whatever_LIST, if `whatever' is to be built MU_whatever_BUILD is set to '$(MU_whatever_LIST)' New option --disable-c++. Improve status output. * examples/Makefile.am, examples/cpp/Makefile.am, include/mailutils/Makefile.am, libmu_cpp/Makefile.am, libmu_scm/Makefile.am, libmu_sieve/Makefile.am, libmu_sieve/extensions/Makefile.am, libmu_sieve/load.c, mail.remote/Makefile.am, mail.remote/testsuite/Makefile.am, mailbox/Makefile.am, mh/Makefile.am, mimeview/Makefile.am, mu-aux/Makefile.am, python/mailutils/Makefile.am: Reflect changes to autoconf machinery. * /include/mailutils/guile.h: Drop support for versions < 1.8 * libmu_scm/mu_util.c: Likewise.
2009-02-20Remove leftover dependencies of libmailutils from gnulibSergey Poznyakoff1
* bootstrap.conf (gnulib_extra_files): Remove. * gnulib.modules (inttostr): Add module. * include/mailutils/io.h: New file. * include/mailutils/Makefile.am: Add io.h * mailbox/inttostr.c, mailbox/inttostr.h: Remove * mailbox/imaxtostr.c, mailbox/offtostr.c, mailbox/umaxtostr.c: Remove * mailbox/intprops.h: Remove * mailbox/asnprintf.c, mailbox/asprintf.c, mailbox/vasnprintf.c: New files. * mailbox/Makefile.am: Update. * mailbox/mu_umaxtostr.c: rename to lib/mu_umaxtostr.c * mailbox/mu_umaxtostr.h: rename to lib/mu_umaxtostr.h * lib/Makefile.am (libmuaux_la_SOURCES): Add mu_umaxtostr.[ch] * libmu_auth/radius.c, libmu_cfg/common.c, libmu_scm/mu_port.c, libproto/imap/folder.c, libproto/imap/mbox.c, libproto/mbox/mbox.c, libproto/mh/mbox.c, libproto/pop/mbox.c, mailbox/acl.c, mailbox/daemon.c, mailbox/mailer.c, mailbox/message.c, mailbox/mutil.c, mailbox/stream.c: Use mu_strerror. Avoid using mu_umaxtostr.
2009-02-13Rename libraries.Wojciech Polak1
Rename libmuauth to libmu_auth, libargp to libmu_argp, libcfg to libmu_cfg, and libsieve to libmu_sieve. * auth/*: Move to libmu_auth/* * libargp/*: Move to libmu_argp/* * libcfg/*: Move to libmu_cfg/* * libsieve/*: Move to libmu_sieve/* * libmu_sieve/sieve.h: Rename to sieve-priv.h * include/mailutils/libsieve.h: Rename to sieve.h * configure.ac: Update, bump to 2.0.90.
2008-12-08Switched to Git repository.Sergey Poznyakoff1
* m4: Rename to am. * README-alpha, README-hacking: Reflect the switch. * */.cvsignore: Rename to .gitignore, update. * gnulib.modules: Add gitlog-to-changelog. * ChangeLog: Remove.
2008-11-09Rewrite default mailbox format support to make sure it does not break format ↵Sergey Poznyakoff1
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.
2007-12-19* NEWS: Update.Sergey Poznyakoff1
* configure.ac (MU_LIB_REMOTE): New substitution variable. (AC_CONFIG_FILES): Add libproto/remote/Makefile. * imap4d/copy.c, imap4d/create.c, imap4d/delete.c, imap4d/fetch.c, imap4d/imap4d.c, imap4d/list.c, imap4d/lsub.c, imap4d/rename.c, imap4d/subscribe.c, imap4d/unsubscribe.c, imap4d/util.c: Spelling fixes. * include/mailutils/cfg.h (mu_cfg_error_count): New variable. * include/mailutils/gocs.h (struct mu_gocs_mailbox): New member mailbox_pattern * include/mailutils/libargp.h (mu_rcfile_lint): New variable. * include/mailutils/mailbox.h (mu_set_mailbox_pattern): New function. (mu_mail_directory): Removed. (mu_mailbox_url): New function. * include/mailutils/mutil.h (mu_normalize_mailbox_url): Remove. * include/mailutils/registrar.h (mu_0_6_registrar_lookup): Remove. * libargp/common.c: New options --rcfile-lint and --mailbox-pattern. * libargp/muinit.c: Handle --rcfile-lint. * libcfg/common.c: New statement mailbox-pattern * libmu_scm/mu_mailbox.c (mu-mail-directory): Deprecated. (mu-user-mailbox-url): New function. * libproto/remote: New directory. * libproto/remote/folder.c: New file. * libproto/remote/mbox.c: New file. * libproto/remote/.cvsignore: New file. * libproto/Makefile.am (SUBDIRS): Add remote * libproto/mbox/folder.c, libproto/mbox/url.c: Indentation and spelling fixes. * maidag/Makefile.am (maidag_LDADD): Add MU_LIB_REMOTE. * maidag/maidag.c: Register mu_remote_mbox_record. * mailbox/cfg_parser.y (mu_cfg_error_count): New variable. (mu_cfg_format_error,_mu_cfg_vperror): Increment mu_cfg_error_count. * mailbox/debug.c (mu_debug_check_level): Do not mask out inheritance bit. * mailbox/gocs.c (mu_gocs_mailbox_init): Set mailbox pattern. * mailbox/mailbox.c (_create_mailbox): Bugfix. * mailbox/mbx_default.c (mu_set_mailbox_pattern): New finction. (mu_set_mail_directory): Rewrite. (user_mailbox_name): Rewrite. * mailbox/mutil.c (mu_normalize_mailbox_url): Remove. * mailbox/registrar.c (mu_0_6_registrar_lookup): Remove. * guimb/scm/sieve-core.scm (sieve-main): Use mu-user-mailbox-url.
2007-11-28Introduce "global debug settings". Mailutils objects are supposedSergey Poznyakoff1
to set their default mu_debug_t objects basing on these settings. * include/mailutils/Makefile.am: Add debug.hin. Build debug.h from it. * include/mailutils/debug.hm4: New file. * include/mailutils/debug.h: Remove generated file. * scripts/Makefile.am (EXTRA_DIST): Add debugdef.m4 * scripts/debugdef.m4: New file. * include/mailutils/gocs.h (struct mu_gocs_debug): New data type. (mu_gocs_register_std): Argument is const. (mu_gocs_debug_init): New function. * include/mailutils/libargp.h (mu_debug_cmdline): New extern. * include/mailutils/libcfg.h (mu_debug_cfg_capa): New extern. * libargp/cmdline.c: Add mu_debug_cmdline * libargp/common.c: Add debug settings. * libargp/mu_argp.c (struct cap_buf.capa): Remove const qualifier. * libcfg/common.c (mu_locking_param): Remove superfluous `lock-' prefix from the statement names. (mu_debug_param): New parameter group. * libcfg/init.c: Add mu_debug_param. * mailbox/gocs.c (mu_gocs_debug_init): New function. * mailbox/Makefile.am (libmailutils_la_SOURCES): Add gdebug.c * mailbox/gdebug.c: New file * mailbox/debug.c (mu_debug_printf, mu_debug_vprintf) (mu_debug_check_level): New functions. (mu_debug_printv, mu_debug_print): Rewrite using new basic calls. * comsat/comsat.c, dotlock/dotlock.c, examples/muauth.c, mail.remote/mail.remote.c: Add debug capability. * frm/frm.c, frm/from.c, guimb/main.c, imap4d/imap4d.c, mail/mail.c, mail.local/main.c, messages/messages.c, pop3d/pop3d.c, readmsg/readmsg.c: Add locking and debug capabilities. * examples/mimetest.c, examples/msg-send.c, frm/common.c, libargp/auth.c, libmu_scm/mu_message.c, mail/send.c, mh/send.c, mimeview/mimeview.c, movemail/movemail.c, sieve/sieve.c: Update invocation of mu_debug_set_level. * libproto/imap/folder.c, libproto/imap/mbox.c, libproto/include/folder0.h, libproto/include/mailbox0.h, libproto/include/mailer0.h, libproto/mailer/sendmail.c, libproto/mailer/smtp.c, libproto/mbox/mbox.c, libproto/nntp/folder.c, libproto/nntp/nntp_debug.c, libproto/pop/mbox.c, libproto/pop/pop3_debug.c, mailbox/amd.c, mailbox/mailer.c, mailbox/message.c, mailbox/mu_auth.c: Use MU_DEBUG[0-9] for debugging. * mailbox/muerror.c: Include string.h * mailbox/syslog.c (syslog_to_n): Remove unused variable. * mailbox/assoc.c (struct _mu_assoc_elem): name is not const. * mailbox/cfg_lexer.c: Quoted strings can be continued to the following line either by using a trailing backslash or by concatenating strings together, as in C. * mailbox/mailbox.c (_create_mailbox): Initialize debug object using global "mailbox" level. (mu_mailbox_create): Fix bug introduced on 2007-11-26. * include/mailutils/libsieve.h (mu_sieve_set_debug_level): Change prototype. (mu_sieve_set_debug_object): New prototype. * libsieve/sieve.y (mu_sieve_machine_init): Initialize debug object from "sieve" global level. (mu_sieve_set_debug_level): Set only debug_level. (mu_sieve_set_debug_object): New function. * maidag/maidag.c: Remove explicit setting of debug object. Add "debug" group, which provides the required functionality. (set_debug_flags): Likewise. This function and the corresponding command line option are fading out in favor of global debug settings.
2007-07-17Added ${MU_LIB_MAILER}.Wojciech Polak1
2007-07-09Rewrite using new envelope accessorsSergey Poznyakoff1
2007-07-05(INCLUDES): Remove INTLINCSSergey Poznyakoff1
2007-06-27Prepare for the GPL v.3 release. Relicense programs under GPL v.3, libraries ↵Sergey Poznyakoff13
under LPGL v.3
2007-06-26(_get_envelope_sender): Bugfix: the return value was wrong.Sergey Poznyakoff1
2007-06-24Use mu_address_sget functions, where possible.Sergey Poznyakoff1
2006-10-25Do not try to install anything if Guile is not availableSergey Poznyakoff1
2006-06-27(struct mu_message.needs_destroy): New memberSergey Poznyakoff1
(mu_scm_message_mark): Raise needs_destroy if the message has null owner. (mu_scm_message_free): Do not attempt to reference msg, unless its needs_destroy is set.
2006-06-15UpdateSergey Poznyakoff1
2006-06-15Update docstringsSergey Poznyakoff7
2006-06-15Use documentation module. Update documentation-files to make sure MU docs ↵Sergey Poznyakoff1
are found.
2006-06-15(GUILE_BUILT_SOURCES_X,DISTCLEANFILES): Add guile-procedures.texiSergey Poznyakoff1
(guile-procedures.texi): New rule
2006-04-22UpdateSergey Poznyakoff1
2006-04-21Include mailutils/errno.hSergey Poznyakoff1
2006-04-21(mu-strerror): New functionSergey Poznyakoff1
2006-04-21Throw exceptions on errors.Sergey Poznyakoff1
2006-04-21Change module definitionSergey Poznyakoff1
2006-04-21(pkgdata_DATA): Rename to site_DATASergey Poznyakoff1
2006-04-20Rewritten using Guile 1.8 API.Sergey Poznyakoff9
Throw 'mailutils-error instead of returning #f on error.

Return to:

Send suggestions and report system problems to the System administrator.