1. 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
  2. 29 Dec, 2009 2 commits
    • * configure.ac, NEWS: Set version number 2.1.90
      
      * testsuite/lib/mailutils.exp: Quote arguments to the --set option.
      (mu_exec): escape backslashes and double-quotes in $sw.
      * frm/testsuite/frm/test.exp: Quote arguments to the --set option.
      * mail/testsuite/lib/mail.exp: Likewise.
      * mailbox/testsuite/lib/mailbox.exp: Likewise.
      * messages/testsuite/messages/test.exp: Likewise.
      * sieve/testsuite/sieve/action.exp: Likewise.
      * readmsg/testsuite/readmsg/test.exp: Remove extra backslashes,
      not needed due to the changes in mu_exec
      Sergey Poznyakoff authored
    • * gnulib.modules (mbchar, mbiter, mbslen): New modules.
      * mh/mh.h (mh_charset): New function.
      * mh/mh_format.c (DFLWIDTH): New macro.
      (mbsubstrlen, mbsnlen): New functions.
      (compress_ws): Handle multibyte strings.
      (put_string): Use number of characters, not
      octets, to update ind.
      (print_hdr_segment): Handle multibyte strings.
      (print_simple_segment, print_fmt_string): Likewise.
      (reset_fmt_defaults): Restore default WS compression.
      (mh_format): Set LC_TYPE based on the settings of
      profile variables Charset and LC_BASE (new variable).
      * mh/mh_init.c (mh_charset): New function.
      (mh_decode_2047): Use mh_charset.
      Sergey Poznyakoff authored
  3. 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
  4. 26 Dec, 2009 1 commit
    • Whitespace compression in its current form interacts badly
      with wide-character encodings. To prevent it from spoiling
      wide charater text, it is disabled by default. The user may
      turn it back on by setting "Compress-WS: yes" in his .mh_profile.
      
      * mh/mh.h (MH_FMT_COMPWS): New format flag.
      * mh/mh_format.c (COMPRESS_WS): New macro.
      (reset_fmt_defaults): Set MH_FMT_COMPWS flag
      if Compress-WS global parameter is set to true.
      (mh_format, builtin_concat): Call COMPRESS_WS.
      Sergey Poznyakoff authored
  5. 16 Dec, 2009 1 commit
    • Affected files:
      
      * comsat/comsat.c
      * examples/header.c
      * examples/mailcap.c
      * examples/pop3client.c
      * examples/url-parse.c
      * imap4d/fetch.c
      * imap4d/id.c
      * imap4d/list.c
      * imap4d/select.c
      * imap4d/status.c
      * imap4d/store.c
      * imap4d/sync.c
      * imap4d/util.c
      * include/mailutils/sieve.h
      * libmu_argp/common.c
      * libmu_argp/muinit.c
      * libmu_sieve/actions.c
      * libmu_sieve/extensions/pipe.c
      * libmu_sieve/extensions/vacation.c
      * libmu_sieve/prog.c
      * libmu_sieve/require.c
      * libmu_sieve/runtime.c
      * libmu_sieve/sieve-priv.h
      * libmu_sieve/sieve.y
      * libproto/imap/folder.c
      * libproto/imap/mbox.c
      * libproto/mailer/sendmail.c
      * libproto/mbox/mbox.c
      * libproto/pop/pop3_list.c
      * libproto/pop/pop3_stat.c
      * maidag/lmtp.c
      * maidag/sieve.c
      * mail/copy.c
      * mail/decode.c
      * mail/envelope.c
      * mail/eq.c
      * mail/escape.c
      * mail/from.c
      * mail/mail.h
      * mail/mailline.c
      * mail/mailvar.c
      * mail/size.c
      * mail/util.c
      * mail/write.c
      * mailbox/cfg_format.c
      * mailbox/folder.c
      * mailbox/parse822.c
      * mailbox/system.c
      * messages/messages.c
      * mh/folder.c
      * mh/forw.c
      * mh/inc.c
      * mh/mh.h
      * mh/mh_alias.l
      * mh/mh_fmtgram.y
      * mh/mh_getopt.h
      * mh/mh_init.c
      * mh/mh_msgset.c
      * mh/mh_whatnow.c
      * mh/mhn.c
      * mh/pick.y
      * mimeview/mimetypes.y
      * python/libmu_py/debug.c
      * sieve/sieve.c
      Sergey Poznyakoff authored
  6. 15 Dec, 2009 1 commit
    • * mailbox/mbx_default.c (attach_auth_ticket): Do not
      proceed if auth is NULL.
      * mh/mh_getopt.h (struct mh_argp_data): Change return type
      and signature of handler.
      (mh_argp_parse): Likewise.
      * mh/mh_argp.c (parse_opt): Rewrite using new
      handler prototype.
      (mh_argp_parse): Use new hanlder type.
      Assign argp children.
      
      * mh/mh_init.c (mh_init): Call mu_init_tls_libs.
      
      * mh/ali.c: Update opt_handler
      * mh/anno.c: Update opt_handler
      * mh/burst.c: Update opt_handler
      * mh/comp.c: Update opt_handler
      * mh/fmtcheck.c: Update opt_handler
      * mh/folder.c: Update opt_handler
      * mh/forw.c: Update opt_handler
      * mh/inc.c: Update opt_handler
      * mh/install-mh.c: Update opt_handler
      * mh/mark.c: Update opt_handler
      * mh/mhl.c: Update opt_handler
      * mh/mhn.c: Update opt_handler
      * mh/mhparam.c: Update opt_handler
      * mh/mhpath.c: Update opt_handler
      * mh/pick.c: Update opt_handler
      * mh/refile.c: Update opt_handler
      * mh/repl.c: Update opt_handler
      * mh/rmf.c: Update opt_handler
      * mh/rmm.c: Update opt_handler
      * mh/scan.c: Update opt_handler
      * mh/send.c: Update opt_handler
      * mh/sortm.c: Update opt_handler
      * mh/whatnow.c: Update opt_handler
      * mh/whom.c: Update opt_handler
      Sergey Poznyakoff authored
  7. 02 Dec, 2009 1 commit
  8. 01 Dec, 2009 1 commit
  9. 05 Nov, 2009 1 commit
  10. 31 Oct, 2009 2 commits
  11. 25 Oct, 2009 3 commits
    • * include/mailutils/gsasl.h (mu_gsasl_module_data): Mark as extern.
      Sergey Poznyakoff authored
    • * 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.
      Sergey Poznyakoff authored
    • * mailbox/assoc.c (assoc_remove): Fix incorrect copying
      between assoc slots.
      * mailbox/cfg_parser.y (STRTONUM): Remove useless
      dereferencing. Change the loop from `while' to `for'.
      Sergey Poznyakoff authored
  12. 28 Sep, 2009 2 commits
  13. 24 Sep, 2009 5 commits
    • * include/mailutils/cfg.h (mu_cfg_perror): Mark as printflike.
      (mu_cfg_format_error): Likewise.
      * libmu_argp/radius.c (mu_radius_argp_option): Fix typo in the
      docstring.
      * mail/mail.h [!WITH_READLINE] (mailvar_set_compl): New define.
      Sergey Poznyakoff authored
    • * imap4d/auth_gsasl.c (auth_gsasl): Make IMAP server wait
      for empty final client response.
      * include/mailutils/gsasl.h (mu_gsasl_stream_create): Don't
      use deprecated GNU SASL types.
      Simon Josefsson authored
    • * imap4d/imap4d.c (imap4d_cfg_param): New global
      statement 'transcript'.
      (imap4d_connection): The transcript parameter overrides
      global imap4d_transcript settings.
      * pop3d/pop3d.c (pop3d_cfg_param, pop3d_connection): Likewise.
      Sergey Poznyakoff authored
    • Bugfixes · bc4fde46
      * imap4d/util.c (imap4d_getline): Do not report
      ERR_NO_IFILE if an empty line is read.
      * mailbox/msrv.c (server_section_parser): Catch
      null tags.
      
      Bugs reported by Simon Josefsson.
      Sergey Poznyakoff authored
    • * libproto/mbox/mboxscan.c (mbox_scan_internal): Fix
      body size calculation: -1 was returned for empty body.
      Bug reported by Con Tassios <ct@swin.edu.au>.
      * po/POTFILES.in: Add mail/mailvar.c
      Sergey Poznyakoff authored
  14. 10 Sep, 2009 1 commit
  15. 08 Sep, 2009 1 commit
  16. 02 Sep, 2009 1 commit
  17. 01 Sep, 2009 2 commits
  18. 29 Aug, 2009 2 commits
  19. 28 Aug, 2009 1 commit
  20. 27 Aug, 2009 3 commits
    • Fix RPM spec. · 3bacf09e
      * mu-aux/mailutils.spec.in: Fix.
      Wojciech Polak authored
    • * configure.ac: New option --with-pythondir
      (PYTHON_SITE_DIR, PYTHON_EXEC_DIR): New subst variables.
      * python/libmu_py/Makefile.am: use pythonexec_LTLIBRARIES,
      instead of pythonexec_LTLIBRARIES.
      (pythonexecdir): New variable.
      * python/mailutils/Makefile.am: use pythonsite_PYTHON,
      instead of pkgpython_PYTHON.
      (pythonsitedir): New variable.
      Sergey Poznyakoff authored
    • * movemail/movemail.c (_cb_mailbox_ownership): Fix
      leftover diagnostic messages.
      * config/mailutils-config.c (options): Fix typo.
      Sergey Poznyakoff authored
  21. 26 Aug, 2009 1 commit
  22. 25 Aug, 2009 3 commits
    • * comsat/action.c (action_exec): Remove `line' argument.
      Do not explicitly add locus to the messages.
      (run_user_action): Add locus to diagnostics mu_debug_t,
      so it is prepended to all diagnostic messages automatically.
      * comsat/comsat.c: Improve help output
      * frm/frm.c (attr_help): Remove unnecessary variable.
      Sergey Poznyakoff authored
    • 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
  23. 21 Aug, 2009 1 commit
    • * python/libmu_py/mailbox.c (api_mailbox_append_message): Bugfix.
      * python/libmu_py/header.c (api_header_get_value_n): New function.
      * python/mailutils/header.py (Header.get_value_n): New method.
      * python/mailutils/mailbox.py (Mailbox.__str__): New method.
      * python/mailutils/message.py (Message.__str__): Likewise.
      Wojciech Polak authored
  24. 20 Aug, 2009 2 commits
    • Minor fixes. · 5171c0f9
      * .gitignore: Add pathdefs.h
      * examples/Makefile.am (muauth_CPPFLAGS)
      (muemail_CPPFLAGS): New variables.
      * examples/argcv.c (main): Remove unused local.
      * include/mailutils/gsasl.h [USE_GSASL]: Change to WITH_GSASL.
      * include/mailutils/libcfg.h (mu_acl_cfg_init): New prototype.
      * include/mailutils/mu_auth.h (mu_authenticate): Password is const.
      * include/mailutils/python.h: Fix indentation.
      (mu_py_script_data): module_name is const char *.
      * libmu_auth/radius.c: Include radius/debug.h
      * libproto/mailer/smtp.c: Include io.h and secret.h
      * mail/mail.c: Fix indentation.
      * mail/util.c (util_rfc2047_decode): Fix local variable declaration.
      * mailbox/mu_auth.c (mu_authenticate): Password is const.
      * mh/mh.h (mh_alias_get, mh_alias_get_address)
      (mh_alias_get_alias): Name is const.
      * mh/mh_alias.y: Likewise.
      * mh/mh_list.c (print_header_value): Fix improper use of mu_toupper.
      * mh/mh_whatnow.c (invoke): Add typecasts.
      * python/libmu_py/nls.c (api_nls_set_locale): Remove unused automatic.
      * python/libmu_py/sieve.c (_sieve_error_printer): Provide missing
      return value.
      (_sieve_debug_printer): Likewise.
      Sergey Poznyakoff authored
    • * movemail/movemail.c: Implement new configuration keyword
      "mailbox-ownership" (and the --owner command line option).
      * doc/texinfo/programs.texi: Document new movemail features.
      (Ownership): New subsection stub.
      * NEWS: Update
      Sergey Poznyakoff authored