1. 22 Dec, 2010 1 commit
    • * TODO: Update.
      * include/mailutils/sieve.h (mu_sieve_library_path_prefix): New variable.
      * libmu_argp/sieve.c (sieve_argp_option): New option --libdir-prefix.
      (sieve_argp_parser): Handle --libdir-prefix.
      * libmu_cfg/sieve.c (cb_library_path_prefix): New callback.
      (mu_sieve_param): New statement "library-path-prefix".
      * libmu_sieve/conf.c (mu_sieve_library_path_prefix): New variable.
      (mu_sieve_module_init): Process prefix paths.
      Do not call mu_sv_load_add_path.
      * libmu_sieve/load.c (sieve_init_load_path): Rewrite.
      (mu_sv_load_add_path): Remove.
      * libmu_sieve/sieve-priv.h (mu_sv_load_add_path): Remove declaration.
      (sieve_searchpath): Remove the unused "add" parameter.
      * sieve/tests/moderator.at: Use MUT_SIEVE_OPTIONS in all tests.
      * sieve/tests/testsuite.at (MUT_SIEVE_EXT_TEST): Use --libdir-prefix
      option to ensure that our version of the extension appears first in
      the path.
      Sergey Poznyakoff authored
  2. 06 Dec, 2010 1 commit
    • * include/mailutils/stream.h (MU_LOGSTREAM_ADVANCE_LOCUS_LINE)
      (MU_LOGSTREAM_ADVANCE_LOCUS_COL): Rename to MU_IOCTL_.*.  All
      uses updated.
      (MU_IOCTL_LOGSTREAM_SUPPRESS_SEVERITY)
      (MU_IOCTL_LOGSTREAM_SUPPRESS_SEVERITY_NAME): New ioctls.
      * include/mailutils/sys/logstream.h (_mu_log_stream)<threshold>: New
      member.
      * include/mailutils/syslog.h (mu_log_severity_threshold): New extern.
      * libmailutils/cfg/parser.y (_cfg_default_printer): Remove leftover
      static function.
      * libmailutils/stream/logstream.c (mu_severity_from_string)
      (mu_severity_to_string): New functions.
      (_log_write): Fix double free.
      Implement severity suppression.
      (_log_ioctl): Handle MU_IOCTL_LOGSTREAM_SUPPRESS_SEVERITY.
      * libmu_cfg/common.c (mu_logging_param): New parameter
      "severity".
      Sergey Poznyakoff authored
  3. 05 Dec, 2010 1 commit
    • The mu_debug_t object and associated functions have been removed.
      New debugging functions are based on the logstream interface.
      
      * include/mailutils/debug.hm4: Remove.
      * include/mailutils/debug.h: New file.
      * include/mailutils/Makefile.am (BUILT_SOURCES,EXTRA_DIST): Remove debug.h,
      debug.hm4.
      
      * mu-aux/debugdef.m4: Remove.
      * mu-aux/debcat.awk: New file.
      * mu-aux/Makefile.am (EXTRA_DIST): Replace debugdef.m4 with debcat.awk.
      
      * include/mailutils/sys/dbgstream.h: Remove.
      * include/mailutils/sys/debug.h: Remove.
      * include/mailutils/sys/Makefile.am (sysinclude_HEADERS): Remove debug.h
      and dbgstream.h, add debcat.h
      * include/mailutils/sys/.gitignore: Add debcat.h.
      
      * libmailutils/diag/dbgstderr.c: Remove.
      * libmailutils/diag/dbgsyslog.c: Remove.
      * libmailutils/diag/gdebug.c: Remove.
      * libmailutils/diag/debcat: New file.
      * libmailutils/diag/Makefile.am (libdiag_la_SOURCES): Remove these
      sources.
      * libmailutils/diag/debug.c: Rewrite from scratch.
      * libmailutils/diag/diag.c: Rewrite from scratch.
      
      * libmailutils/diag/syslog.c (mu_diag_syslog_printer): Remove function.
      (mu_log_syslog, mu_log_print_severity): New variables.
      
      * libmailutils/stream/dbgstream.c: Remove.
      * libmailutils/stream/Makefile.am (libstream_la_SOURCES): Remove dbgstream.c..
      * libmailutils/stdstream/Makefile.am (libstdstream_la_SOURCES): Add
      dbgstream.c.
      * libmailutils/stream/logstream.c (_mu_severity_str): Change strings
      to lower case.
      (_log_write): Improve handling of unrecognized escapes.
      (_log_ctl): Handle MU_LOGSTREAM_ADVANCE_LOCUS_LINE and
      MU_LOGSTREAM_ADVANCE_LOCUS_COL.
      
      * libmailutils/mailbox/folder.c (mu_folder_has_debug)
      (mu_folder_get_debug, mu_folder_set_debug): Remove functions.
      
      * mu-aux/debcat.awk: New file.
      * libmailutils/stdstream/dbgstream.c: New file.
      
      * comsat/action.c: Use new debug/log functions.
      * comsat/comsat.c: Likewise.
      * examples/aclck.c: Likewise.
      * examples/echosrv.c: Likewise.
      * examples/msg-send.c: Likewise.
      * examples/nntpclient.c: Likewise.
      * examples/numaddr.c: Likewise.
      * frm/common.c: Likewise.
      * imap4d/imap4d.c: Likewise.
      * imap4d/io.c: Likewise.
      * imap4d/util.c: Likewise.
      * libmailutils/auth/mu_auth.c: Likewise.
      * libmailutils/base/amd.c: Likewise.
      * libmailutils/cfg/driver.c: Likewise.
      * libmailutils/cfg/format.c: Likewise.
      * libmailutils/cfg/lexer.l: Likewise.
      * libmailutils/cfg/parser.y: Likewise.
      * libmailutils/mailbox/mailbox.c: Likewise.
      * libmailutils/mailbox/mbx_default.c: Likewise.
      * libmailutils/mailer/mailer.c: Likewise.
      * libmailutils/mailer/progmailer.c: Likewise.
      * libmailutils/server/acl.c: Likewise.
      * libmailutils/server/ipsrv.c: Likewise.
      * libmailutils/server/msrv.c: Likewise.
      * libmailutils/tests/wicket.c: Likewise.
      * libmu_argp/auth.c: Likewise.
      * libmu_argp/cmdline.c: Likewise.
      * libmu_argp/common.c: Likewise.
      * libmu_auth/ldap.c: Likewise.
      * libmu_cfg/acl.c: Likewise.
      * libmu_cfg/auth.c: Likewise.
      * libmu_cfg/common.c: Likewise.
      * libmu_cfg/ldap.c: Likewise.
      * libmu_cfg/sieve.c: Likewise.
      * libmu_cfg/sql.c: Likewise.
      * libmu_scm/mu_message.c: Likewise.
      * libmu_sieve/prog.c: Likewise.
      * libmu_sieve/runtime.c: Likewise.
      * libproto/imap/trace.c: Likewise.
      * libproto/mailer/mbox.c: Likewise.
      * libproto/mailer/prog.c: Likewise.
      * libproto/mailer/sendmail.c: Likewise.
      * libproto/mailer/smtp.c: Likewise.
      * libproto/mailer/smtp_trace.c: Likewise.
      * libproto/mbox/folder.c: Likewise.
      * libproto/mbox/mbox.c: Likewise.
      * libproto/nntp/folder.c: Likewise.
      * libproto/nntp/nntp_debug.c: Likewise.
      * libproto/pop/mbox.c: Likewise.
      * libproto/pop/pop3_trace.c: Likewise.
      * maidag/guile.c: Likewise.
      * maidag/lmtp.c: Likewise.
      * maidag/maidag.c: Likewise.
      * maidag/util.c: Likewise.
      * mail/mail.c: Likewise.
      * mail/mailvar.c: Likewise.
      * mail/send.c: Likewise.
      * mail/source.c: Likewise.
      * mh/mh_argp.c: Likewise.
      * mh/send.c: Likewise.
      * mimeview/mimeview.c: Likewise.
      * movemail/movemail.c: Likewise.
      * mu/wicket.c: Likewise.
      * pop3d/extra.c: Likewise.
      * pop3d/pop3d.c: Likewise.
      * readmsg/readmsg.c: Likewise.
      * sieve/sieve.c: Likewise.
      * testsuite/mimetest.c: Likewise.
      
      * libmu_sieve/sieve-priv.h (mu_sieve_machine) <parse_error_printer>
      <error_printer, debug_printer, debug>: Remove.
      <errstream>: New member.
      (mu_sv_compile_error, mu_sv_print_value_list)
      (mu_sv_print_tag_list): Change prototypes.
      
      * libmu_sieve/actions.c: Use new sieve debug functions.
      * libmu_sieve/extensions/list.c: Likewise.
      * libmu_sieve/extensions/moderator.c: Likewise.
      * libmu_sieve/extensions/pipe.c: Likewise.
      * libmu_sieve/extensions/spamd.c: Likewise.
      * libmu_sieve/extensions/timestamp.c: Likewise.
      * libmu_sieve/extensions/vacation.c: Likewise.
      * libmu_sieve/sieve.y : Likewise.
      * libmu_sieve/sieve.l: Likewise.
      * libmu_sieve/tests.c: Likewise.
      * libmu_sieve/util.c: Rewrite diagnostic support.
      * /maidag/sieve.c: Use new debug/log and sieve diagnostic functions.
      
      * mu/mu.c (main): Remove call to mu_stdstream_setup. It is called
      by mu_app_init now.
      
      * libmailutils/base/wicket.c (mu_wicket_stream_match_url): Change signature.
      * libmailutils/cfg/gocs.c (mu_gocs_logging_init): Rewrite.
      * libmailutils/mailbox/message.c (mu_message_save_to_mailbox): Remove
      mu_debug_t argument.
      * libmailutils/stdstream/basestr.c (mu_stdstream_setup): Minor fixes.
      * libmailutils/stdstream/strerr.c (mu_stdstream_strerr_create): Do
      not install filter stream if tag is NULL.
      (mu_stdstream_strerr_setup): New function.
      * libmu_argp/muinit.c (mu_app_init): Set mu_log_tag.
      Call mu_stdstream_setup.
      * libmu_scm/mu_dbgport.c: Rewrite port support.
      
      * include/mailutils/acl.h (mu_acl_get_debug)
      (mu_acl_set_debug): Remove prototypes.
      * include/mailutils/auth.h (mu_wicket_stream_match_url): Change signature.
      * include/mailutils/cfg.h (mu_cfg_locus_t): Remove typedef, use
      struct mu_locus instead.
      (mu_cfg_locus): Remove declaration.
      (mu_cfg_node)<locus>: Change type.
      (mu_cfg_node)<debug>: Remove.
      (mu_cfg_vperror,mu_cfg_perror)
      (mu_cfg_parse_error,mu_cfg_format_error): Remove prototypes.
      (mu_cfg_callback_t): Change signature.  All uses updated.
      (mu_cfg_get_debug): Remove prototype.
      (mu_cfg_assert_value_type, mu_cfg_string_value_cb): Change signature.
      (mu_cfg_tree_set_debug): Remove prototype.
      (mu_cfg_tree_create_node): Change signature.
      * include/mailutils/diag.h (MU_DIAG_): Redefine via MU_LOG_ constants.
      (mu_diag_get_debug,mu_diag_set_debug): Remove.
      (mu_diag_cont_vprintf, mu_diag_cont_printf)
      (mu_diag_at_locus): New functions.
      * include/mailutils/folder.h (mu_folder_has_debug)
      (mu_folder_get_debug, mu_folder_set_debug): Remove prototypes.
      * include/mailutils/gocs.h (mu_gocs_logging): Remove structure.
      (mu_gocs_debug)<errpfx>: Remove.
      * include/mailutils/guile.h (mu_scm_make_debug_port): Change prototype.
      * include/mailutils/mailbox.h (mu_mailbox_has_debug)
      (mu_mailbox_get_debug,mu_mailbox_set_debug): Remove.
      * include/mailutils/mailer.h (mu_mailer_get_debug)
      (mu_mailer_set_debug): Remove.
      * include/mailutils/message.h (mu_message_save_to_mailbox): Change
      signature.
      * include/mailutils/mu_auth.h (mu_auth_set_debug): Remove proto.
      * include/mailutils/nntp.h (mu_nntp_set_debug): Remove.
      * include/mailutils/progmailer.h (mu_progmailer_set_debug): Remove proto.
      * include/mailutils/server.h (mu_ip_server_set_debug)
      (mu_ip_server_get_debug): Remove proto.
      
      * include/mailutils/sieve.h (mu_sieve_locus_t): Remove.
      Use struct mu_locus instead.
      (mu_sieve_printf_t, mu_sieve_parse_error_t): Remove.
      (mu_sieve_action_log_t): Change signature.
      (mu_sieve_machine_init): Change signature.
      (mu_sieve_machine_init_ex): New function.
      (mu_sieve_get_diag_stream)
      (mu_sieve_set_diag_stream): New functions.
      (mu_sieve_set_data): New function.
      (mu_sieve_get_locus): Change signature.
      (mu_sieve_set_error,mu_sieve_set_parse_error)
      (mu_sieve_set_debug,mu_sieve_set_debug_object): Remove protos.
      * include/mailutils/stdstream.h (mu_stdstream_strerr_setup): New proto.
      * include/mailutils/stream.h (MU_LOGSTREAM_ADVANCE_LOCUS_LINE)
      (MU_LOGSTREAM_ADVANCE_LOCUS_COL): New ioctls.
      (mu_dbgstream_create): Change signature.
      * include/mailutils/sys/folder.h (_mu_folder) <debug>: Remove.
      * include/mailutils/sys/mailbox.h (_mu_mailbox) <debug>: Remove.
      * include/mailutils/sys/mailer.h (_mu_mailer) <debug>: Remove.
      * include/mailutils/sys/nntp.h (_mu_nntp) <debug>: Remove.
      * include/mailutils/syslog.h (mu_log_syslog)
      (mu_log_print_severity): New externs.
      * include/mailutils/types.hin (_mu_debug, mu_debug_t): Remove.
      * lib/tcpwrap.h: Remove unused prototypes.
      
      * imap4d/imap4d.h: Include mailutils/stdstream.h
      * mail/mail.h: Likewise.
      * pop3d/pop3d.h: Likewise.
      
      * mh/comp.c (main): Bugfix.
      
      * po/POTFILES.in: Update.
      * TODO: Update.
      Sergey Poznyakoff authored
  4. 02 Dec, 2010 1 commit
    • * TODO: Update.
      * gnulib.modules: Remove strtok_r
      * imap4d/auth_gsasl.c (auth_gsasl_capa_init): Use mu_wordsplit instead
      of strtok.
      * imap4d/imap4d.h (strtok_r): Remove declaration.
      * lib/mailcap.c (mime_context) <no_ask_str>: Remove. All uses updated.
      (mime_context_fill): Use mu_wordsplit instead
      of strtok.
      (mime_context_write_input): Tolerate ENOSYS return from mu_stream_seek.
      (display_stream_mailcap): Use mu_wordsplit instead
      of strtok.
      * libmailutils/diag/gdebug.c (mu_debug_level_from_string)
      (mu_global_debug_from_string): Use mu_wordsplit instead of strtok.
      * libmu_cfg/sieve.c (_add_path): Likewise.
      * libmu_sieve/extensions/list.c: Likewise.
      * mail/escape.c (quote0): Likewise.
      
      * mail/util.c (util_header_expand): Likewise.
      (util_rfc2047_decode): Use mu_parse_lc_all.
      * mh/mh_init.c (mh_charset): Use mu_parse_lc_all.
      * frm/common.c (get_charset): Use mu_parse_lc_all.
      
      * libmailutils/base/lcall.c: New file.
      * libmailutils/base/Makefile.am (libbase_la_SOURCES): Add lcall.c
      * libmailutils/string/strlst.c: New file.
      * libmailutils/string/Makefile.am (libstring_la_SOURCES): Add strlst.c.
      * include/mailutils/cstr.h: Include mailutils/types.h
      (mu_string_split): New proto.
      * include/mailutils/nls.h (MU_LC_LANG, MU_LC_TERR)
      (MU_LC_CSET,MU_LC_MOD): New flags.
      (mu_lc_all): New struct.
      (mu_parse_lc_all, mu_lc_all_free): New protos.
      (mu_charset_lookup): New proto (from util.h).
      * include/mailutils/util.h (mu_charset_lookup): Move to nls.h
      
      * libmailutils/base/tempfile.c (mu_tempname): Shut up compiler
      warning.
      Sergey Poznyakoff authored
  5. 02 Nov, 2010 1 commit
  6. 10 Oct, 2010 1 commit
    • * libmailutils/base/mutil.c (mu_hex2ul, mu_hexstr2ul): Move to string/hexstr.c.
      (mu_get_homedir, mu_get_full_path)
      (mu_expand_path_pattern): Move to base/filename.c.
      (mu_getcwd): Move to base/getcwd.c.
      (mu_tilde_expansion): Move to base/tilde.c
      (mu_cpystr): Move to string/cpystr.c.
      (mu_get_host_name): Move to base/hostname.c.
      (mu_set_user_email,mu_set_user_email_domain)
      (mu_get_user_email_domain,mu_aget_user_email_domain)
      (mu_get_user_email,mu_normalize_path): Move to base/usremail.c.
      (mu_tempfile,mu_tempname): Move to base/tempfile.c.
      (mu_spawnvp): Move to base/spawnvp.c.
      (mu_qualify_link,mu_unroll_symlink): Move to base/symlink.c.
      (mu_rfc2822_references,mu_rfc2822_msg_id)
      (mu_rfc2822_in_reply_to): Move to base/msgid.c.
      (mu_strcasestr): Move to string/cstrcasestr.c.
      (mu_string_unfold): Move to string/unfold.c.
      (mu_true_answer_p): Move to string/trueans.c.
      (mu_scheme_autodetect_p): Move to base/schemeauto.c.
      (mu_fd_wait): Move to base/fdwait.c.
      (mu_set_default_fallback,mu_decode_filter): Move to filter/decode.c.
      (__argp_base_name): Move to lib/argp_base.c.
      
      * libmailutils/base/fdwait.c: New file.
      * libmailutils/base/filename.c: New file.
      * libmailutils/base/getcwd.c: New file.
      * libmailutils/base/hostname.c: New file.
      * libmailutils/base/msgid.c: New file.
      * libmailutils/base/schemeauto.c: New file.
      * libmailutils/base/spawnvp.c: New file.
      * libmailutils/base/symlink.c: New file.
      * libmailutils/base/tempfile.c: New file.
      * libmailutils/base/tilde.c: New file.
      * libmailutils/base/usremail.c: New file.
      * libmailutils/base/Makefile.am: Add new files.
      
      * libmailutils/filter/decode.c: New file.
      * libmailutils/filter/Makefile.am: Add new files.
      
      * libmailutils/string/cpystr.c: New file.
      * libmailutils/string/cstrcasestr.c: New file.
      * libmailutils/string/hexstr.c: New file.
      * libmailutils/string/trueans.c: New file.
      * libmailutils/string/unfold.c: New file.
      * libmailutils/string/Makefile.am: Add new files.
      
      * lib/argp_base.c: New file.
      * lib/Makefile.am: Add new files.
      
      * include/mailutils/io.h: Include stdarg.h
      * include/mailutils/mutil.h: Rename to util.h.  Reorder prototypes
      and declarations in logical groups.  All uses changed.
      
      * include/mailutils/cstr.h (mu_strcasestr): New proto, moved from
      include/mailutils/mutil.h.
      Sergey Poznyakoff authored
  7. 09 Oct, 2010 1 commit
  8. 20 Feb, 2010 1 commit
    • * include/mailutils/iterator.h (mu_itrctl_req): New enum.
      (mu_iterator_skip, mu_iterator_ctl)
      (mu_iterator_set_itrctl): New prototypes.
      * include/mailutils/list.h (mu_list_free_item): New prototype.
      * libproto/include/iterator0.h (struct _mu_iterator)<itrctl>: New method.
      * libproto/include/list0.h (_mu_list_clear): New proto.
      * mailbox/iterator.c (mu_iterator_set_itrctl): New function.
      (mu_iterator_skip, mu_iterator_ctl): New functions.
      * mailbox/list.c (_insert_item): Re-implement function.
      (mu_list_insert): Use _insert_item again.
      (mu_list_remove): Don't keep track of the previous item.
      (list_itrctl): New function.
      (mu_list_get_iterator): Set itrctl method.
      * mailbox/listlist.c (clear_list): Rename to _mu_list_clear,
      remove static qualifier. All uses updated.
      
      * mailbox/freeitem.c: New file.
      * mailbox/Makefile.am (libmailutils_la_SOURCES): Add freeitem.c.
      
      * examples/listop.c (read_list): Rewrite to simplify
      calling convention. All callers updated.
      (inctl_tell,ictl_del,ictl_repl)
      (ictl_ins,ictl): New functions.
      (help): Add new commands.
      (shell): Handle "inctl" command.
      (delete): Fix memory leak.
      (main): Set mu_list_free_item as a destroy_item function.
      
      * mailbox/testsuite/mailbox/listop.c: Add ictl tests.
      
      * libmu_cfg/sieve.c (_add_path): Set mu_list_free_item as
      a destroy_item function.
      * mailbox/gocs.c (mu_gocs_store): Likewise.
      * maidag/lmtp.c (cfun_rcpt_to): Likewise.
      * imap4d/namespace.c (namespace_init): Likewise.
      * libmu_sieve/conf.c (_path_append): Likewise.
      Sergey Poznyakoff authored
  9. 05 Jan, 2010 1 commit
  10. 02 Jan, 2010 1 commit
    • * libmu_cfg/init.c (mu_libcfg_parse_config): Do not produce error
      if user configuration file is absent.
      * libmu_sieve/sieve.l: Include config.h in %top section.
      * mh/mh_alias.l: Likewise.
      * mimeview/mimetypes.l: Likewise.
      * mailbox/cfg_lexer.l: Likewise.
      (mu_get_config): Call mu_cfg_tree_postprocess.
      Sergey Poznyakoff authored
  11. 27 Dec, 2009 1 commit
    • Remove obsolete options (these have been made hidden in
      v. 2.0).  Handle "include" and "program" after parsing
      the sources, not while reducing the tree, as was
      previously.  Retain, however, old functions for compatibility,
      making them deprecated.  Add "query" mode to mailutils-config.
      
      * include/mailutils/cfg.h (mu_cfg_node_tag): Remove
      (mu_cfg_statement): Rename to mu_cfg_node_statement.
      (mu_cfg_tree): New member: tail.
      (mu_cfg_perror): Change signature.
      (mu_cfg_vperror, mu_cfg_parse_error): New protos.
      (MU_CFG_PATH_DELIM, MU_CFG_PATH_DELIM_STR): New defines.
      (MU_PARSE_CONFIG_PLAIN,MU_CFG_FMT_LOCUS): New constant.
      (MU_CFG_DEPRECATED): New macro.
      (mu_parse_config,mu_get_config): Deprecated.
      (mu_cfg_format_parse_tree): Change signature.
      (mu_cfg_format_node, mu_cfg_parse_file): New protos.
      (mu_cfg_tree_free): Remove stale proto.
      (mu_cfg_find_node, mu_cfg_create_subtree): New protos.
      * include/mailutils/libcfg.h (mu_libcfg_parse_config): New proto.
      (mu_parse_config_files): Deprecated.
      
      * include/mailutils/mutil.h (mu_make_file_name): New proto.
      (mu_retrieve_fp, mu_register_retriever)
      (mu_retrieve): Remove unused prototypes.
      * include/mailutils/opool.h (mu_opool_union): New proto.
      
      * libmu_argp/Makefile.am (libmu_argp_a_SOURCES): Remove
      sources (see below):
      * po/POTFILES.in: Likewise.
      * libmu_argp/gsasl.c: Remove.
      * libmu_argp/pam.c: Remove.
      * libmu_argp/radius.c: Remove.
      * libmu_argp/sql.c: Remove.
      * libmu_argp/tls.c: Remove.
      * libmu_argp/virtdomain.c: Remove.
      
      * config/mailutils-config.c: New option --query (-q)
      (main): Handle query mode.
      
      * comsat/comsat.c: Define MU_CFG_COMPATIBILITY to suppress
      deprecation warnings.
      
      * bootstrap.conf (XGETTEXT_OPTIONS): Add mu_cfg
      error reporting functions.
      
      * mailbox/Makefile.am (libmailutils_la_SOURCES): Add
      mkfilename.c
      * mailbox/mkfilename.c: New file.
      
      * imap4d/imap4d.c: Remove obsolete option (hidden since 2.0)
      * libmu_argp/auth.c: Likewise.
      * libmu_argp/cmdline.c: Likewise.
      * libmu_argp/tls.c: Likewise.
      * pop3d/pop3d.c: Likewise.
      * libmu_argp/common.c: Likewise.
      (mu_common_argp_options): New option --set.
      
      * libmu_argp/muinit.c (mu_app_init): Rewrite using parse
      tree as a principal entity.
      * libmu_cfg/init.c (mu_libcfg_parse_config): New function.
      * mailbox/cfg_driver.c (make_file_name): Remove.
      (_cb_include): Use mu_make_file_name.
      (mu_build_container): Use deprecated code only unless MU_PARSE_CONFIG_PLAIN
      flag is set.
      (mu_cfg_tree_reduce): Do nothing if the tree is NULL.
      * mailbox/cfg_format.c (format_node): Print locus optionally.
      (mu_cfg_format_parse_tree): Take additional argument.
      (mu_cfg_format_node): New function.
      * mailbox/cfg_lexer.l: Update calls to diagnostic functions.
      (mu_cfg_parse_file): New function.
      (mu_get_config): Rewrite.
      * mailbox/cfg_parser.y (parse_tree): Replace with
      parse_head, parse_tail. All usages updated.
      (mu_cfg_free_node): New function.
      (mu_cfg_vperror): New function.
      (mu_cfg_perror,mu_cfg_parse_error): New function.
      (mu_cfg_tree_union): New function.
      (mu_cfg_tree_postprocess): New function.
      (mu_cfg_find_section): Use MU_CFG_PATH_DELIM instead
      of hardcoded slash.
      (mu_cfg_value_eq): New function.
      (mu_cfg_find_node): New function. Redesign of an old idea.
      (mu_cfg_create_subtree): New function.
      * mailbox/opool.c (mu_opool_union): New function.
      
      * frm/testsuite/frm/test.exp: use --set option instead of
      the obsolete --mail-folder.
      * messages/testsuite/messages/test.exp: Likewise.
      * sieve/testsuite/sieve/action.exp: Likewise.
      * mail/testsuite/lib/mail.exp: use --set option instead of
      the obsolete --mail-spool.
      * mailbox/testsuite/lib/mailbox.exp: Likewise.
      * testsuite/lib/mailutils.exp: Likewise.
      * mailbox/mutil.c (mu_register_retriever)
      (mu_retrieve): Remove unused functions.
      
      Minor fix:
      
      * frm/common.c (frm_abort): Initialize URL
      before usage.
      (frm_scan): Don't call frm_abort on a mailbox
      that was not opened successfully.
      Sergey Poznyakoff authored
  12. 25 Aug, 2009 2 commits
    • Option descriptions in `--help' output do not constitute
      conceptual sentences. Therefore, they should not begin
      with a capital letter, nor end with a final point.
      
      Affected files:
      
      comsat/comsat.c, config/mailutils-config.c, dotlock/dotlock.c,
      frm/frm.c, frm/from.c, guimb/main.c, imap4d/imap4d.c,
      libmu_argp/auth.c, libmu_argp/common.c, libmu_argp/gsasl.c,
      libmu_argp/pam.c, libmu_argp/radius.c, libmu_argp/sieve.c,
      libmu_argp/sql.c, libmu_argp/tls.c, libmu_argp/virtdomain.c,
      libmu_auth/sql.c, libmu_cfg/sql.c, maidag/maidag.c,
      maidag/mailquota.c, maidag/mailtmp.c, mail/mail.c,
      messages/messages.c, mh/ali.c, mh/anno.c, mh/burst.c, mh/comp.c,
      mh/fmtcheck.c, mh/folder.c, mh/forw.c, mh/inc.c, mh/install-mh.c,
      mh/mark.c, mh/mh_init.c, mh/mhl.c, mh/mhn.c, mh/mhparam.c,
      mh/mhpath.c, mh/pick.c, mh/refile.c, mh/repl.c, mh/rmf.c, mh/rmm.c,
      mh/scan.c, mh/send.c, mh/sortm.c, mh/whatnow.c, mh/whom.c,
      mimeview/mimeview.c, movemail/movemail.c, pop3d/pop3d.c,
      pop3d/popauth.c, readmsg/readmsg.c, sieve/sieve.c
      Sergey Poznyakoff authored
    •    The string MESSAGE should not begin with a capital letter when it
         follows a program name and/or file name, because that isn't the
         beginning of a sentence.  (The sentence conceptually starts at the
         beginning of the line.)  Also, it should not end with a period.
      
      * include/mailutils/diag.h (mu_diag_funcall): New prototype.
      * mailbox/diag.c: New function.
      
      * comsat/action.c, comsat/comsat.c, comsat/oldcfg.c,
      config/mailutils-config.c, configure.ac, dotlock/dotlock.c,
      frm/common.c, frm/from.c, guimb/collect.c, guimb/main.c,
      guimb/util.c, imap4d/auth_gsasl.c, imap4d/auth_gss.c, imap4d/bye.c,
      imap4d/close.c, imap4d/imap4d.c, imap4d/login.c, imap4d/preauth.c,
      imap4d/signal.c, imap4d/starttls.c, imap4d/util.c, lib/mailcap.c,
      lib/tcpwrap.c, libmu_argp/mu_argp.c, libmu_auth/ldap.c,
      libmu_auth/radius.c, libmu_auth/sql.c, libmu_auth/tls.c,
      libmu_cfg/acl.c, libmu_cfg/common.c, libmu_cfg/init.c,
      libmu_cfg/ldap.c, libmu_cfg/sql.c, libmu_sieve/actions.c,
      libmu_sieve/comparator.c, libmu_sieve/extensions/moderator.c,
      libmu_sieve/prog.c, libmu_sieve/sieve.l, libproto/imap/folder.c,
      libproto/mbox/mbox.c, maidag/deliver.c, maidag/lmtp.c,
      maidag/maidag.c, maidag/mailquota.c, maidag/mailtmp.c,
      maidag/script.c, mail/alias.c, mail/cd.c, mailbox/cfg_lexer.l,
      mailbox/cfg_parser.y, mailbox/file_stream.c, mailbox/gocs.c,
      mailbox/msrv.c, mailbox/mutil.c, mailbox/registrar.c,
      messages/messages.c, mh/folder.c, mh/forw.c, mh/inc.c, mh/mark.c,
      mh/mh_ctx.c, mh/mh_fmtgram.y, mh/mh_format.c, mh/mh_init.c,
      mh/mh_list.c, mh/mh_msgset.c, mh/mh_whatnow.c, mh/mh_whom.c,
      mh/mhl.c, mh/mhn.c, mh/pick.c, mh/refile.c, mh/repl.c, mh/rmf.c,
      mh/scan.c, mh/send.c, mimeview/mimetypes.l, mimeview/mimeview.c,
      movemail/movemail.c, pop3d/apop.c, pop3d/bulletin.c, pop3d/extra.c,
      pop3d/lock.c, pop3d/logindelay.c, pop3d/pop3d.c, pop3d/popauth.c,
      pop3d/quit.c, pop3d/signal.c, pop3d/user.c, readmsg/readmsg.c,
      sieve/sieve.c: Fix error messages.
      Sergey Poznyakoff authored
  13. 04 Jul, 2009 1 commit
    • * 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
      Sergey Poznyakoff authored
  14. 19 Feb, 2009 1 commit
    • * 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.
      Sergey Poznyakoff authored
  15. 13 Feb, 2009 1 commit
    • 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.
      Wojciech Polak authored