1. 24 Nov, 2016 1 commit
    • * include/mailutils/sieve.h (MU_SIEVE_DEBUG_TRACE)
      (MU_SIEVE_DEBUG_INSTR,MU_SIEVE_DEBUG_DISAS)
      (MU_SIEVE_DRY_RUN): Remove.
      (mu_sieve_machine_init_ex): Remove proto.
      (mu_sieve_set_dbg_stream,mu_sieve_get_dbg_stream)
      (mu_sieve_stream_save)
      (mu_sieve_stream_restore): New protos.
      * libmu_sieve/runtime.c (INSTR_DISASS,INSTR_DEBUG): Reimplement.
      * libmu_sieve/sieve-priv.h (MU_SV_SAVED_ERR_STATE)
      (MU_SV_SAVED_DBG_STATE,MU_SV_SAVED_STATE): New bitflags.
      (mu_sieve_state_disass): New constant.
      (mu_sieve_machine)<state_flags, err_mode>
      <err_locus,dbg_mode,dbg_locus>: New members.
      <dbgstream>: New member.
      * libmu_sieve/sieve.y (mu_sieve_machine_init_ex): Remove.
      (mu_sieve_machine_dup, mu_sieve_machine_inherit): Fix.
      (mu_sieve_set_dbg_stream)
      (mu_sieve_get_dbg_stream): New functions.
      (mu_sieve_machine_destroy): Destroy dbgstream.
      (with_machine): Preserve stream state (mode & locus).
      * libmu_sieve/util.c (mu_i_sv_debug,mu_i_sv_debug_command): Use ioctl
      instead of format strings.
      (mu_sieve_stream_save, mu_sieve_stream_restore): New functions.
      * python/libmu_py/sieve.c (api_sieve_machine_init): Use
      mu_sieve_machine_init.
      * sieve/sieve.c: Improve help output.
      (main): Dump disassembled code to standard output.
      Sergey Poznyakoff authored
  2. 14 Nov, 2016 1 commit
    • This was accidentally broken by commit eea2c4aa.
      
      * include/mailutils/mailbox.h (mu_mailbox_expand_name): New proto.
      * libmailutils/mailbox/mbx_default.c (mu_mailbox_expand_name): New function.
      (mu_mailbox_create_default): Use it.
      (mu_set_folder_directory): Accept NULL as argument.
      (mu_folder_directory): Reset default value after assiging it.  This way
      the folder directory still defaults to the same value as earlier, but
      can be reset to NULL, if so desired.
      (plus_expand): Return a copy of the input string if folder is NULL.
      
      * mail/copy.c (append_to_mailbox): Use mu_mailbox_create, as the mailbox
      name has already been expanded.
      * mail/file.c (mail_expand_name): Use mu_mailbox_expand_name.
      (mail_file): Use mu_mailbox_create, as the mailbox
      name has already been expanded.
      * mail/mailvar.c (mailvar_cmd): New enum.
      (mailvar_symbol) <handler>: Change signature and return type.
      (mailvar_set): Rewrite. Take care not to modify the variable
      if the handler (if any) returns non-null or if the memory can't
      be allocated.
      (set_folder): Handler for the "folder" variable.
      
      * mail/tests/copy01.at: New testcase.
      * mail/tests/copy02.at: New testcase.
      * mail/tests/copy03.at: New testcase.
      * mail/tests/copy04.at: New testcase.
      * mail/tests/Makefile.am: Add new tests.
      * mail/tests/testsuite.at (MUT_MAIL_CMD): Set MAILRC to /dev/null.
      Add new tests.
      Sergey Poznyakoff authored
  3. 05 Nov, 2016 1 commit
  4. 04 Nov, 2016 1 commit
    • * mail/escape.c (parse_headers): Moved to send.c
      (check_headers): New function.
      (escape_continue): Use check_headers.
      * mail/mail.c (read_recipients): New variable.
      The -t option sets read_recipients and editheaders
      * mail/mail.h (parse_headers): New proto.
      * mail/send.c: Special handling for -t option.
      (parse_headers): New function.
      * movemail/movemail.c (onerror statement): Accept a list as
      argument.
      
      * doc/texinfo/mailutils.texi: Update.
      * doc/texinfo/programs.texi: Update.
      Sergey Poznyakoff authored
  5. 02 Nov, 2016 1 commit
    • * include/mailutils/cfg.h (mu_cfg_parse_hints):
      Rename site_rcfile to site_file, custom_rcfile to custom_file.
      Remove append_tree and data fields.
      (MU_PARSE_CONFIG_GLOBAL,MU_CFG_PARSE_PROGRAM): Remove.
      (MU_PARSE_CONFIG_VERBOSE): Rename to MU_CF_VERBOSE.
      (MU_PARSE_CONFIG_DUMP): Rename to MU_CF_DUMP.
      (MU_CFG_FMT_LOCUS): Rename to MU_CF_FMT_LOCUS.
      (MU_CFG_FMT_VALUE_ONLY): Rename to MU_CF_FMT_VALUE_ONLY.
      (MU_CFG_FMT_PARAM_PATH): Rename to MU_CF_FMT_PARAM_PATH.
      
      (MU_CFG_COMPATIBILITY,MU_CFG_DEPRECATED): Remove.
      (mu_parse_config, mu_get_config): Remove deprecated functions.
      
      * libmailutils/cli/cli.c (mu_general_help_text): New global.
      (app_data): New struct.
      (init_options): Construct configuration option group depending on
      which configuration files are in use.
      (mu_cli_ext): Don't use per-user configuration files for servers.
      Pass pointer to app_data structure as po.po_data
      (mu_cli): Set MU_CFHINT_PER_USER_FILE flag by default.
      
      * mail/testsuite/lib/mail.exp: Rewrite invocation of the mu_init command.
      * include/mailutils/cli.h (mu_cli_setup) <server>: New field.
      
      * comsat/comsat.c (cli): Mark as server.
      (main): Bugfix: pass pointer to server to mu_cli.
      * imap4d/imap4d.c (cli): Mark as server.
      * pop3d/pop3d.c: Likewise.
      
      * comsat/tests/testsuite.at: Use the --no-site-config
      option.
      * imap4d/tests/testsuite.at: Likewise.
      
      * libmailutils/cfg/driver.c: Update.
      * libmailutils/cfg/format.c: Update.
      * libmailutils/cfg/lexer.l: Update.
      * libmailutils/cfg/parser.y: Update.
      * mu/acl.c: Update.
      
      * pop3d/testsuite/lib/pop3d.exp: Likewise.
      
      * mu/mu.c: Don't read configuration files.
      * mu/query.c: Fix args_doc
      
      * testsuite/lib/mailutils.exp (mu_init): Change option handling.
      Set --no-config option by default.
      Sergey Poznyakoff authored
  6. 19 Oct, 2016 2 commits
    • * Makefile.am: Remove libmu_argp and libmu_cfg
      * configure.ac: Likewise.
      * libmu_argp/: Remove.
      * libmu_cfg/: Remove.
      * include/mailutils/Makefile.am (pkginclude_HEADERS): Remove gocs.h,
      libargp.h, libcfg.h
      
      * frm/frm.c: Register tls auth module
      * frm/from.c: Likewise.
      * maidag/maidag.c: Likewise.
      * mail/mail.c: Likewise.
      * messages/messages.c: Likewise.
      * movemail/movemail.c: Likewise.
      * readmsg/readmsg.c: Likewise.
      * sieve/sieve.c: Likewise.
      * frm/frm.h: Remove obsolete includes
      
      * imap4d/Makefile.am: Update.
      * imap4d/imap4d.c: Use mu_cli for command line and configuration
      parsing.
      * imap4d/imap4d.h: Update.
      
      * include/mailutils/gocs.h: Remove.
      * libmailutils/cfg/gocs.c: Remove.
      * libmailutils/cfg/Makefile.am: Remove gocs.c
      
      * include/mailutils/cli.h (mu_cli_capa_apply): Rename to
      mu_cli_capa_extend_settings
      (mu_cli_setup) <inorder, prog_doc_hook>: New fields.
      * include/mailutils/daemon.h: Remove obsolete includes.
      * include/mailutils/gsasl.h: Likewise.
      * include/mailutils/mailutils.h: Update.
      * include/mailutils/mu_auth.h (mu_auth_mode): New enum
      (mu_auth_module): Redo structure.
      * include/mailutils/opt.h (mu_parseopt) <po_prog_doc_hook>: New field.
      * include/mailutils/sql.h (mu_sql_module_config): New extern.
      (mu_sql_interface_index): Change proto.
      * libmailutils/auth/mu_auth.c: Rewrite.
      * libmailutils/auth/system.c (mu_auth_system_module): Update structure
      * libmailutils/cli/capa.c (mu_cli_capa_apply): Rename to
      mu_cli_capa_extend_settings
      * libmailutils/cli/cli.c: Extend settings from auth modules as well.
      * libmailutils/opt/help.c (mu_program_help): Invoke po_prog_doc_hook
      if defined.
      * libmailutils/opt/opt.c (parseopt_init): Check the
      MU_PARSEOPT_PROG_DOC_HOOK flag.
      (find_long_option): Fix recognition of ambiguous options in case
      of exact match.
      * libmu_auth/gsasl.c: Add configuration.
      * libmu_auth/ldap.c: Likewise.
      * libmu_auth/pam.c: Likewise.
      * libmu_auth/radius.c: Likewise.
      * libmu_auth/sql.c: Likewise.
      * libmu_auth/tls.c: Likewise.
      * libmu_auth/virtual.c: Likewise.
      
      * mu/Makefile.am: Update.
      * mu/mu.c: Rewrite using mu_cli
      * mu/mu.h: Likewise.
      * mu/acl.c: Likewise.
      * mu/cflags.c: Likewise.
      * mu/dbm.c: Likewise.
      * mu/dispatch.c: Likewise.
      * mu/filter.c: Likewise.
      * mu/flt2047.c: Likewise.
      * mu/getans.c: Likewise.
      * mu/getarg.c: Likewise.
      * mu/getyn.c: Likewise.
      * mu/help.c: Likewise.
      * mu/imap.c: Likewise.
      * mu/info.c: Likewise.
      * mu/ldflags.c: Likewise.
      * mu/logger.c: Likewise.
      * mu/pop.c: Likewise.
      * mu/query.c: Likewise.
      * mu/send.c: Likewise.
      * mu/shell.c: Likewise.
      * mu/smtp.c: Likewise.
      * mu/util.c: Likewise.
      * mu/verbose.c: Likewise.
      * mu/wicket.c: Likewise.
      
      * pop3d/Makefile.am: Update.
      * pop3d/pop3d.c: Convert to mu_cli interface.
      * pop3d/pop3d.h: Likewise.
      
      * sql/sql.c (mu_sql_interface_index): Change argument qualifiers.
      Sergey Poznyakoff authored
  7. 15 Oct, 2016 1 commit
  8. 06 Oct, 2016 1 commit
  9. 22 Aug, 2016 1 commit
  10. 22 Jan, 2016 1 commit
  11. 09 Jul, 2015 1 commit
    • * testsuite/testsuite.inc (MUT_DEFAULT_OPTIONS): New define.
      * maidag/tests/testsuite.at: Add MUT_DEFAULT_OPTIONS to the
      options passed to maidag
      * mail/tests/cols00.at: Use MUT_MAIL_CMD
      * mail/tests/cols01.at: Likewise.
      * mail/tests/copy00.at: Likewise.
      * mail/tests/nohome.at: Likewise.
      * mail/tests/testsuite.at (MUT_MAIL_CMD): New define.  Pass
      MUT_DEFAULT_OPTIONS to mail.
      * sieve/tests/testsuite.at: Pass MUT_DEFAULT_OPTIONS to sieve.
      Sergey Poznyakoff authored
  12. 02 Jul, 2015 1 commit
    • * configure.ac: Version 2.99.99
      * NEWS: Update.
      * libmu_argp/mailutils.c: New file.
      * libmu_argp/Makefile.am: Add mailutils.c
      * libmu_argp/cmdline.c (all_cmdline_capa): Add mu_mailutils_cmdline.
      (mu_libargp_init): Register modflags function.
      * libmu_argp/mu_argp.c (mu_build_argp): Retain negative group numbers.
      (argp_capa): New member: modflags.
      (mu_register_argp_capa): Take pointer to modflags function as 3rd
      parameter.
      (mu_build_argp): Use modflags member to alter argp flags.
      (mu_argp_build): Take pointer to flags as its third argument.
      * libmu_argp/muinit.c (mu_app_init): Pass pointer to flags to mu_argp_build.
      * libmu_cfg/init.c (mu_libcfg_init): Silently ignore unknown groups
      
      * include/mailutils/libargp.h (mu_mailutils_cmdline): New extern.
      (mu_cmdline_capa): New member: modflags.
      (mu_argp_build): Change signature.
      (mu_register_argp_capa): Change signature.
      * libmailutils/cfg/gocs.c (std_gocs_table): Add dummy entry for "mailutils"
      
      * mu/Makefile.am (bin_PROGRAMS): Rename to "mailutils".
      * mu/dispatch.c (dispatch_docstring): Use mu_program_name instead of
      the hardcoded name.
      * mu/mu.c: Use "mailutils" capability.
      * mu/mailutils-config.in: Rename to mu/mailutils-config
      
      * comsat/comsat.c: Use "mailutils" capability.
      * dotlock/dotlock.c: Likewise.
      * examples/muauth.c: Likewise.
      * examples/muemail.c: Likewise.
      * frm/frm.c: Likewise.
      * frm/from.c: Likewise.
      * imap4d/imap4d.c: Likewise.
      * maidag/maidag.c: Likewise.
      * mail/mail.c: Likewise.
      * messages/messages.c: Likewise.
      * mimeview/mimeview.c: Likewise.
      * movemail/movemail.c: Likewise.
      * pop3d/pop3d.c: Likewise.
      * pop3d/popauth.c: Likewise.
      * readmsg/readmsg.c: Likewise.
      * sieve/sieve.c: Likewise.
      Sergey Poznyakoff authored
  13. 26 Jun, 2015 1 commit
    • * configure.ac: Fix checks for readline.  If it is
      not present - bail out if it was explicitly requested
      and silently disable it otherwise.
      Check for dbm_dirfno and dbm_pagfno (see libmu_dbm/ndbm.c,
      below).
      * examples/mboxidx.c (set_charset_filter): Fix array dimensions.
      * lib/python.c (python_done): add missing return statement.
      * libmailutils/address/address.c (mu_address_union): Fix size
      argument to memset.
      * libmailutils/server/msrv.c (mu_m_server_get_hints): Likewise.
      * libmu_compat/vartab.c (vardefn_free): Likewise.
      * libmailutils/cfg/parser.y (_set_fun): cast enum to size_t before
      comparison
      * libmailutils/diag/wd.c (mu_wd): fix while loop.
      * libmailutils/tests/url-parse.c (main): Fix printf format.
      * libmu_dbm/ndbm.c (_ndbm_get_fd): One of dbm_dirfno or
      dbm_pagfno may be missing (on FreeBSD, dbm_pagfno expands
      to a non-defined macro, which produces compilation error.
      * mail/mailvar.c (mailvar_varptr_comp): Remove.
      (mailvar_list_copy): Use mailvar_variable_comp instead
      of the removed mailvar_varptr_comp.
      Sergey Poznyakoff authored
  14. 05 May, 2015 2 commits
    • Minor fix · 007bb14e
      Sergey Poznyakoff authored
    • * configure.ac: Configure mail/tests subdirectory.
      * mail/Makefile.am (SUBDIRS): Add tests.
      * mail/tests/testsuite.at: New file.
      * mail/tests/Makefile.am: New file.
      * mail/tests/.gitignore: New file.
      * mail/tests/atlocal.in: New file.
      * mail/tests/cols00.at: New file.
      * mail/tests/cols01.at: New file.
      * mail/tests/copy00.at: New file.
      * mail/tests/nohome.at: New file.
      * mail/tests/version.at: New file.
      Sergey Poznyakoff authored
  15. 04 May, 2015 1 commit
    • Last argument is treated as a mailbox only if it begins with
      a mailbox scheme (mbox://, maildir://, etc).
      
      * mail/copy.c (append_to_mailbox)
      (append_to_file): New functions.
      (mail_copy0): Depending on whether mailbox scheme is specified,
      call one of the above functions.
      * doc/texinfo/programs.texi (mail): Fix documentation of the copy
      command.
      * mail/testsuite/mail/write.exp: Update line/character counts for
      [Ss]ave commands.
      Sergey Poznyakoff authored
  16. 03 May, 2015 1 commit
    • * mail/util.c (util_command_list): Use util_screen_columns instead of
      util_getcols.
      (util_getcols): Don't use COLUMNS.
      (util_getlines): Don't use LINES.
      * mail/mail.c: Don't force COLUMNS and LINES (they are normally not
      exported, so setting them will cause util_getcols and util_getlines
      to return wrong results).
      Set variable "columns" from envvar COLUMNS, if set to a numeric value.
      Set variable "screen" from envvar LINES, if set to a numeric value.
      * mail/from.c (format_headline): Use util_screen_columns instead of
      util_getcols.
      * mail/mailvar.c (mailvar_print,mail_variable): Likewise.
      * mail/print.c (mail_print_msg): Likewise.
      Sergey Poznyakoff authored
  17. 27 Apr, 2015 1 commit
    • Setting non-existing variable in bin/mail at the start of the session
      caused further calls to set (without arguments) to malfunction.  This
      reveiled bugs in list mapping functions.
      
      On the other hand, invoking completion after "set var=" caused bin/mail
      to coredump.
      
      * libmailutils/list/gmap.c (mu_list_gmap): Initialize rc.
      * libmailutils/list/map.c: Always initialize *res.
      * mail/mailvar.c (mailvar_list_copy): The call to mu_list_map
      does not necessarily create the list. Create it, if it doesn't.
      (mailvar_iterate_next): Redo the loop: check if there are items
      to iterate over.
      Sergey Poznyakoff authored
  18. 02 Mar, 2015 1 commit
  19. 03 Dec, 2014 1 commit
  20. 26 Feb, 2014 2 commits
  21. 05 Feb, 2014 1 commit
  22. 19 Nov, 2012 1 commit
    • * imap4d/imap4d.c: Avoid gcc warnings.
      * libmailutils/tests/imapio.c (main): Fix format specifier.
      * maidag/mailquota.c (dbm_retrieve_quota): Likewise.
      * mail/quit.c (mail_mbox_close): Likewise.
      * mail/mail.c (options): Fix improper initialization.
      * mu/mu.h (mu_getans): Add proto.
      * mu/util.c: Include netinet/in.h
      Sergey Poznyakoff authored
  23. 07 Aug, 2012 1 commit
  24. 19 Jul, 2012 1 commit
    • * NEWS: Update.
      * mail/escape.c (escape_check_args): Take two additional arguments
      specifying minimum and maximum number of parameters to expect.
      All uses updated. Remove static qualifier.
      * mail/mail.h (send_attach_file): Rename to send_attach_file_default
      (escape_check_args,escape_list_attachments)
      (escape_attach,escape_remove_attachment): New protos.
      * mail/send.c (send_attach_file): Take encoding and content type
      as arguments.
      (send_attach_file_default): New function.
      (escape_list_attachments)
      (escape_attach,escape_remove_attachment): New functions.
      * mail/table.c: New escapes: l, +, ^
      
      * include/mailutils/list.h (mu_list_remove_nth)
      (mu_list_remove_nth_nd): New protos.
      * libmailutils/list/Makefile.am (liblist_la_SOURCES): Add removenth.c
      * libmailutils/list/removenth.c: New file.
      Sergey Poznyakoff authored
  25. 18 Jul, 2012 1 commit
    • * NEWS: Update.
      * doc/imprimatur: Upgrade.
      * libmailutils/mime/attachment.c (mu_message_create_attachment): Bugfixes.
      * mail/mail.c: New options --attach, --content-type and
      --encoding.
      * mail/mail.h (default_encoding, default_content_type): New externs.
      (send_attach_file): New proto.
      * mail/send.c (send_attach_file): New function.
      (save_dead_message_env): New function.
      (save_dead_message): Rewrite.
      (mail_send0): Attach files, if requested.
      Sergey Poznyakoff authored
  26. 17 Jul, 2012 1 commit
    • * am/enable.m4 (MU_ENABLE_BUILD): Change handling of additional-cond
      ($4): the --{enable|disable}-build-* argument value overrides it.
      This allows to use such configuration shortcuts as:
      
        --disable-build-clients --enable-build-mail
      
      which will build only mail, but no other client.
      
      * configure.ac: New option --with-dbm can be used to
      enable/disable building of all available DBM interfaces.
      It can be used in conjunction with implementation-specific
      options in the same way as described above, e.g.:
      
        --without-dbm --with-gdbm
      
      New option --with-mailbindir allows for overriding the installation
      directory for mail[x] only.
      
      * mail/Makefile.am (mailbindir): New variable.
      (bin_PROGRAMS): Rename to mailbin_PROGRAMS.
      Sergey Poznyakoff authored
  27. 23 Apr, 2012 1 commit
    • Bugfixes. · f9a486e8
      * libproto/mailer/smtp.c (_smtp_set_rcpt): Assign rcpt_to a copy of the
      recipient address.
      * mail/util.c (util_header_expand): Make sure exp is always initialized.
      * mh/send.c (main): Process mtstailor before checking input files, so
      its settings affect creation of additional headers and adresses. In
      particular, this allows for setting the sender address in mtstailor.
      Sergey Poznyakoff authored
  28. 25 Mar, 2012 1 commit
    • * examples/aclck.c: Check return values from strdup.
      * libmailutils/base/usremail.c: Likewise.
      * libmailutils/mailbox/bodystruct.c: Likewise.
      * lib/mailcap.c: Likewise.
      * libmailutils/mailbox/mbx_default.c: Likewise.
      * libmailutils/server/acl.c: Likewise.
      * libmailutils/stream/logstream.c: Likewise.
      * libmailutils/stream/message_stream.c: Likewise.
      * libmu_argp/mu_argp.c: Likewise.
      * libmu_auth/ldap.c: Likewise.
      * libmu_auth/pam.c: Likewise.
      * libmu_auth/sql.c: Likewise.
      * libmu_sieve/comparator.c: Likewise.
      * libmu_sieve/conf.c: Likewise.
      * libmu_sieve/extensions/list.c: Likewise.
      * libmu_sieve/extensions/vacation.c: Likewise.
      * libproto/mailer/prog.c: Likewise.
      * libproto/mailer/smtp_io.c: Likewise.
      * maidag/lmtp.c: Likewise.
      * python/libmu_py/address.c: Likewise.
      * sql/odbc.c
      
      * examples/sfrom.c (main): Avoid unnecessary memory allocation.
      * libmailutils/mailbox/mailbox.c: Likewise.
      
      * frm/frm.h: Include mailutils/alloc.h, remove xalloc.h
      * mh/mh.h: Likewise.
      
      * imap4d/imap4d.h: Remove xalloc.h
      * mail/mail.h: Likewise.
      * mimeview/mimeview.h: Likewise.
      * mu/acl.c: Likewise.
      * readmsg/readmsg.c: Likewise.
      
      * include/mailutils/locker.h (mu_locker_set_default_external_program):
      Change returned type.
      * include/mailutils/mailbox.h (mu_set_folder_directory): Change
      returned type.
      * libmailutils/base/locker.c (mu_locker_set_default_external_program):
      Return int (error code).
      * libmailutils/base/tilde.c: Add extra checks
      * libmailutils/mime/mimehdr.c (_mime_header_parse): Bugfix.
      * mail/folders.c: Don't use alloca, use mu_alloc instead. It
      was the only use of that function in Mailutils, so this change
      allows to withdraw the alloca module.
      
      * gnulib.modules (alloca, malloc)
      (realloc, xalloc): Remove.
      
      * frm/common.c: Use mu_alloc and friends instead of xmalloc.
      * frm/from.c: Likewise.
      * imap4d/append.c: Likewise.
      * imap4d/auth_gsasl.c: Likewise.
      * imap4d/authenticate.c: Likewise.
      * imap4d/fetch.c: Likewise.
      * imap4d/imap4d.c: Likewise.
      * imap4d/io.c: Likewise.
      * imap4d/list.c: Likewise.
      * imap4d/namespace.c: Likewise.
      * imap4d/parsebuf.c: Likewise.
      * imap4d/preauth.c: Likewise.
      * imap4d/rename.c: Likewise.
      * imap4d/search.c: Likewise.
      * imap4d/util.c: Likewise.
      * libmu_argp/muinit.c: Likewise.
      * mail/alias.c: Likewise.
      * mail/alt.c: Likewise.
      * mail/copy.c: Likewise.
      * mail/decode.c: Likewise.
      * mail/escape.c: Likewise.
      * mail/file.c: Likewise.
      * mail/from.c: Likewise.
      * mail/mail.c: Likewise.
      * mail/mailline.c: Likewise
      * mail/mailvar.c: Likewise
      * mail/msgset.y: Likewise
      * mail/page.c: Likewise
      * mail/send.c: Likewise
      * mail/shell.c: Likewise
      * mail/unset.c: Likewise
      * mail/util.c: Likewise
      * mh/folder.c: Likewise
      * mh/mh_alias.l: Likewise
      * mh/mh_alias.y: Likewise
      * mh/mh_fmtgram.y: Likewise
      * mh/mh_format.c: Likewise
      * mh/mh_global.c: Likewise
      * mh/mh_init.c: Likewise
      * mh/mh_list.c: Likewise
      * mh/mh_whatnow.c: Likewise
      * mh/mh_whom.c: Likewise
      * mh/mhn.c: Likewise
      * mh/pick.y: Likewise
      * mh/prompter-rl.c: Likewise
      * mh/refile.c: Likewise
      * mh/repl.c: Likewise
      * mh/send.c: Likewise
      * mh/sortm.c: Likewise
      * mimeview/mimetypes.y: Likewise
      * mu/dbm.c: Likewise
      * mu/dispatch.c: Likewise
      * mu/imap.c: Likewise
      * mu/pop.c: Likewise
      * mu/shell.c: Likewise
      * pop3d/apop.c: Likewise
      * pop3d/bulletin.c: Likewise
      * pop3d/popauth.c: Likewise
      * pop3d/user.c: Likewise
      Sergey Poznyakoff authored
  29. 13 Mar, 2012 1 commit
  30. 05 Jan, 2012 1 commit
  31. 21 Dec, 2011 1 commit
    • Old API relied on passing a pointer to the buffer string and its size,
      which is defective.  The new API, in addtion to that, provides functions
      for obtaining a pointer to the statically allocated original value, a
      pointer to dynamically allocated copy, and a function for formatting the
      address directly to a MU stream.
      
      Two functions are marked as deprecated: mu_address_to_string and
      mu_address_format_string.  Both assume a pointer to an allocated string
      of a fixed size, which is far from being convenient nor reliable enough.
      
      * include/mailutils/address.h (MU_ADDR_HINT_ADDR): Rename to
      MU_ADDR_HINT_PRINTABLE
      (mu_address)<addr>: Rename to printable.
      (mu_address_sget_printable,mu_address_aget_printable)
      (mu_address_get_printable): New protos.
      (mu_stream_format_address): New proto.
      (mu_address_to_string)
      (mu_address_format_string): Mark as deprecated.
      (mu_validate_email): New proto.
      * examples/mta.c: Use mu_address_sget_printable instead
      of (mu_address_to_string)
      * libmailutils/address/addrstream.c: New file.
      * libmailutils/address/Makefile.am (libaddress_la_SOURCES): Add
      addrstream.c
      * libmailutils/address/address.c (mu_address_format_string): Rewrite using
      streams.
      (mu_address_to_string): Rewrite as a wrapper over
      mu_address_get_printable.
      (mu_address_sget_printable,mu_address_aget_printable)
      (mu_address_get_printable): New functions.
      * libmailutils/mime/mimehdr.c (_mime_header_parse): Initialize rc.
      * mail/util.c (util_merge_addresses): Use mu_address_aget_printable.
      * mh/mh.h (mh_annotate): Both string args are const.
      * mh/mh_init.c (mh_annotate): Likewise.
      * mh/mh_format.c (builtin_formataddr): Use mu_address_sget_printable.
      * mh/mh_whatnow.c (anno_data)<field,value>: Both are consts.
      (annotate): Use mu_address_sget_printable.
      * mh/send.c (set_address_header): Use mu_address_sget_printable.
      * mu/imap.c (format_email): Use mu_stream_format_address.
      * python/libmu_py/address.c (api_address_to_string): Likewise.
      Sergey Poznyakoff authored
  32. 16 Dec, 2011 1 commit
    • * include/mailutils/util.h (MU_HIERARCHY_DELIMITER): New define.
      (mu_tilde_expansion): Change signature.  Delimiter is an int.
      * libmailutils/base/tilde.c: Likewise. All uses update.
      
      * imap4d/namespace.c (namespace_checkfullpath)
      (namespace_getfullpath): Remove delim argument. All uses updated.
      * imap4d/util.c (util_getfullpath): Remove delim argument. All uses updated.
      Sergey Poznyakoff authored
  33. 08 Dec, 2011 1 commit
  34. 05 Dec, 2011 2 commits
    • * libmu_sieve/runtime.c (_mu_sv_instr_push)
      (_mu_sv_instr_pop): Use mu_list_push and mu_list_pop.
      * mail/alias.c (recursive_alias_expand): Likewise.
      Sergey Poznyakoff authored
    • * include/mailutils/stream.h (mu_fixed_memory_stream_create): New proto.
      * libmailutils/stream/memory_stream.c
      (mu_fixed_memory_stream_create): New function.
      
      * include/mailutils/util.h (mu_parse_imap_date_time)
      (mu_parse_ctime_date_time): Remove.
      (mu_scan_datetime): New proto.
      (mu_strftime): Remove const from the last arg.
      (MU_DATETIME_FROM,MU_DATETIME_IMAP)
      (MU_DATETIME_IMAP_SEARCH,MU_DATETIME_INTERNALDATE): New defines.
      * libmailutils/base/strftime.c: New file.
      * libmailutils/base/Makefile.am (libbase_la_SOURCES): Add strftime.c.
      * libmailutils/base/date.c (mu_scan_datetime): New function.
      * libmailutils/base/mutil.c (mu_strftime): Remove.
      
      * libmailutils/tests/scantime.at: New file.
      * libmailutils/tests/scantime.c: New file.
      * libmailutils/tests/Makefile.am (noinst_PROGRAMS): Add scantime.
      (TESTSUITE_AT): Add scantime.at.
      * libmailutils/tests/strftime.c (main): Call mu_set_program_name.
      * libmailutils/tests/testsuite.at: Include scantime.at
      
      * libmu_sieve/actions.c (mime_create_reason): Use mu_c_streamftime.
      
      * imap4d/fetch.c (_frt_internaldate): Use mu_scan_datetime.
      * imap4d/util.c (util_parse_internal_date): Likewise.
      * libmu_scm/mu_message.c (mu-message-get-envelope-date): Likewise.
      * libproto/imap/fetch.c (_date_mapper): Likewise.
      * mail/from.c (hdr_date): Use mu_scan_datetime.
      Sergey Poznyakoff authored
  35. 01 Dec, 2011 1 commit
    • * mail/mailvar.c (_mailvar_symbol_to_array): Remove.
      (_mailvar_symbol_to_list): New function.
      (mailvar_make_array): Remove.
      (mailvar_list_copy): New function.
      (mailvar_iterator)<varptr,varcnt,pos>: Remove.
      <varlist,varitr>: New members.
      (mailvar_iterate_next): Use subordinate iterator.
      (mailvar_iterate_first): Likewise.
      (mailvar_print): Use mailvar_make_array.
      Sergey Poznyakoff authored
  36. 19 Nov, 2011 1 commit