1. 08 Sep, 2010 2 commits
    • * include/mailutils/header.h (mu_header_invalidate): New proto.
      * mailbox/header.c (mu_header_invalidate): New function.
      
      * libmu_argp/muinit.c (get_canonical_name): Avoid coredumping
      if argp_program_version is NULL.
      * mailbox/base64.c (mu_base64_decode): Fix inconsistent return
      code.
      * mailbox/debug.c (mu_debug_destroy): Allow for debug->stream == NULL.
      
      * mailbox/mapfile_stream.c (_mapfile_truncate): Incorrect size
      was used when unmapping.
      * mailbox/message.c (mu_message_create_copy): Use a temporary
      memory stream.
      (mu_message_get_body): Comment out the check for MESSAGE_INTERNAL_STREAM.
      (_message_get_stream): Initialize message header and body.
      
      * mailbox/progmailer.c (mu_progmailer_send): Check  return
      from the mu_header_get_streamref.
      
      * mailbox/stream.c (_stream_scandelim, _stream_readdelim): If
      size is 0, return MU_ERR_BUFSPACE.
      Sergey Poznyakoff authored
    • Does not compile yet.
      
      New files:
      * mailbox/streamref.c
      * include/mailutils/sys/streamref.h
      * include/mailutils/sys/file_stream.h
      * include/mailutils/sys/header_stream.h
      * include/mailutils/sys/mapfile_stream.h
      * include/mailutils/sys/memory_stream.h
      * include/mailutils/sys/message_stream.h
      * include/mailutils/sys/prog_stream.h
      * include/mailutils/sys/socket_stream.h
      * include/mailutils/sys/stdio_stream.h
      * include/mailutils/sys/stream.h
      * include/mailutils/sys/streamtrans.h
      * mailbox/prog_stream.c
      * mailbox/stdio_stream.c
      * mailbox/stream_printf.c
      * mailbox/stream_vprintf.c
      * mailbox/temp_file_stream.c
      * mailbox/streamcpy.c
      * mailbox/binflt.c
      * mailbox/crlfflt.c
      * mailbox/fltstream.c
      * mailbox/qpflt.c
      * mailbox/linelenflt.c
      
      Removed files:
      * mailbox/filter_rfc822.c
      * mailbox/filter_trans.c
      
      Moved files (with edits):
      * libproto/include/filter0.h -> include/mailutils/sys/filter.h
      * libproto/include/header0.h -> include/mailutils/sys/header.h
      * libproto/include/message0.h -> include/mailutils/sys/message.h
      * libproto/include/mime0.h -> include/mailutils/sys/mime.h
      
      Modified files:
      * comsat/action.c
      * config/mailutils-config.c
      * examples/base64.c
      * examples/cpp/msg-send.cc
      * examples/header.c
      * examples/http.c
      * examples/iconv.c
      * examples/mimetest.c
      * examples/msg-send.c
      * examples/mta.c
      * examples/murun.c
      * examples/nntpclient.c
      * examples/pop3client.c
      * imap4d/append.c
      * imap4d/auth_gsasl.c
      * imap4d/fetch.c
      * imap4d/preauth.c
      * imap4d/search.c
      * imap4d/util.c
      * include/mailutils/body.h
      * include/mailutils/folder.h
      * include/mailutils/header.h
      * include/mailutils/mailbox.h
      * include/mailutils/mailer.h
      * include/mailutils/mailutils.h
      * include/mailutils/message.h
      * include/mailutils/stream.h
      * include/mailutils/sys/Makefile.am
      * include/mailutils/sys/filter.h
      * include/mailutils/sys/header.h
      * include/mailutils/sys/message.h
      * include/mailutils/sys/mime.h
      * include/mailutils/sys/nntp.h
      * include/mailutils/sys/pop3.h
      * include/mailutils/sys/stream.h
      * include/mailutils/types.hin
      * lib/mailcap.c
      * lib/mu_dbm.h
      * libmu_argp/muinit.c
      * libmu_auth/ldap.c
      * libmu_auth/tls.c
      * libmu_scm/Makefile.am
      * libmu_scm/mu_body.c
      * libmu_scm/mu_message.c
      * libmu_scm/mu_port.c
      * libmu_sieve/actions.c
      * libmu_sieve/extensions/pipe.c
      * libmu_sieve/extensions/spamd.c
      * libmu_sieve/extensions/vacation.c
      * libproto/mailer/smtp.c
      * libproto/mbox/mboxscan.c
      * libproto/mbox/mbox.c
      * libproto/mbox/mbox0.h
      * libproto/nntp/nntp_article.c
      * libproto/nntp/nntp_carrier.c
      * libproto/nntp/nntp_destroy.c
      * libproto/nntp/nntp_ihave.c
      * libproto/nntp/nntp_post.c
      * libproto/nntp/nntp_readline.c
      * libproto/nntp/nntp_sendline.c
      * libproto/pop/pop3_carrier.c
      * libproto/pop/pop3_destroy.c
      * libproto/pop/pop3_readline.c
      * libproto/pop/pop3_sendline.c
      * libproto/pop/pop3_stat.c
      * maidag/mailtmp.c
      * mail/decode.c
      * mail/escape.c
      * mail/msgset.y
      * mail/pipe.c
      * mail/print.c
      * mail/send.c
      * mail/top.c
      * mail/util.c
      * mail/write.c
      * mailbox/Makefile.am
      * mailbox/amd.c
      * mailbox/attachment.c
      * mailbox/body.c
      * mailbox/cfg_driver.c
      * mailbox/cfg_format.c
      * mailbox/debug.c
      * mailbox/file_stream.c
      * mailbox/folder.c
      * mailbox/hdritr.c
      * mailbox/header.c
      * mailbox/mailbox.c
      * mailbox/mailcap.c
      * mailbox/mailer.c
      * mailbox/mapfile_stream.c
      * mailbox/memory_stream.c
      * mailbox/message.c
      * mailbox/message_stream.c
      * mailbox/mime.c
      * mailbox/mimehdr.c
      * mailbox/mutil.c
      * mailbox/prog_stream.c
      * mailbox/progmailer.c
      * mailbox/rfc2047.c
      * mailbox/socket_stream.c
      * mailbox/stream.c
      * mailbox/stream_vprintf.c
      * mailbox/tcp.c
      * mailbox/vartab.c
      * mailbox/wicket.c
      * mh/burst.c
      * mh/comp.c
      * mh/compcommon.c
      * mh/forw.c
      * mh/mh_ctx.c
      * mh/mh_format.c
      * mh/mh_init.c
      * mh/mh_list.c
      * mh/mh_whatnow.c
      * mh/mhl.c
      * mh/mhn.c
      * mh/pick.y
      * mh/repl.c
      * mimeview/mimeview.c
      * mu-aux/generr.awk
      * pop3d/extra.c
      * pop3d/pop3d.h
      * pop3d/retr.c
      * pop3d/top.c
      * readmsg/msglist.c
      * readmsg/readmsg.c
      * sieve/sieve.c
      Sergey Poznyakoff authored
  2. 26 May, 2010 1 commit
    • Delivery of a signal when a previous signal was being handled caused
      mailbox corruption.
      
      * imap4d/imap4d.c (imap4d_child_signal_setup): New function.
      (imap4d_mainloop): Call imap4d_child_signal_setup.
      * imap4d/signal.c (imap4d_child_signal): Reset all signal handlers
      before doing actual job.
      * lib/signal.c (mu_set_signals): Use sigaction.
      Sergey Poznyakoff authored
  3. 05 Jan, 2010 1 commit
  4. 25 Aug, 2009 1 commit
    •    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
  5. 13 Aug, 2009 1 commit
    • Minor fixes. · f2eb56bb
      * 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.
      Sergey Poznyakoff authored
  6. 07 Aug, 2009 1 commit
  7. 06 Jul, 2009 1 commit
    • * 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.
      Sergey Poznyakoff authored
  8. 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
  9. 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
  10. 29 Sep, 2008 1 commit
    • Bugfixes. · e0bf3a5e
      * config/mailutils-config.c (main): Do not print flag descriptions
      on --info, this breaks existing scripts.
      New option --verbose makes --info print verbose descriptions.
      * include/mailutils/version.h (mu_fprint_options)
      (mu_fprint_conf_option): Take additional argument.
      * mailbox/argcv.c (quote_transtab): Handle \".
      * mailbox/cfg_driver.c (mu_cfg_string_value_cb): Bugfix
      * mailbox/cfg_lexer.l: Allow * and = in non-quoted words.
      Improve 'stray character' diagnostics'.
      (unescape_to_line): Handle \\ and \".
      * mailbox/version.c (mu_fprint_options)
      (mu_fprint_conf_option): New argument `verbose' instructs whether
      to print textual descriptions.
      (mu_fprint_conf_option): Print single space after the flag to
      facilitate writing parser scripts.
      * testsuite/lib/mailutils.exp: Reflect this change.
      Sergey Poznyakoff authored
  11. 19 Aug, 2008 1 commit
    • * auth/gsasl.c: Remove deprecated data types.
      * imap4d/auth_gsasl.c (retrieve_password): Minor fix.
      
      * imap4d/imap4d.c, imap4d/imap4d.h, imap4d/namespace.c,
      lib/tcpwrap.c, libcfg/acl.c, libcfg/auth.c, libcfg/common.c,
      libcfg/ldap.c, libcfg/sieve.c, libcfg/sql.c, maidag/maidag.c,
      mail.local/main.c, mailbox/gdebug.c, mailbox/msrv.c,
      mimeview/mimeview.c, pop3d/bulletin.c, pop3d/pop3d.c,
      pop3d/pop3d.h, sieve/sieve.c: Reflect changes to the configuration
      system.
      
      * mailbox/Makefile.am (AM_LFLAGS): New variable.
      (EXTRA_DIST) Add cfg_lexer.l.
      (libmailutils_la_SOURCES): Add alloc.c and opool.c
      (BUILT_SOURCES): Add cfg_lexer.c.
      (cfg_lexer.c): New goal.
      * mailbox/alloc.c, mailbox/opool.c: New files.
      * mailbox/cfg_lexer.c: Remove.
      * mailbox/cfg_lexer.l: New file.
      * mailbox/.cvsignore: Add cfg_lexer.c.
      
      * include/mailutils/Makefile.am: Add alloc.h and opool.h
      * include/mailutils/alloc.h: New file.
      * include/mailutils/opool.h: New file.
      
      * include/mailutils/cfg.h (mu_cfg_lexer_t,mu_cfg_alloc_t)
      (mu_cfg_free_t): Remove types.
      (MU_CFG_STRING, MU_CFG_LIST, MU_CFG_ARRAY): New defines.
      (mu_config_value_t): New data type.
      (struct mu_cfg_node): Change type of `label'.
      (struct mu_cfg_tree): Remove `alloc', `free'.
      New member `pool'.
      (mu_cfg_parse): Simplify the signature by removing superfluous
      arguments.
      (mu_cfg_tie_in): Remove.
      (mu_cfg_lexer_pool): New function.
      (mu_cfg_find_node, mu_cfg_find_node_label): Remove.
      (mu_cfg_callback_t): Change signature.
      (MU_CFG_LIST_MASK): New define.
      (MU_CFG_LIST_OF, MU_CFG_TYPE, MU_CFG_IS_LIST): New defines.
      (mu_cfg_get_debug): New function.
      (mu_cfg_assert_value_type, mu_cfg_string_value_cb): New functions.
      (mu_cfg_tree_set_alloc, mu_cfg_tree_alloc): Remove.
      * mailbox/cfg_driver.c: Adapt for new node structure.
      (mu_cfg_assert_value_type, mu_cfg_string_value_cb): New function.
      * mailbox/cfg_format.c: Adapt for new node structure.
      * mailbox/cfg_parser.y: Adapt for changes in cfg data types and
      lexer.
      
      * include/mailutils/mailutils.h: Include alloc.h and opool.h
      * include/mailutils/mu_auth.h (mu_authorization_add_module)
      (mu_authentication_add_module): New prototypes.
      
      * include/mailutils/syslog.h (mu_string_to_syslog_facility)
      (mu_string_to_syslog_priority): First argument is const char *.
      * mailbox/syslog.c: Likewise.
      
      * include/mailutils/types.hin (mu_opool_t): New type.
      * mailbox/list.c (mu_list_get_comparator): Add missing return
      statement.
      Sergey Poznyakoff authored
  12. 18 Aug, 2008 1 commit
  13. 17 Aug, 2008 1 commit
    • Bugfix. · 9bbf3c80
      * lib/tcpwrap.c (mu_tcp_wrapper_cb_hosts_deny_syslog):
      (mu_tcp_wrapper_cb_hosts_allow_syslog): Use syslog priorities,
      not facilities.
      (tcpwrapper_param): Rename allow-syslog-level and
      deny-syslog-level to allow-syslog-priority and
      deny-syslog-priority, correspondingly.
      Sergey Poznyakoff authored
  14. 31 May, 2008 1 commit
    • field.
      * mailbox/amd.c (amd_append_message): Cache information about
      mailbox size in file .mu-size.
      (make_size_file_name, read_size_file, write_size_file): New
      functions.
      (amd_expunge, amd_sync): Update size cache file.
      (amd_get_size): Use size cache file if no mailbox_size method is
      provided.
      * mailbox/mbx_default.c (mu_normalize_mailbox_url): Accept `='
      suffix for all mailbox types.
      * movemail/movemail.c (main): Call mu_mailbox_sync before closing
      destination mailbox.
      Sergey Poznyakoff authored
  15. 28 May, 2008 3 commits
  16. 03 Mar, 2008 1 commit
    • * bootstrap.conf (avoided_gnulib_modules): Remove size_max
      (excluded_files): Remove m4/size_max.m4.
      (gnulib_extra_files): Add m4/inttostr.m4
      * gnulib.modules: Add intprops and stdint.
      
      * m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4, m4/inttypes-h.m4,
      m4/inttypes-pri.m4, m4/inttypes.m4, m4/inttypes_h.m4: Remove
      Sergey Poznyakoff authored
  17. 06 Feb, 2008 3 commits
    • New file · 2894ce9c
      Sergey Poznyakoff authored
    • New file · 0dedfaf2
      Sergey Poznyakoff authored
    • * imap4d/bye.c, imap4d/starttls.c, imap4d/util.c: Use exit codes
      from sysexits.h
      * imap4d/imap4d.c: Use mu_set_signals to install signals.
      Use exit codes from sysexits.h.
      * imap4d/imap4d.h: Include sysexits.h and muaux.h
      (ERR_TERMINATE): New define.
      (imap4d_sigchld,imap4d_signal): Remove.
      (imap4d_master_signal,imap4d_child_signal): New prototypes.
      * imap4d/signal.c (imap4d_master_signal,imap4d_child_signal): New
      functions.
      
      * pop3d/pop3d.h Include sysexits.h and muaux.h
      (ERR_TERMINATE): New define.
      (pop3d_signal): Remove.
      (pop3d_master_signal, pop3d_child_signal): New protos.
      * pop3d/signal.c (pop3d_master_signal, pop3d_child_signal): New
      functions.
      
      * pop3d/extra.c, pop3d/popauth.c
      * pop3d/pop3d.c: Use mu_set_signals to install signals.
      Use exit codes from sysexits.h.
      
      * include/mailutils/server.h (mu_m_server_set_strexit): New
      prototype.
      * include/mailutils/types.hin (MU_ARRAY_SIZE): New define.
      
      * lib/Makefile.am (libmuaux_la_SOURCES): Add signal.c, strexit.c.
      (noinst_HEADERS): Add muaux.h
      * lib/muaux.h: New file.
      
      * libsieve/extensions/spamd.c: Add NLS markers.
      
      * mailbox/header.c (header_readline): Minor rewrite.
      * mailbox/msrv.c (struct _mu_m_server): New member `strexit'.
      (mu_m_server_begin): Call alloc_children.
      (mu_m_server_restore_signals): New function.
      (mu_m_server_end): Call mu_m_server_restore_signals.
      (m_srv_conn): Reset signals in child branch.
      
      * po/POTFILES.in: Update.
      Sergey Poznyakoff authored
  18. 09 Jan, 2008 1 commit
    • compatibility with other modules.
      * auth/radius.c, auth/sql.c: Use mu_vartab_t for expansion.
      * include/mailutils/mailutils.h: Include mailutils/assoc.h
      * lib/tcpwrap.c (mu_tcpwrapper_access): Ignore local sockets.
      * libargp/muinit.c (mu_app_init): Re-assign mu_program_name after
      command line parsing, so that --program-name takes effect.
      * libcfg/sql.c (mu_sql_param): Fix typo in statement name.
      * libproto/include/amd.h (struct _amd_message.create): New member.
      * libproto/maildir/mbox.c (maildir_create): New function.
      (_mailbox_maildir_init): Set amd->create.
      * mailbox/amd.c (amd_open): Call amd->create after successfully
      creating the directory.
      * mailbox/cfg_driver.c (_cb_include): Mask out
      MU_PARSE_CONFIG_GLOBAL in the flags.
      (mu_build_container): Bugfix. Take struct include_data as
      argument, instead of using an auto variable. All callers updated.
      * mailbox/ipsrv.c (mu_ip_tcp_accept): Bugfix: use client address,
      not server, to print diagnostics.
      * mailbox/msrv.c (m_srv_conn): Fix prefork condition for
      single-process mode.
      Sergey Poznyakoff authored
  19. 05 Jan, 2008 2 commits
    • * mailbox/Makefile.am: Replace tcpsrv.c with ipsrv.c.
      * mailbox/tcpsrv.c: Replace with ...
      * mailbox/ipsrv.c: ... this file, which supports both TCP and UDP.
      
      * mailbox/msrv.c: Use mu_ip_server_t.
      * mailbox/server.c (mu_server_destroy): Bugfix.
      * comsat/comsat.c, comsat/comsat.h: Use m-server.
      
      * maidag/lmtp.c, maidag/maidag.h, pop3d/pop3d.c: Update to match
      changed m-server types.
      
      * include/mailutils/server.h (mu_tcp_*): Replace with mu_ip_*.
      Add new prototypes.
      * include/mailutils/types.hin: Likewise.
      
      * lib/tcpwrap.c, lib/tcpwrap.h (mu_tcp_wrapper_prefork): Update
      signature to match mu_m_server_prefork_fp.
      
      * examples/echosrv.c: Use mu_ip_server_t
      * imap4d/idle.c, imap4d/imap4d.c, imap4d/imap4d.h,
      imap4d/preauth.c, imap4d/util.c: Remove mu_gocs_daemon.
      * include/mailutils/gocs.h, include/mailutils/libargp.h,
      include/mailutils/libargp.h, libargp/cmdline.c,
      libargp/common.c, libcfg/common.c, libcfg/init.c,
      mailbox/daemon.c, mailbox/gocs.c: Remove mu_gocs_daemon.
      
      * mailbox/amd.c (amd_open): Provide a null-locker.
      * include/mailutils/locker.h, mailbox/locker.c
      (mu_locker_mod_flags): New function.
      
      * examples/config/mailutils.schema: LDAP schema for Mailutils.
      * examples/config/Makefile.am: Add mailutils.schema
      
      * dotlock/dotlock.c (main): Remove superfluous invocation of
      mu_locker_set_flags.
      
      * libproto/mbox/mbox.c (mbox_quick_get_message): Return
      MU_ERR_NOENT if mailbox is empty.
      
      * mailbox/tcpsrv.c (family_to_proto): Rename to
      mu_address_family_to_domain.
      * po/POTFILES.in: Update.
      * pop3d/lock.c (pop3d_lock): use mu_locker_mod_flags, instead of
      mu_locker_set_flags.
      Sergey Poznyakoff authored
    • function type.
      (mu_m_server_destroy, mu_m_server_set_prefork)
      (mu_m_server_configured_count, mu_m_server_end): New functions.
      * mailbox/msrv.c (struct _mu_m_server.prefork): New member.
      (mu_m_server_set_prefork): New function.
      (m_srv_conn): Use prefork to decide whether to proceed with a
      connection.
      
      * lib/tcpwrap.c, lib/tcpwrap.h (mu_tcp_wrapper_prefork): New
      function.
      
      * imap4d/imap4d.c, maidag/lmtp.c, maidag/maidag.c,
      pop3d/pop3d.c: Use m-server prefork to handle TCP wrappers.
      
      * po/POTFILES.in: Add more files.
      Sergey Poznyakoff authored
  20. 28 Dec, 2007 1 commit
    • appear in any local URLs.
      
      * TODO, NEWS: Update.
      
      * examples/url-parse.c: Print field/value pairs.
      * include/mailutils/argcv.h (MU_ARGCV_RETURN_DELIMS): New macro.
      (mu_argcv_get_np): New function.
      (mu_argcv_remove): New function.
      * include/mailutils/mutil.h (mu_scheme_autodetect_p): Change
      prototype.
      * include/mailutils/registrar.h (mu_registrar_lookup_url): New
      function.
      (struct _mu_record._is_scheme): Change signature.
      * include/mailutils/url.h (mu_url_sget_fvpairs)
      (mu_url_aget_fvpairs): New functions.
      (mu_url_expand_path): New function.
      
      * libproto/imap/folder.c (folder_imap_list): Fix signature.
      * libproto/nntp/folder.c (nntp_folder_list): Fix signature.
      * libproto/include/amd.h (amd_url_init): Remove.
      * libproto/include/registrar0.h: Fix scheme defines.
      * libproto/include/url0.h (struct _mu_url.fvpairs,fvcount): New
      members.
      * libproto/maildir/folder.c (_maildir_is_scheme): Change
      signature.
      (_maildir_url_init): Remove
      (_maildir_record): Remove url_init.
      * libproto/mbox/folder.c (_path_record): Remove url_init.
      (_mbox_record): Use mu_url_expand_path as url_init.
      (_path_is_scheme): Change signature.
      * libproto/mh/folder.c (_mh_is_scheme): Change signature.
      (_mh_url_init): Remove.
      (_mh_record): Use mu_url_expand_path as url_init.
      * libproto/mbox/Makefile.am (libmu_mbox_la_SOURCES): Remove url.c
      * libproto/mbox/url.c: Remove.
      
      * mail/mail.h, mail/util.c (util_url_to_string): New function.
      * mail/quit.c, mail/summary.c: Use util_url_to_string where
      appropriate.
      * mailbox/amd.c (amd_url_destroy, amd_url_init): Remove.
      * mailbox/argcv.c (mu_argcv_get_np): New function.
      (argcv_scan): Change signature. All callers updated.
      (argcv_get_n): Rewrite using argcv_get_np.
      (mu_argcv_remove): New function.
      
      * mailbox/file_stream.c (struct _prog_stream.argc): Fix data type.
      * mailbox/folder.c (mu_folder_create_from_record): URL initializer
      is optional.
      * mailbox/gdebug.c (mu_global_debug_from_string): Fix datatype of
      argc.
      * mailbox/mailbox.c (mailbox_folder_create): Rewrite.
      (_create_mailbox): Split off _create_mailbox0 function.
      Make URL initializer optional.
      * mailbox/mutil.c (mu_scheme_autodetect_p): Rewrite.
      * mailbox/registrar.c (mu_registrar_lookup_url): New function.
      (mu_registrar_lookup): Rewrite using mu_registrar_lookup_url.
      (mu_record_is_scheme,mu_record_set_is_scheme): Change signature.
      * mailbox/url.c (mu_url_destroy): Destroy fvpairs.
      (url_parse0): Use scheme "file" for URLs beginning with a /.
      Parse parameters.
      (mu_url_sget_fvpairs, mu_url_aget_fvpairs): New functions.
      (mu_url_expand_path): New function.
      * mailbox/testsuite/Urls: Update.
      
      * pop3d/bulletin.c (set_bulletin_db,set_bulletin_source): Allocate
      string storage.
      (read_bulletin_db): Return 0 if no record was found.
      (get_last_delivered_num): Return error code.
      (deliver_pending_bulletins): Rewrite.
      * pop3d/capa.c (pop3d_capa): Bugfix.
      Sergey Poznyakoff authored
  21. 13 Dec, 2007 1 commit
    • examples/decode2047.c, examples/echosrv.c, examples/encode2047.c,
      examples/header.c, examples/http.c, examples/iconv.c,
      examples/listop.c, examples/lsf.c, examples/mailcap.c,
      examples/mimetest.c, examples/msg-send.c, examples/muemail.c,
      examples/murun.c, examples/nntpclient.c, examples/pop3client.c,
      examples/sfrom.c, examples/url-parse.c: Include config.h. Use
      MU_ASSERT instead of assert.
      
      * include/mailutils/cfg.h (struct mu_cfg_section.offset): New
      member.
      * include/mailutils/debug.hm4 (MU_ASSERT): New member.
      * lib/utmp.c: Include config.h.
      * libcfg/Makefile.am (libmucfg_la_SOURCES): Add acl.c.
      * libcfg/acl.c: New file.
      * libcfg/common.c (cb_debug_level): Immediately set debugging
      level.
      * mailbox/acl.c: mu_acl_log expands its argument.
      * mailbox/cfg_driver.c (mu_create_canned_section)
      (mu_create_canned_param): Avoid creating container twice.
      * mailbox/cfg_format.c (format_param): Do not pring type if
      argname contains a colon.
      * mailbox/cfg_parser.y (_scan_tree_helper): Compute target
      pointer.
      
      * imap4d/imap4d.c, imap4d/imap4d.h, pop3d/pop3d.c,
      pop3d/pop3d.h: Use MU ACLs
      Sergey Poznyakoff authored
  22. 11 Dec, 2007 3 commits
    • Sergey Poznyakoff authored
    • pop3d/pop3d.c: Call mu_tcpwrapper_cfg_init.
      
      * include/mailutils/cfg.h (mu_cfg_section_add_container)
      (mu_cfg_section_add_params, mu_create_canned_section)
      (mu_create_canned_param, mu_get_canned_container): New functions.
      * lib/tcpwrap.c (mu_tcpwrapper_cfg_init): New function.
      * lib/tcpwrap.h (TCP_WRAPPERS_CONFIG): Change definition.
      * mailbox/cfg_driver.c (mu_create_canned_section)
      (mu_create_canned_param): Change prototypes.
      (add_parameters): Rename to mu_cfg_section_add_params, make
      extern. All callers changed.
      Sergey Poznyakoff authored
    • (struct mu_cfg_param.offset): New member
      (mu_offsetof): New define
      (mu_cfg_section_fp): Change signature
      (struct mu_cfg_section.label,target): New members.
      (struct mu_cfg_section.data): Remove.
      (struct mu_cfg_section.children): New member, instead of
      param and subsec which are removed.
      (mu_cfg_scan_tree): Change signature.
      (mu_config_register_section): Change signature.
      (mu_parse_config): Change signature.
      (mu_parse_config_tree): Rename to mu_cfg_tree_reduce.
      (mu_get_config): New proto.
      
      * include/mailutils/libcfg.h (mu_parse_config_files): Change
      prototype.
      
      * dotlock/dotlock.c, imap4d/imap4d.c, lib/tcpwrap.h,
      libargp/muinit.c, libcfg/auth.c, libcfg/common.c, libcfg/gsasl.c,
      libcfg/init.c, libcfg/ldap.c, libcfg/pam.c, libcfg/radius.c,
      libcfg/sieve.c, libcfg/sql.c, libcfg/tls.c, libcfg/virtdomain.c,
      maidag/maidag.c, mail.local/main.c, mail.remote/mail.remote.c,
      mailbox/cfg_format.c, mailbox/cfg_parser.y, mimeview/mimeview.c,
      movemail/movemail.c, pop3d/pop3d.c, readmsg/readmsg.c,
      sieve/sieve.c: Reflect changes to the cfg framework.
      
      * mailbox/Makefile.am (libmailutils_la_SOURCES): Add cfg_driver.c.
      * mailbox/cfg_driver.c: New file.
      * mailbox/cfg_lexer.c: Move driver part into a separate file.
      
      * examples/Makefile.am (AM_LDFLAGS): Remove libmuaux
      * examples/echosrv.c: Remove getopt.h
      Sergey Poznyakoff authored
  23. 05 Dec, 2007 1 commit
    • * imap4d/Makefile.am, mu_daemon_argp_parser (LDADD): Add
      TCPWRAP_LIBRARIES.
      * imap4d/imap4d.c: Include tcpwrap.h
      (imap4d_mainloop): Check the connection using tcp wrappers.
      * imap4d/preauth.c: Fix a typo in the comment.
      * maidag/maidag.h: Include tcpwrap.h
      * maidag/maidag.c, maidag/lmtp.c: Add TCP wrappers support.
      * pop3d/pop3d.c: Include tcpwrap.h
      (pop3d_mainloop): Check the connection using tcp wrappers.
      * lib/Makefile.am: Add tcpwrap.c and tcpwrap.h
      * lib/tcpwrap.c: New file.
      * lib/tcpwrap.h: New file.
      * libargp/common.c (mu_daemon_argp_parser): Bugfix.
      Sergey Poznyakoff authored
  24. 04 Dec, 2007 1 commit
    • * frm/common.c, imap4d/imap4d.c: Shut compiler warnings.
      * include/mailutils/cfg.h (mu_cfg_format_tree): Rename to
      mu_cfg_format_parse_tree
      (mu_cfg_format_container,mu_format_config_tree): New functions.
      (mu_parse_config_tree): New prototype.
      (mu_cfg_tree_create_node): Change signature (const char* instead
      of char*).
      * include/mailutils/gocs.h (mu_gocs_register): First arg is const.
      * include/mailutils/libargp.h (mu_argp_node_list_new): Mark
      invariable arguments as const.
      * include/mailutils/libcfg.h (mu_libcfg_init): Remove const from
      the arg.
      * include/mailutils/mutil.h (mu_spawnvp): Remove const from the
      2nd arg.
      * libargp/cmdline.c (mu_argp_node_list_new): Mark invariable
      arguments as const.
      
      * lib/mailcap.h: New file.
      * lib/Makefile.am (libmuaux_la_SOURCES): Add mailcap.h
      * libargp/cmdline.h (mu_help_config_mode): New extern.
      * libargp/common.c: New option --config-help displays a
      configuration file summary.
      * libargp/muinit.c (mu_app_init): Handle --config-help.
      * libcfg/init.c (mu_libcfg_init): Remove const from the arg.
      * maidag/maidag.h (mda): New prototype.
      * mail/decode.c: Include mailcap.h
      * mail/mail.h: Define _GNU_SOURCE before including stdio.h
      * mail/send.c: Fix includes.
      * mail.remote/mail.remote.c: Include mu_umaxtostr.h
      
      * mailbox/cfg_format.c (mu_cfg_data_type_string)
      (mu_cfg_format_container): New function.
      * mailbox/cfg_lexer.c (mu_build_container): New function.
      (mu_parse_config_tree): Use mu_build_container.
      (mu_format_config_tree): New function.
      * mailbox/cfg_parser.y (mu_cfg_tree_create_node): Change proto.
      * mailbox/gocs.c (struct mu_gocs_entry): Name is const.
      (mu_gocs_register): 1st arg (capa) is const.
      * mailbox/mutil.c (mu_spawnvp): Remove const from the 2nd arg.
      * mh/mh_whatnow.c (invoke): Shut compiler warnings.
      * mimeview/mimetypes.l (mimetypes_open): Shut compiler warnings.
      * mimeview/mimeview.c: Include mailcap.h
      (display_file): Shut compiler warnings.
      * readmsg/readmsg.c: Include mu_umaxtostr.h
      * sieve/sieve.c (parser): Remove unused variable.
      Sergey Poznyakoff authored
  25. 03 Dec, 2007 1 commit
    • * imap4d/Makefile.am (imap4d_SOURCES): Add preauth.c
      * imap4d/authenticate.c (imap4d_authenticate): Use
      imap4d_session_setup.
      * imap4d/imap4d.c (imap4d_session_setup)
      (imap4d_session_setup.0): New functions.
      (imap4d_mainloop): Implement PREAUTH mode.
      * imap4d/imap4d.h (RESP_PREAUTH): New define.
      (enum imap4d_preauth): New data type.
      (preauth_mode,preauth_program,preauth_only,ident_port): New
      globals.
      (imap4d_session_setup,imap4d_session_setup.0): New functions.
      * imap4d/login.c (imap4d_login): Use imap4d_session_setup0.
      * imap4d/util.c (sc2string): Handle RESP_PREAUTH
      
      * lib/.cvsignore, m4/.cvsignore: Update.
      
      * mailbox/tcp.c: Fix indentation.
      Sergey Poznyakoff authored
  26. 26 Nov, 2007 1 commit
    • and libcfg.
      (fgetpwent): Use AC_CHECK_FUNCS
      * auth/virtual.c: Use mu_fgetpwent if fgetpwent is not available.
      
      * lib/Makefile.am: Add back utmp.c
      * lib/utmp.c: Restore after unintended remove.
      * m4/utmp.m4: Fix quoting.
      
      * libcfg/gsasl.c, libcfg/ldap.c, libcfg/pam.c, libcfg/radius.c,
      libcfg/sieve.c, libcfg/sql.c, libcfg/tls.c, libcfg/virtdomain.c:
      Include stdlib.h
      
      * libproto/imap/folder.c, libproto/mbox/mbox.c,
      libproto/mbox/mbox0.h, libproto/pop/mbox.c, mailbox/attachment.c,
      mailbox/mailbox.c, mailbox/parsedate.y:	Do not use alloca.
      
      * mailbox/Makefile.am (libmailutils_la_SOURCES): Add fgetpwent.c
      and intprops.h.
      * mailbox/fgetpwent.c (fgetpwent): Rename to mu_fgetpwent.
      * mailbox/gocs.c: Revert recent change. It broke the testsuite in
      sieve.
      * mailbox/syslog.c (log_facility): Initialize to LOG_FACILITY.
      Sergey Poznyakoff authored
  27. 19 Nov, 2007 1 commit
    • (MU_APP_LIBRARIES): Rename libargp.a to libmuargp.a
      * NEWS: Update.
      
      * comsat/comsat.c, dotlock/dotlock.c, examples/muauth.c,
      examples/muemail.c, frm/frm.h, guimb/main.c, imap4d/imap4d.c,
      libargp/auth.c, libargp/cmdline.c, libargp/common.c,
      libargp/gsasl.c, libargp/mu_argp.c, libargp/pam.c,
      libargp/radius.c, libargp/sieve.c, libargp/sql.c, libargp/tls.c,
      libargp/virtdomain.c, maidag/maidag.h, mail/mail.c,
      mail.local/main.c, mail.remote/mail.remote.c, messages/messages.c,
      mimeview/mimetypes.y, mimeview/mimeview.c, movemail/movemail.c,
      pop3d/extra.c, pop3d/pop3d.c, pop3d/popauth.c, readmsg/readmsg.c,
      sieve/sieve.c: Include mailutils/libargp.h.
      
      * config/mailutils-config.c: New arguments to --link: cfg and argp.
      
      * include/mailutils/Makefile.am (pkginclude_HEADERS): Remove
      compat.h, add libargp.h, libcfg.h and version.h
      * include/mailutils/compat.h: Remove
      * include/mailutils/libargp.h: New file (from libargp/cmdline.h)
      * include/mailutils/libcfg.h: New file (from (libcfg/)
      * include/mailutils/version.h: New file
      
      * include/mailutils/folder.h (struct mu_0_6_folder_list): Remove
      (mu_0_6_folder_list, mu_0_6_folder_lsub)
      (mu_0_6_folder_list_destroy): Remove.
      
      * include/mailutils/mailutils.h: Include version.h
      Remove 0.6 compatibility layer.
      * mailbox/folder.c (list_to_0_6_folder_list, mu_0_6_folder_list)
      (mu_0_6_folder_lsub, mu_0_6_folder_list_destroy): Remove.
      
      * lib/Makefile.am (libmuaux_la_SOURCES): Remove argpinit.c,
      muinit.h and muinit.c
      
      * libargp/Makefile.am (noinst_LIBRARIES, noinst_HEADERS): Remove
      (lib_LIBRARIES): Add libmuargp.a
      * libargp/compat.c: New file.
      * libargp/muinit.c: New file.
      * libargp/cmdline.h: Remove.
      
      * libcfg/Makefile.am (noinst_HEADERS): Remove.
      * libcfg/auth.c, libcfg/common.c, libcfg/gsasl.c, libcfg/init.c,
      libcfg/pam.c, libcfg/radius.c, libcfg/sieve.c, libcfg/sql.c,
      libcfg/tls.c, libcfg/virtdomain.c: Include mailutils/libcfg.h
      
      * mailbox/Makefile.am (libmailutils_la_SOURCES): Add version.c
      * mailbox/cfg_lexer.c (_mu_parse_config): Do nothing if
      root_container is NULL.
      
      * 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/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: Use mh_argp_init instead of
      mu_argp_init.
      * mh/mh_argp.c, mh/mh_getopt.h (mh_argp_init): New function
      Sergey Poznyakoff authored
  28. 18 Nov, 2007 2 commits
    • from the repository. Bootstrap directly from the gnulib CVS.
      
      * configure.ac: Update.
      * lib/Makefile.am: Update.
      * mailbox/Makefile.am: Update.
      * include/mailutils/Makefile.am (SUBDIRS): Remove gnu
      * include/mailutils/gnu/Makefile.am: Remove
      * examples/argcv.c, examples/mta.c, guimb/guimb.h,
      imap4d/imap4d.h, libargp/mu_argp.c, libargp/tls.c,
      maidag/maidag.h, mail/mail.h, mail/send.c,
      mail.local/mail.local.h, mh/mh.h: Remove getline.h
      * libproto/nntp/mbox.c: Include mailutils/md5.h
      * libargp/cmdline.h: Include strings.h
      * m4/debug.m4, m4/enable.m4, m4/gsasl.m4, m4/guile.m4,
      m4/mu_libobj.m4: Minor fix
      * m4/intmax.m4,m4/inttypes-pri.m4,m4/inttypes_h.m4: Update
      * mailbox/alloca.h: Remove
      * mailbox/mailbox.c: Include string.h
      * mailbox/nls.c: Include locale.h
      * po/Makevars: Remove.
      
      * absolute-header.m4, alloca.m4, allocsa.m4, argp.m4, codeset.m4,
      d-type.m4, eealloc.m4, eoverflow.m4, error.m4, exitfail.m4,
      extensions.m4, fnmatch.m4, full-header-path.m4, getdelim.m4,
      getline.m4, getlogin_r.m4, getndelim2.m4, getopt.m4, getpass.m4,
      gettext.m4, glibc2.m4, glibc21.m4, glob.m4, gnulib.m4, iconv.m4,
      intdiv0.m4, isc-posix.m4, lcmessage.m4, lib-ld.m4, lib-link.m4,
      lib-prefix.m4, lock.m4, longdouble.m4, longlong.m4,
      mailbox-link.m4, mbchar.m4, mbiter.m4, mbrtowc.m4, mbstate_t.m4,
      mbswidth.m4, memchr.m4, mempcpy.m4, minmax.m4, obstack.m4,
      onceonly.m4, po.m4, printf-posix.m4, progtest.m4, regex.m4,
      restrict.m4, setenv.m4, signed.m4, size_max.m4, snprintf.m4,
      ssize_t.m4, stat-macros.m4, stdbool.m4, stdint.m4, stdint_h.m4,
      strcase.m4, strchrnul.m4, strdup.m4, strerror_r.m4, strndup.m4,
      strnlen.m4, strtok_r.m4, sysexits.m4, uint32_t.m4, uintmax_t.m4,
      ulonglong.m4, unistd_h.m4, unlocked-io.m4, vasnprintf.m4,
      vasprintf.m4, visibility.m4, vsnprintf.m4, wchar_t.m4, wcwidth.m4,
      wint_t.m4, xalloc.m4, xsize.m4: Remove.
      
      * alloca.c, allocsa.c, allocsa.h, asprintf.c, basename.c, error.c,
      error.h, exit.h, exitfail.c, exitfail.h, fnmatch.c, fnmatch_.h,
      fnmatch_loop.c, getpass.c, getpass.h, intprops.h, malloc.c,
      mbswidth.c, mbswidth.h, md5.c, md5.h, obstack.c, obstack.h,
      realloc.c, setenv.c, setenv.h, snprintf.c, snprintf.h, stdbool.h,
      stdbool_.h, strcasecmp.c, strncasecmp.c, strsignal.c, strtok_r.c,
      unsetenv.c, utmp.c, vasprintf.c, vasprintf.h, vsyslog.c,
      xalloc-die.c, xalloc.h, xalloc_die.c, xmalloc.c, xsize.h,
      xstrdup.c: Remove.
      
      * alloca.c, alloca_.h, argp-ba.c, argp-eexst.c, argp-fmtstream.c,
      argp-fmtstream.h, argp-fs-xinl.c, argp-help.c, argp-namefrob.h,
      argp-parse.c, argp-pin.c, argp-pv.c, argp-pvh.c, argp-xinl.c,
      argp.h, asnprintf.c, fnmatch.c, fnmatch_.h, fnmatch_loop.c,
      getdelim.c, getdelim.h, getline.c, getline.h, getlogin_r.c,
      getlogin_r.h, getndelim2.c, getndelim2.h, getopt.c, getopt.h,
      getopt1.c, getopt_.h, getopt_int.h, gettext.h, glob-libc.h,
      glob.c, glob_.h, malloc.c, mbchar.c, mbchar.h, mbuiter.h,
      memchr.c, mempcpy.c, mempcpy.h, minmax.h, pin.c, printf-args.c,
      printf-args.h, printf-parse.c, printf-parse.h, regcomp.c, regex.c,
      regex.h, regex_internal.c, regex_internal.h, regexec.c,
      stat-macros.h, stdbool_.h, stdint_.h, strcase.h, strcasecmp.c,
      strchrnul.c, strchrnul.h, strdup.c, strdup.h, strncasecmp.c,
      strndup.c, strndup.h, strnlen.c, strnlen.h, strnlen1.c,
      strnlen1.h, strtok_r.c, strtok_r.h, sysexit_.h, unlocked-io.h,
      vasnprintf.c, vasnprintf.h, vsnprintf.c, vsnprintf.h, wcwidth.h,
      xsize.h: Remove.
      Sergey Poznyakoff authored
    • Sergey Poznyakoff authored
  29. 17 Nov, 2007 1 commit
    • * include/mailutils/gocs.h, include/mailutils/pam.h,
      include/mailutils/radius.h, include/mailutils/syslog.h: New files
      * lib/argpinit.c, lib/muinit.c, lib/muinit.h: New files.
      * libsieve/conf.c: New file.
      
      * libcfg: New directory
      * libcfg/libcfg.h, libcfg/auth.c, libcfg/common.c, libcfg/init.c,
      libcfg/gsasl.c, libcfg/pam.c, libcfg/radius.c, libcfg/sieve.c,
      libcfg/sql.c, libcfg/tls.c, libcfg/virtdomain.c,
      libcfg/.cvsignore: New files.
      
      * libargp: New directory
      * libargp/auth.c, libargp/cmdline.h, libargp/common.c,
      libargp/gsasl.c, libargp/mu_argp.h, libargp/mu_argp.c,
      libargp/pam.c, libargp/radius.c, libargp/sieve.c, libargp/sql.c,
      libargp/tls.c, libargp/virtdomain.c, libargp/.cvsignore: New
      files.
      
      * mailbox/.cvsignore: Add cfg_parser.c and cfg_parser.h.
      * Makefile.am (SUBDIRS): Add libargp and libcfg.
      * configure.ac (MU_APP_LIBRARIES): New variable
      (MU_COMMON_INCLUDES): add libargp and libcfg
      (AC_CONFIG_FILES): Add libargp and libcfg.
      
      * auth/gsasl.c, auth/pam.c, auth/radius.c, auth/sql.c, auth/sql.h,
      auth/tls.c, auth/virtual.c, comsat/comsat.h, frm/frm.h,
      guimb/guimb.h, imap4d/imap4d.h, include/mailutils/gsasl.h,
      include/mailutils/libsieve.h, include/mailutils/mailutils.h,
      include/mailutils/mu_auth.h, include/mailutils/tls.h,
      include/mailutils/sql.h, maidag/maidag.h, mail/mail.h,
      mail.local/mail.local.h, mailbox/daemon.c, mailbox/system.c,
      mh/mh_argp.c, mh/mh_getopt.h, pop3d/pop3d.h,
      readmsg/readmsg.h: Remove argp stuff
      
      * comsat/comsat.c, config/mailutils-config.c, dotlock/dotlock.c,
      examples/muauth.c, examples/muemail.c, frm/frm.c, frm/from.c,
      guimb/main.c, imap4d/idle.c, imap4d/imap4d.c, imap4d/util.c,
      imap4d/version.c, maidag/lmtp.c, maidag/maidag.c,
      maidag/mailquota.c, mail/mail.c, mail/send.c, mail/version.c,
      mail.local/mailquota.c, mail.local/main.c,
      mail.remote/mail.remote.c, mailbox/mu_auth.c, messages/messages.c,
      mimeview/mimeview.c, movemail/movemail.c, pop3d/extra.c,
      pop3d/pop3d.c, pop3d/popauth.c, readmsg/readmsg.c, sieve/sieve.c:
      Use mu_app_init for parsing command line and
      configuration files.
      * comsat/Makefile.am, config/Makefile.am, dotlock/Makefile.am,
      examples/Makefile.am, frm/Makefile.am, guimb/Makefile.am,
      imap4d/Makefile.am, maidag/Makefile.am, mail/Makefile.am,
      mail.local/Makefile.am, mail.remote/Makefile.am,
      mailbox/Makefile.am, messages/Makefile.am, mimeview/Makefile.am,
      movemail/Makefile.am, pop3d/Makefile.am, readmsg/Makefile.am,
      sieve/Makefile.am: Use MU_APP_LIBRARIES.
      
      * include/mailutils/Makefile.am: Add new files.
      * include/mailutils/argp.h: Remove.
      * include/mailutils/cfg.h: New file.
      * include/mailutils/daemon.h (MODE_INTERACTIVE,MODE_DAEMON): New
      defines (from removed argp.h).
      (mu_gocs_daemon): New decl.
      * include/mailutils/error.h (mu_program_name): New variable
      (mu_set_program_name): New function.
      * lib/Makefile.am (libmuaux_la_SOURCES): Add new files.
      * libsieve/Makefile.am (libsieve_la_SOURCES): Remove argp.c, add
      conf.c instead.
      * libsieve/argp.c: Remove.
      
      * mailbox/cfg_parser.y (mu_cfg_parse_boolean): New function.
      * mailbox/mu_argp.c: Remove.
      
      * mailbox/muerror.c (mu_program_name): New variable
      (mu_set_program_name): New function
      (mu_default_error_printer): Print program name before diagnostic
      string.
      * mailbox/mutil.c (mu_sql_decode_password_type): New function.
      * mh/mh_whom.c (mh_alias_expand): Bugfix
      * po/POTFILES.in: Update
      * testsuite/lib/mailutils.exp (mu_init): Pass --no-site-rcfile
      --no-user-rcfile to all programs.
      Sergey Poznyakoff authored
  30. 05 Jul, 2007 1 commit
  31. 28 Jun, 2007 1 commit