1. 22 Dec, 2010 1 commit
  2. 21 Dec, 2010 1 commit
    • * am/enable.m4 (MU_ENABLE_SUPPORT): Add the additional-cond argument.
      (MU_ENABLE_BUILD): Likewise.
      * configure.ac: Update 4th args in calls to MU_ENABLE_SUPPORT.
      Do not use MU_ENABLE_BUILD within conditionals, use additional-cond
      instead.
      * libmailutils/stream/mapfile_stream.c: Include sys/stat.h
      Sergey Poznyakoff authored
  3. 16 Dec, 2010 1 commit
  4. 08 Dec, 2010 1 commit
    • * comsat/action.c (need_crlf, _open_tty, open_tty): Moved from comsat.c
      (open_default_tty): New function.
      (run_user_action): Take device name as first argument.
      Reuse wordsplit memory.
      * comsat/comsat.c (notify_user): Update invocation of run_user_action.
      * comsat/comsat.h (open_tty): Remove prototype.
      (run_user_action): Change signature.
      * configure.ac: Add comsat tests.
      * comsat/Makefile.am (SUBDIRS): Add tests.
      * comsat/tests/.gitignore: New file.
      * comsat/tests/Makefile.am: New file.
      * comsat/tests/atlocal.in: New file.
      * comsat/tests/testsuite.at: New file.
      Sergey Poznyakoff authored
  5. 04 Dec, 2010 1 commit
    • * include/mailutils/log.h: New file.
      * include/mailutils/stdstream.h: New file.
      * include/mailutils/Makefile.am (pkginclude_HEADERS): Add stdstream.h
      and log.h.
      * include/mailutils/argcv.h: Include mailutils/types.h
      * include/mailutils/mailutils.h: Include stdstream.h
      Remove vartab.h
      * include/mailutils/types.hin (MU_DEPRECATED): New define.
      * include/mailutils/vartab.h: Mark this header and all prototypes
      it defines as deprecated.
      
      * libmailutils/stdstream/Makefile.am: New file.
      * libmailutils/stdstream/basestr.c: New file.
      * libmailutils/stdstream/strerr.c: New file.
      * libmu_compat/Makefile.am: New file.
      * libmu_compat/tests/.gitignore: New file.
      * libmu_compat/tests/Makefile.am: New file.
      * libmu_compat/tests/atlocal.in: New file.
      * libmu_compat/tests/testsuite.at: New file.
      * libmailutils/base/Makefile.am (noinst_LTLIBRARIES): Remove
      argcv.c and vartab.c.
      * libmailutils/Makefile.am (SUBDIRS): Add stdstream.
      (libmailutils_la_LIBADD): Add stdstream/libstdstream.la.
      * libmailutils/tests/Makefile.am (noinst_PROGRAMS): Remove argcv
      (TESTSUITE_AT): Remove argcv.at
      * libmailutils/tests/testsuite.at: Do not include argcv.at.
      
      * libmailutils/base/argcv.c: Move to libmu_compat/argcv.c
      * libmailutils/tests/argcv.at: Move to libmu_compat/tests/argcv.at
      * libmailutils/tests/argcv.c: Move to libmu_compat/tests/argcv.c
      * libmailutils/base/vartab.c: Move to libmu_compat/vartab.c
      
      * Makefile.am (SUBDIRS): Add libmu_compat.
      * configure.ac: Add libmu_compat/tests, libmu_compat/tests/Makefile,
      libmu_compat/tests/atlocal, libmu_compat/Makefile and
      libmailutils/stdstream/Makefile to config file list.
      
      * mu/ldflags.c (lib_descr): Add mu_compat.
      * mu/logger.c (logger_parse_opt): -t does not imply --syslog.
      (mutool_logger): Use inline-comment filter to insert "tag: "
      prefix.
      Flush and destroy both streams before returning.
      
      * po/POTFILES.in: Add libmailutils/stream/logstream.c,
      libmailutils/stdstream/baseio.c, libmailutils/stdstream/strerr.c
      and mu/logger.c.
      Sergey Poznyakoff authored
  6. 02 Dec, 2010 1 commit
    • * configure.ac: Remove checks for strtok_r, strchrnul, strndup,
      asprintf, vasprintf: none of these is used any more.
      * maidag/lmtp.c (lmtp_reply): Use mu_vasnprintf.
      * mh/mh.h (strchrnul): Remove proto.
      * mh/mh_list.c (want_header): Rewrite.
      (print): Use strcspn.
      Sergey Poznyakoff authored
  7. 24 Nov, 2010 1 commit
    • * mh/etc: New directory.
      * mh/Makefile.am: New file.
      * mh/components: Move to mh/etc.
      * mh/mailutils-mh.eli: Move to mh/etc.
      * mh/mhl.format: Move to mh/etc.
      * mh/mhl.forward: Move to mh/etc.
      * mh/mhl.repl: Move to mh/etc.
      * mh/mhl.usenet: Move to mh/etc.
      * mh/replcomps: Move to mh/etc.
      * mh/replgroupcomps: Move to mh/etc.
      * configure.ac (AC_CONFIG_FILES): Add mh/etc/Makefile.
      * mh/Makefile.am (SUBDIRS): Add etc.
      Move mhlib_DATA and related statements to mh/etc/Makefile.am
      * mh/comp.c (formfile): Remove const qualifier.
      (opt_handler): Use mh_find_file to set formfile.
      * mh/forw.c: Likewise.
      * mh/mh_init.c (mh_find_file): Make sure *resolved_name is always
      set to the last tried name.
      
      * mh/tests/comp.at: Remove directory components from the -from argument.
      * mh/tests/forw.at: Likewise.
      * mh/tests/mhl.at: Likewise.
      * mh/tests/testsuite.at (MH_SETUP): Change mhetcdir value.
      Sergey Poznyakoff authored
  8. 18 Nov, 2010 2 commits
    • * configure.ac: Add libmailutils/property/Makefile to config files.
      
      * include/mailutils/property.h (mu_property_create)
      (mu_property_destroy): Change signature.
      (mu_property_get_owner): Remove.
      (mu_property_create_init)
      (mu_property_set_init, mu_property_set_init_data)
      (mu_property_ref, mu_property_unref)
      (mu_property_save): New protos.
      (mu_property_get_iterator)
      (mu_assoc_property_init): New protos.
      * include/mailutils/sys/property.h (property_item): Remove definition.
      (MU_PROP_INIT, MU_PROP_FILL, MU_PROP_MODIFIED): New flags.
      (_mu_property): Rewrite from scratch.
      (_mu_property_check): New proto.
      
      * libmailutils/property/Makefile.am: New file.
      * libmailutils/property/assocprop.c: New file.
      * libmailutils/property/create.c: New file.
      * libmailutils/property/propget.c: New file.
      * libmailutils/property/propitr.c: New file.
      * libmailutils/property/propset.c: New file.
      
      * libmailutils/Makefile.am (SUBDIRS): Add property.
      (libmailutils_la_LIBADD): Add property/libproperty.la.
      
      * libmailutils/base/property.c: Remove.
      * libmailutils/base/Makefile.am (libbase_la_SOURCES): Remove property.c
      
      * libmailutils/base/assoc.c (first): Avoid coredumping on empty
      hash table.
      
      * include/mailutils/folder.h (mu_folder_set_property)
      (mu_folder_get_property): New protos.
      * include/mailutils/sys/folder.h (_mu_folder) <property>
      <_get_property>: New members.
      * libmailutils/mailbox/folder.c (mu_folder_destroy): Destroy the
      property.
      (mu_folder_get_property)
      (mu_folder_set_property): New functions.
      
      * include/mailutils/mailbox.h (mu_mailbox_set_property): New proto.
      * libmailutils/mailbox/mailbox.c (mu_mailbox_set_property): New function.
      (mu_mailbox_get_property): Use _get_property method.
      
      * include/mailutils/mailer.h (mu_mailer_set_property): New proto.
      * include/mailutils/sys/mailer.h (_mu_mailer) <_get_property>: New member.
      * libmailutils/mailer/mailer.c (mu_mailer_set_property): New function.
      (mu_mailer_get_property): Use _get_property method.
      
      * include/mailutils/iterator.h (mu_iterator_set_dataptr): New proto.
      * include/mailutils/sys/iterator.h (_mu_iterator) <dataptr>: New method.
      * libmailutils/base/iterator.c (mu_iterator_set_dataptr): New function.
      (mu_iterator_current): Rewrite as a wrapper around mu_iterator_current_kv.
      (mu_iterator_current_kv): Use dataptr method (if defined) to extract the
      data pointer.
      
      * libmailutils/tests/prop.c: New file.
      * libmailutils/tests/prop.at: New file.
      * libmailutils/tests/Makefile.am (noinst_PROGRAMS): Add prop.
      (TESTSUITE_AT): Add prop.at.
      * libmailutils/tests/testsuite.at: Include prop.at.
      Sergey Poznyakoff authored
    • * configure.ac (MU_COND_READLINE): New cond.
      * mh/prompter.c: New file.
      * mh/prompter-rl.c: New file.
      * mh/prompter-tty.c: New file.
      * mh/prompter.h: New file.
      * mh/TODO: Update.
      * mh/Makefile.am: Build prompter.
      
      * doc/texinfo/mu-mh.texi: Document prompter
      * po/POTFILES.in: Update.
      Sergey Poznyakoff authored
  9. 10 Nov, 2010 1 commit
    • * configure.ac (mh/tests): New testdir
      * mh/Makefile.am (SUBDIRS): Add tests
      
      * tests/Makefile.am: New file.
      * mh/tests/Makefile.am: New file.
      * mh/tests/atlocal.in: New file.
      * mh/tests/folder.at: New file.
      * mh/tests/inc.at: New file.
      * mh/tests/mark.at: New file.
      * mh/tests/mhparam.at: New file.
      * mh/tests/mhpath.at: New file.
      * mh/tests/refile.at: New file.
      * mh/tests/rmf.at: New file.
      * mh/tests/rmm.at: New file.
      * mh/tests/scan.at: New file.
      * mh/tests/testsuite.at: New file.
      * mh/tests/.gitignore: New file.
      
      * testsuite/testsuite.inc (MUT_MBCOPY): Work correctly if
      DST is a directory name (for MH and maildir formats).
      
      * mh/folder.c (action_list): Treat empty value as
      equal to no value.
      * mh/install-mh.c (main): Honor MH environment variable.
      * mh/mh_ctx.c (mh_context_read, mh_context_write): Use MU streams
      instead of stdio FILE.
      (mh_context_iterate): Add error checking.
      Do not coredump on NULL header.
      * mh/mh_global.c (_mh_init_global_sequences): Destroy sequences.
      * mh/TODO: Update.
      
      * libmailutils/stream/message_stream.c (copy_trimmed_value): New
      static function.
      (scan_stream): Strip final newline from the saved envelope values.
      
      * mu/Makefile.am (BUILD_SOURCES, EXTRA_DIST): Add
      mu-setup.c and mu-setup.h.
      Sergey Poznyakoff authored
  10. 27 Oct, 2010 1 commit
  11. 26 Oct, 2010 1 commit
    • The purpose is to make it modular and flexible.  URLs are
      parsed out as they are created.  Missing URL parts can be
      supplied via a "URL hint" at creation time (similar to
      the approach used in creating mu_address_t).  Ports
      can be specified either as numbers or as service names.
      Original port string representation can be retrieved from
      the URL, as well as its numeric value.
      
      * libmailutils/url/accessor.h: New file.
      * libmailutils/url/copy.c: New file.
      * libmailutils/url/create.c: New file.
      * libmailutils/url/decode.c: New file.
      * libmailutils/url/destroy.c: New file.
      * libmailutils/url/dup.c: New file.
      * libmailutils/url/expand.c: New file.
      * libmailutils/url/flag.c: New file.
      * libmailutils/url/get-auth.c: New file.
      * libmailutils/url/get-host.c: New file.
      * libmailutils/url/get-param.c: New file.
      * libmailutils/url/get-path.c: New file.
      * libmailutils/url/get-portstr.c: New file.
      * libmailutils/url/get-query.c: New file.
      * libmailutils/url/get-scheme.c: New file.
      * libmailutils/url/get-secret.c: New file.
      * libmailutils/url/get-user.c: New file.
      * libmailutils/url/match.c: New file.
      * libmailutils/url/port.c: New file.
      * libmailutils/url/scheme.c: New file.
      * libmailutils/url/uplevel.c: New file.
      * libmailutils/url/urlstr.c: New file.
      
      * configure.ac (AC_CONFIG_FILES): Add libmailutils/url/Makefile
      * libmailutils/Makefile.am (SUBDIRS): Add url.
      (libmailutils_la_LIBADD): Link with liburl.
      * libmailutils/base/Makefile.am (libbase_la_SOURCES): Remove url.c
      * libmailutils/base/url.c: Remove.
      
      * libmailutils/string/Makefile.am (libstring_la_SOURCES): Add xdecode.c
      * libmailutils/string/xdecode.c: New file.
      
      * include/mailutils/sys/url.h (_mu_url): Change type to short.
      <_get_port>: Change second argument to unsigned.
      <_get_portstr>: New method.
      * include/mailutils/url.h (MU_URL_SCHEME): New flag.
      (MU_URL_PARSE_HEXCODE, MU_URL_PARSE_HIDEPASS)
      (MU_URL_PARSE_PORTSRV, MU_URL_PARSE_PORTWC)
      (MU_URL_PARSE_PIPE, MU_URL_PARSE_SLASH): New flags.
      (mu_url_create_hint, mu_url_copy_hints): New prototypes.
      (mu_url_parse): Remove.
      (mu_url_get_port): Change second argument to unsigned.
      (mu_url_decode_len,mu_url_decode): Remove.
      (mu_url_decode): New proto.
      (mu_url_sget_portstr, mu_url_aget_portstr)
      (mu_url_get_portstr): New protos.
      
      * include/mailutils/util.h (mu_str_url_decode)
      (mu_str_url_decode_inline): New protos.
      * libproto/pop/mbox.c (pop_open): Port is unsigned.
      
      * libproto/imap/folder.c: Use MU_URL_SCHEME in url_may_have.
      * libproto/maildir/folder.c: Likewise.
      * libproto/mailer/prog.c: Likewise.
      * libproto/mailer/remote.c: Likewise.
      * libproto/mailer/sendmail.c: Likewise.
      * libproto/mailer/smtp.c: Likewise.
      * libproto/mbox/folder.c: Likewise.
      * libproto/mh/folder.c: Likewise.
      * libproto/nntp/folder.c: Likewise.
      * libproto/pop/folder.c: Likewise.
      
      * imap4d/imap4d.c: Remove calls to mu_url_parse.
      * libmailutils/base/registrar.c: Likewise.
      * libmailutils/base/wicket.c: Likewise.
      * libmailutils/mailbox/folder.c: Likewise.
      * libmailutils/mailbox/mailbox.c: Likewise.
      * libmailutils/mailer/mailer.c: Likewise.
      * libmailutils/tests/url-parse.c: Likewise.
      * libmailutils/tests/wicket.c: Likewise.
      * libproto/mailer/smtp_auth.c: Likewise.
      * maidag/deliver.c: Likewise.
      * mu/wicket.c: Likewise.
      
      * libmailutils/mime/mimehdr.c (mu_mimehdr_decode_param): Use
      mu_str_url_decode, instead of mu_url_decode.
      * libmailutils/stream/tcp.c (_tcp_instance)<port>: Change type
      to unsigned short. All uses updated.
      (mu_tcp_stream_create_with_source_ip)
      (mu_tcp_stream_create_with_source_host)
      (mu_tcp_stream_create): Port is unsigned.
      * include/mailutils/stream.h (mu_tcp_stream_create_with_source_ip)
      (mu_tcp_stream_create_with_source_host)
      (mu_tcp_stream_create): Port is unsigned.
      * include/mailutils/cpp/url.h (get_port): Return unsigned.
      * libmu_cpp/url.cc (get_port): Return unsigned.
      (parse): Empty function. Schedule for removal.
      * python/libmu_py/url.c (api_url_parse): Empty function.
      Schedule for removal.
      (api_url_get_port): Port is unsigned.
      
      * libmailutils/base/wicket.c (mu_wicket_file_match_url)
      (mu_wicket_file_match_url): New parameter: parse_flags.
      * mu/wicket.c (wicket_match): Use parse_flags to control
      whether or not to show the plaintext password.
      
      * doc/texinfo/url.texi: Update.
      Sergey Poznyakoff authored
  12. 24 Oct, 2010 1 commit
    • …ckward compatibility.
      
      * config/.gitignore: Remove.
      * config/Makefile.am: Remove.
      * config/mailutils-config.c: Remove.
      * config/maint.mk: Remove.
      * config/mailutils.m4: Move to mu-aux/mailutils.m4
      * mu-aux/Makefile.am (m4datadir, dist_m4data_DATA): New variables.
      
      * Makefile.am (SUBDIRS) <config>: Remove.
      * configure.ac (AC_CONFIG_FILES): Remove config.
      
      * mu/mailutils-config: New file.
      * mu/cflags.c: New file.
      * mu/ldflags.c: New file.
      * mu/Makefile.am (dist_bin_SCRIPTS, EXTRA_DIST): Add mailutils-config.
      (mu_SOURCES): Add cflags.c and ldflags.c.
      (AM_CPPFLAGS): New variable.
      * mu/mu.c: Add new modes: cflags and ldflags.
      * mu/mu.h (mutool_ldflags, mutool_cflags): New protos.
      * po/POTFILES.in: Update.
      Sergey Poznyakoff authored
  13. 09 Oct, 2010 1 commit
    • * configure.ac (AC_CONFIG_FILES): Add libmailutils/ subdirs.
      * include/mailutils/Makefile.am: Update references to libmailutils.
      * po/POTFILES.in: Likewise.
      * libmailutils/.gitignore: Update.
      * libmailutils/Makefile.am: Use convenience libraries in subdirs.
      
      * libmailutils/string/Makefile.am: New file.
      * libmailutils/cstrcasecmp.c: Move to libmailutils/string.
      * libmailutils/cstrlower.c: Likewise.
      * libmailutils/cstrupper.c: Likewise.
      * libmailutils/strltrim.c: Likewise.
      * libmailutils/strskip.c: Likewise.
      * libmailutils/stripws.c: Likewise.
      * libmailutils/strrtrim.c: Likewise.
      * libmailutils/asnprintf.c: Likewise.
      * libmailutils/asprintf.c: Likewise.
      * libmailutils/muctype.c: Likewise.
      * libmailutils/vasnprintf.c: Likewise.
      * libmailutils/mkfilename.c: Likewise.
      
      * libmailutils/stream/Makefile.am: New file.
      * libmailutils/dbgstream.c: Move to libmailutils/stream.
      * libmailutils/file_stream.c: Likewise.
      * libmailutils/fltstream.c: Likewise.
      * libmailutils/iostream.c: Likewise.
      * libmailutils/mapfile_stream.c: Likewise.
      * libmailutils/memory_stream.c: Likewise.
      * libmailutils/message_stream.c: Likewise.
      * libmailutils/prog_stream.c: Likewise.
      * libmailutils/rdcache_stream.c: Likewise.
      * libmailutils/socket_stream.c: Likewise.
      * libmailutils/stdio_stream.c: Likewise.
      * libmailutils/stream.c: Likewise.
      * libmailutils/stream_printf.c: Likewise.
      * libmailutils/stream_vprintf.c: Likewise.
      * libmailutils/streamcpy.c: Likewise.
      * libmailutils/streamref.c: Likewise.
      * libmailutils/tcp.c: Likewise.
      * libmailutils/temp_file_stream.c: Likewise.
      * libmailutils/xscript-stream.c
      
      * libmailutils/cfg/Makefile.am: New file.
      * libmailutils/cfg/.gitignore: New file.
      * libmailutils/cfg_driver.c: Move to libmailutils/cfg/driver.c.
      * libmailutils/cfg_format.c: Move to libmailutils/cfg/format.c.
      * libmailutils/cfg_lexer.l: Move to libmailutils/cfg/lexer.l.
      * libmailutils/cfg_parser.y: Move to libmailutils/cfg/parser.y.
      * libmailutils/gocs.c: Move to libmailutils/cfg/gocs.c.
      
      * libmailutils/diag/Makefile.am: New file.
      * libmailutils/diag/.gitignore: New file.
      * libmailutils/debug.c: Move to libmailutils/diag.
      * libmailutils/diag.c: Likewise.
      * libmailutils/gdebug.c: Likewise.
      * libmailutils/errors: Likewise.
      * libmailutils/muerrno.cin: Likewise.
      * libmailutils/syslog.c: Likewise.
      * libmailutils/dbgstderr.c: Likewise.
      * libmailutils/dbgsyslog.c: Likewise.
      
      * libmailutils/address/Makefile.am: New file.
      * libmailutils/address.c: Move to libmailutils/address.
      * libmailutils/parse822.c: Likewise.
      
      * libmailutils/mailbox/Makefile.am: New file.
      * libmailutils/mailbox.c: Move to libmailutils/mailbox.
      * libmailutils/mbx_default.c: Likewise.
      * libmailutils/mbxitr.c: Likewise.
      * libmailutils/attribute.c: Likewise.
      * libmailutils/body.c: Likewise.
      * libmailutils/envelope.c: Likewise.
      * libmailutils/folder.c: Likewise.
      * libmailutils/hdritr.c: Likewise.
      * libmailutils/header.c: Likewise.
      * libmailutils/message.c: Likewise.
      * libmailutils/msgscan.c: Likewise.
      
      * libmailutils/mailer/Makefile.am: New file.
      * libmailutils/mailer.c: Move to libmailutils/mailer.
      * libmailutils/progmailer.c: Likewise.
      
      * libmailutils/mime/Makefile.am: New file.
      * libmailutils/attachment.c: Move to libmailutils/mime.
      * libmailutils/mime.c: Likewise.
      * libmailutils/mimehdr.c: Likewise.
      
      * libmailutils/server/Makefile.am: New file.
      * libmailutils/acl.c: Move to libmailutils/server.
      * libmailutils/server.c: Likewise.
      * libmailutils/msrv.c: Likewise.
      * libmailutils/ipsrv.c: Likewise.
      
      * libmailutils/auth/Makefile.am: New file.
      * libmailutils/auth.c: Move to libmailutils/auth.
      * libmailutils/mu_auth.c: Likewise.
      * libmailutils/system.c: Likewise.
      
      * libmailutils/base/Makefile.am: New file.
      * libmailutils/base/.gitignore: New file.
      * libmailutils/alloc.c: Move to libmailutils/base.
      * libmailutils/amd.c: Likewise.
      * libmailutils/argcv.c: Likewise.
      * libmailutils/assoc.c: Likewise.
      * libmailutils/daemon.c: Likewise.
      * libmailutils/date.c: Likewise.
      * libmailutils/fgetpwent.c: Likewise.
      * libmailutils/freeitem.c: Likewise.
      * libmailutils/getpass.c: Likewise.
      * libmailutils/iterator.c: Likewise.
      * libmailutils/kwd.c: Likewise.
      * libmailutils/list.c: Likewise.
      * libmailutils/listlist.c: Likewise.
      * libmailutils/locale.c: Likewise.
      * libmailutils/locker.c: Likewise.
      * libmailutils/mailcap.c: Likewise.
      * libmailutils/md5.c: Likewise.
      * libmailutils/monitor.c: Likewise.
      * libmailutils/munre.c: Likewise.
      * libmailutils/mutil.c: Likewise.
      * libmailutils/nls.c: Likewise.
      * libmailutils/nullrec.c: Likewise.
      * libmailutils/observer.c: Likewise.
      * libmailutils/opool.c: Likewise.
      * libmailutils/parsedate.y: Likewise.
      * libmailutils/permstr.c: Likewise.
      * libmailutils/property.c: Likewise.
      * libmailutils/registrar.c: Likewise.
      * libmailutils/refcount.c: Likewise.
      * libmailutils/rfc2047.c: Likewise.
      * libmailutils/sha1.c: Likewise.
      * libmailutils/secret.c: Likewise.
      * libmailutils/ticket.c: Likewise.
      * libmailutils/url.c: Likewise.
      * libmailutils/vartab.c: Likewise.
      * libmailutils/version.c: Likewise.
      * libmailutils/wicket.c: Likewise.
      Sergey Poznyakoff authored
  14. 07 Oct, 2010 1 commit
    • * configure.ac: Add maidag/tests
      * maidag/Makefile.am (SUBDIRS): Add tests.
      * maidag/deliver.c (make_tmp): Write a
      message delimiter.
      (is_remote_url, is_mailer_url): Remove.
      (deliver_url): Allow for URLs without user name.
      * maidag/lmtp.c (lmtp_set_privs): Empty group list
      means do not switch to any groups.
      * maidag/maidag.c (mda_mode): New variable.
      (options): New option --mda.
      (cb_group, cb2_group): Create the list even if it is empty.
      (main): Handle --mda.
      
      * maidag/tests/.gitignore: New file.
      * maidag/tests/Makefile.am: New file.
      * maidag/tests/atlocal.in: New file.
      * maidag/tests/input.msg: New file.
      * maidag/tests/lmtp.at: New file.
      * maidag/tests/mda.at: New file.
      * maidag/tests/testsuite.at: New file.
      * maidag/tests/url-mbox.at: New file.
      * maidag/tests/input.msg: New file.
      Sergey Poznyakoff authored
  15. 05 Oct, 2010 1 commit
    • * configure.ac: Test for tcgetattr and tcsetattr.
      * gnulib.modules (getpass-gnu): Remove.
      * include/mailutils/mutil.h (mu_getpass): New proto.
      * include/mailutils/stream.h (MU_IOCTL_GET_ECHO)
      (MU_IOCTL_SET_ECHO): New ioctls.
      * include/mailutils/sys/file_stream.h (_MU_FILE_STREAM_ECHO_OFF): New flag.
      (_mu_file_stream) <echo_state>: New member.
      * libmailutils/getpass.c: New file.
      * libmailutils/Makefile.am (libmailutils_la_SOURCES): Add getpass.c.
      * libmailutils/file_stream.c (fd_done): Free echo_state.
      (fd_ioctl): Implement MU_IOCTL_GET_ECHO and MU_IOCTL_SET_ECHO.
      * mu/mu.h (mustrin): New extern.
      * mu/pop.c (com_pass): Use mu_getpass.
      * mu/shell.c (mustrin): New variable.
      (readline): Use mu_stream_getline instead of getline.
      (mutool_shell): Create mustrin.
      * pop3d/popauth.c (options): Fix typo.
      (fill_pass): Use mu_getpass.
      Sergey Poznyakoff authored
  16. 03 Oct, 2010 1 commit
    • The `mu' program is a multi-purpose tool for doing various mail-
      and mailutils-related operations.  It includes a pop3 shell,
      a coder/decoder for all filter formats supported by Mailutils,
      a utility to extract arbitrary values from the MU configuration
      files, a configuration information utility and many more, in the
      short run.  It supercedes examples/pop3client and (partially)
      mailutils-config, both of which will be removed in the future.
      
      * Makefile.am (SUBDIRS): Add mu.
      * configure.ac: Likewise.
      * po/POTFILES.in: Add new files.
      * mu/.gitignore: New file.
      * mu/Makefile.am: New file.
      * mu/filter.c: New file.
      * mu/flt2047.c: New file.
      * mu/info.c: New file.
      * mu/mu.c: New file.
      * mu/mu.h: New file.
      * mu/pop.c: New file.
      * mu/query.c: New file.
      * mu/shell.c: New file.
      Sergey Poznyakoff authored
  17. 25 Sep, 2010 1 commit
    • * configure.ac: Use libmuaux.a instead of libmuaux.la.
      * examples/Makefile.am: Likewise.
      * examples/cpp/Makefile.am: Likewise.
      * imap4d/Makefile.am: Likewise.
      * mapi/Makefile.am: Likewise.
      * mh/Makefile.am: Likewise.
      * pop3d/Makefile.am: Likewise.
      
      Remove old files from POTFILES.in (see c42bddb0).
      
      * po/POTFILES.in: Remove comsat/oldcfg.c.
      
      Build testsuites after the programs they are to test.
      
      * frm/Makefile.am (SUBDIRS): Put . before tests.
      * messages/Makefile.am: Likewise.
      * readmsg/Makefile.am: Likewise.
      * sieve/Makefile.am: Likewise.
      
      Remove leftovers from CVS times:
      
      * .cvsignore: Remove.
      * am/.cvsignore: Remove.
      * lib/.cvsignore: Remove.
      * po/.cvsignore
      Sergey Poznyakoff authored
  18. 18 Sep, 2010 1 commit
    • * configure.ac (MU_COND_GSASL): New cond.
      * include/mailutils/smtp.h (MU_SMTP_PARAM_DOMAIN)
      (MU_SMTP_PARAM_USERNAME, MU_SMTP_PARAM_PASSWORD)
      (MU_SMTP_PARAM_SERVICE, MU_SMTP_PARAM_REALM)
      (MU_SMTP_PARAM_HOST, MU_SMTP_MAX_PARAM): New constants.
      (mu_smtp_set_domain, mu_smtp_get_param): Remove.
      (mu_smtp_set_param, mu_smtp_get_param): New prototypes.
      (mu_smtp_auth, mu_smtp_add_auth_mech)
      (mu_smtp_add_auth_mech_list, mu_smtp_mech_select): New prototypes.
      * include/mailutils/sys/smtp.h (_mu_smtp) <domain>: Remove.
      (_mu_smtp) <authimpl, param, authmech>: New members.
      (_mu_smtp_gsasl_auth, _mu_smtp_mech_impl): New prototypes.
      
      * libproto/mailer/Makefile.am [MU_COND_GSASL]: Define SMTP_GSASL.
      (libmu_mailer_la_SOURCES): Add new sources.
      * libproto/mailer/smtp_domain.c: Remove.
      * libproto/mailer/smtp_param.c: New file.
      * libproto/mailer/smtp_mech.c: New file.
      * libproto/mailer/smtp_auth.c: New file.
      * libproto/mailer/smtp_gsasl.c: New file.
      * libproto/mailer/smtp_create.c (mu_smtp_destroy): Free new members of
      struct _mu_smtp.
      * libproto/mailer/smtp_ehlo.c (mu_smtp_ehlo): Use param[MU_SMTP_PARAM_DOMAIN]
      instead of domain.
      * testsuite/smtpsend.c: Handle SMTP AUTH.
      
      * libmu_auth/gsasl.c (mu_gsasl_stream_create): Bugfix.
      
      * libmailutils/xscript-stream.c (_xscript_ctl)
      <MU_IOCTL_SWAP_STREAM>: If instream!=outstream, combine them first
      into an iostream.
      Sergey Poznyakoff authored
  19. 17 Sep, 2010 1 commit
    • * bootstrap.conf: Build included listings in doc/texinfo.
      * configure.ac: Require gettext 0.18
      * doc/texinfo/Makefile.am: Remove the .c.inc rules.
      * doc/texinfo/maint.mk: New file.
      * lib/Makefile.am (libmuaux_la_SOURCES): Replace with libmuaux_a_SOURCES.
      Sergey Poznyakoff authored
  20. 16 Sep, 2010 1 commit
    • That's the first commit since the merge six days ago that passes
      distcheck (with python, cxx, imap and nntp disabled, of course).
      
      * testsuite/folder/DISTFILES: Restore. It is needed for some
      of the remaining DejaGNU tests.
      * testsuite/spool/DISTFILES: Likewise.
      * testsuite/testsuite.at: New file.
      * testsuite/atlocal.in: New file.
      * libmailutils/tests/mbdel.at: Move to testsuite/.
      * libmailutils/tests/mbdel.c: Likewise.
      * libmailutils/tests/mime.at: Likewise.
      * libmailutils/tests/mimetest.c: Likewise.
      
      * Makefile.am (SUBDIRS): Place testsuite after libproto.
      * configure.ac (AM_INIT_AUTOMAKE): Remove dist-lzma.
      (AC_CONFIG_FILES): Add testsuite/atlocal.
      * libmailutils/base64.c (_base64_decoder)
      (_base64_encoder): Fix the use of uninitialized variables.
      * libmailutils/tests/.gitignore: Remove mbdel and mimetest.
      * libmailutils/tests/Makefile.am (noinst_PROGRAMS): Remove mbdel and mimetest.
      (LDADD): Leave only MU_LIB_MAILUTILS.
      (TESTSUITE_AT): Remove mbdel.at and mime.at
      * libmailutils/tests/atlocal.in (PATH): Bugfix.
      * libmailutils/tests/testsuite.at: Remove inclusion of mbdel.at and mime.at.
      * po/POTFILES.in: Replace mailbox/ with libmailutils/.
      
      * testsuite/.gitignore: Rewrite.
      * testsuite/Makefile.am: Rewrite.
      * testsuite/mbdel.at: Set +w on all copied mailboxes.
      * testsuite/mimetest.c (main): Open mailbox for reading only.
      
      * sieve/Makefile.am: Add examples/ to the distribution.
      
      * libproto/mbox/mbox.c (mbox_open): Create locker only
      if the mailbox is open for modification.
      All users updated to check for mailbox->locker!=NULL before
      using it.
      Sergey Poznyakoff authored
  21. 14 Sep, 2010 5 commits
    • * configure.ac: Remove messages/testsuite
      * messages/Makefile.am (SUBDIRS): Replace testsuite with tests.
      * messages/tests/.gitignore: New file.
      * messages/tests/Makefile.am: New file.
      * messages/tests/atlocal.in: New file.
      * messages/tests/testsuite.at: New file.
      * messages/testsuite: Remove.
      Sergey Poznyakoff authored
    • * configure.ac: Create libmailutils/tests/atlocal and
      libmailutils/tests/Makefile. Remove libmailutils/testsuite.
      * examples/Makefile.am (noinst_PROGRAMS): Remove programs moved
      to libmailutils/tests.
      * examples/argcv.c -> libmailutils/tests/argcv.c
      * libmailutils/testsuite/Decode -> libmailutils/tests/Decode
      * libmailutils/testsuite/Encode -> libmailutils/tests/Encode
      * examples/decode2047.c: Move to libmailutils/tests
      * examples/encode2047.c: Move to libmailutils/tests
      * examples/mailcap.c: Likewise.
      * examples/url-parse.c: Likewise.
      
      * include/mailutils/Makefile.am: Minor changes.
      * libmailutils/Makefile.am (SUBDIRS): Replace testsuite with tests.
      * libmailutils/tests/Makefile.am: New file.
      * libmailutils/tests/addr.c: New file.
      * libmailutils/tests/address.at: New file.
      * libmailutils/tests/argcv.at: New file.
      * libmailutils/tests/atlocal.in: New file.
      * libmailutils/tests/base64d.at: New file.
      * libmailutils/tests/base64e.at: New file.
      * libmailutils/tests/decode2047.at: New file.
      * libmailutils/tests/encode2047.at: New file.
      * libmailutils/tests/fltst.c: New file.
      * libmailutils/tests/mailcap.at: New file.
      * libmailutils/tests/mime.at: New file.
      * libmailutils/tests/testsuite.at: New file.
      * libmailutils/tests/url.at: New file.
      
      * libmailutils/testsuite/: Delete.
      
      * frm/tests/Makefile.am: Prefix package.m4 creation commands with $(AM_V_GEN).
      * readmsg/tests/Makefile.am: Likewise.
      * sieve/tests/Makefile.am: Likewise.
      * frm/tests/testsuite.at: Minor changes.
      * readmsg/tests/testsuite.at: Include testsuite.inc.
      * sieve/tests/testsuite.at: Likewise.
      * sieve/tests/version.at: Comment out inclusion of testsuite.inc.
      * testsuite/testsuite.inc: Add m4_version_prereq.
      Sergey Poznyakoff authored
    • This change has been waiting since 2005-08-16 (aaab8814),
      when libmailbox had been renamed to libmailutils.  Back then MU
      was still under CVS, which didn't like renames.
      Sergey Poznyakoff authored
    • * configure.ac: Add readmsg/tests/
      * readmsg/Makefile.am: New file.
      * readmsg/tests/.gitignore: New file.
      * readmsg/tests/Makefile.am: New file.
      * readmsg/tests/all.at: New file.
      * readmsg/tests/atlocal.in: New file.
      * readmsg/tests/hdr.at: New file.
      * readmsg/tests/nohdr.at: New file.
      * readmsg/tests/testsuite.at: New file.
      * readmsg/tests/twomsg.at: New file.
      * readmsg/tests/weed.at: New file.
      * readmsg/testsuite: Remove.
      * testsuite/testsuite.inc (AT_SKIP_TEST): New macro.
      
      * testsuite/spool/mbox1: Remove trailing whitespace after Received headers.
      * imap4d/testsuite/imap4d/fetch.exp: Reflece changes in mbox1.
      * mail/testsuite/mail/read.exp: Likewise.
      * mail/testsuite/mail/write.exp: Likewise.
      * mailbox/testsuite/Mime: Likewise.
      Sergey Poznyakoff authored
    • * configure.ac: Build frm/testsuite/Makefile.am and atlocal.
      Remove frm/testsuite/Makefile.
      * testsuite/testsuite.inc: New file.
      
      * frm/testsuite: Remove DejaGNU-based testsuite.
      * frm/tests: Autotest-based testsuite.
      * frm/tests/.gitignore
      * frm/tests/Makefile.am
      * frm/tests/atlocal.in
      * frm/tests/testsuite.at
      
      * frm/Makefile.am (SUBDIRS): Replace testsuite with tests.
      
      * sieve/tests/Makefile.am (TESTSUITE): Add an include option.
      * sieve/tests/version.at: Use macro from testsuite.inc.
      Sergey Poznyakoff authored
  22. 13 Sep, 2010 1 commit
  23. 09 Sep, 2010 1 commit
  24. 08 Sep, 2010 3 commits
    • Move libproto/include/(*)0.h to include/mailutils/sys/\1.h
      Remove libproto/include.
      Sergey Poznyakoff authored
    • * .gitignore: Add git-describe and git-describe.h.
      * Makefile.am (MU_COND_LIBMU_CPP): Replaced with MU_COND_SUPPORT_CXX
      (SUBDIRS): Begin with .
      (EXTRA_DIST, BUILT_SOURCES): Add git-describe and git-describe.h.
      (git-describe, git-describe.h): New rules.
      (alpha, alphacheck): Use git-describe to produce additional suffix.
      * enable.m4 (MU_ENABLE_SUPPORT): Create an Automake condition.
      * configure.ac: Fix MU_ENABLE_SUPPORT calls.
      (--without-python): Replace with --disable-python.
      * examples/Makefile.am: Disable components based on MU_COND conditions.
      * libproto/Makefile.am: Likewise.
      * include/mailutils/Makefile.am (MU_COND_LIBMU_CPP): Replace with
      MU_COND_SUPPORT_CXX.
      
      * mailbox/nullrec.c: New file.
      * mailbox/Makefile.am (libmailutils_la_SOURCES): Add nullrec.c.
      
      * mail/decode.c: Remove unused variable.
      * mailbox/streamref.c: Likewise.
      Sergey Poznyakoff authored
    • * NEWS, configure.ac: Update.
      Sergey Poznyakoff authored
  25. 11 May, 2010 1 commit
  26. 12 Apr, 2010 1 commit
    • * gint: New module.
      * am/guile.m4: Remove.
      * mu-aux/guile-doc-snarf: Remove.
      * mu-aux/guile-doc-snarf.awk: Remove.
      * mu-aux/Makefile.am (EXTRA_DIST): Remove guile-doc-snarf,
      guile-doc-snarf.awk
      
      * Makefile.am: Add gint.
      * bootstrap.conf: Init gint submodule.
      * configure.ac: Rewrite Guile support using GINT_INIT.
      (AC_CONFIG_FILES): Add gint/Makefile.
      * guimb/scm/Makefile.am (sitedir): Change.
      * guimb/scm/Makefile.am: Likewise.
      * libmu_scm/Makefile.am: Include ../gint/gint.mk
      Adjust all variables.
      Remove unnecessary rules.
      * libmu_scm/mailutils.scm.in: Remove exports and includes.
      Remove obsolete code.
      * libmu_scm/mu_address.c: Use SCM_DEFINE_PUBLIC to declare public
      interfaces.
      * libmu_scm/mu_body.c: Likewise.
      * libmu_scm/mu_mailbox.c: Likewise.
      * libmu_scm/mu_message.c: Likewise.
      * libmu_scm/mu_mime.c: Likewise.
      * libmu_scm/mu_util.c: Likewise.
      * libmu_scm/mu_logger.c: Likewise.
      (mu_scm_logger_init): Make all constants public.
      * libmu_scm/mu_scm.c: Likewise.
      * libmu_scm/mu_guile.c: Use scm_c_catch instead of the
      obsolete scm_internal_lazy_catch.
      Sergey Poznyakoff authored
  27. 19 Feb, 2010 1 commit
  28. 05 Jan, 2010 2 commits
    • * configure.ac: Remove doc/rfc/Makefile.am
      * doc/Makefile.am (SUBDIRS): Remove rfc.
      (EXTRA_DIST): Add rfc/README.
      * doc/rfc/README: New file.
      * doc/rfc/CMC_V1.PS.gz: Remove.
      * doc/rfc/Makefile.am: Remove.
      * doc/rfc/rfc1413.txt: Remove.
      * doc/rfc/rfc1521.txt: Remove.
      * doc/rfc/rfc1731.txt: Remove.
      * doc/rfc/rfc1734.txt: Remove.
      * doc/rfc/rfc1738.txt: Remove.
      * doc/rfc/rfc1870.txt: Remove.
      * doc/rfc/rfc1891.txt: Remove.
      * doc/rfc/rfc1892.txt: Remove.
      * doc/rfc/rfc1893.txt: Remove.
      * doc/rfc/rfc1894.txt: Remove.
      * doc/rfc/rfc1939.txt: Remove.
      * doc/rfc/rfc1957.txt: Remove.
      * doc/rfc/rfc2045.txt: Remove.
      * doc/rfc/rfc2046.txt: Remove.
      * doc/rfc/rfc2047.txt: Remove.
      * doc/rfc/rfc2049.txt: Remove.
      * doc/rfc/rfc2060-errata
      * doc/rfc/rfc2060.txt: Remove.
      * doc/rfc/rfc2087.txt: Remove.
      * doc/rfc/rfc2088.txt: Remove.
      * doc/rfc/rfc2111.txt: Remove.
      * doc/rfc/rfc2177.txt: Remove.
      * doc/rfc/rfc2180.txt: Remove.
      * doc/rfc/rfc2192.txt: Remove.
      * doc/rfc/rfc2193.txt: Remove.
      * doc/rfc/rfc2195.txt: Remove.
      * doc/rfc/rfc2221.txt: Remove.
      * doc/rfc/rfc2222.txt: Remove.
      * doc/rfc/rfc2231.txt: Remove.
      * doc/rfc/rfc2245.txt: Remove.
      * doc/rfc/rfc2298.txt: Remove.
      * doc/rfc/rfc2342.txt: Remove.
      * doc/rfc/rfc2368.txt: Remove.
      * doc/rfc/rfc2384.txt: Remove.
      * doc/rfc/rfc2444.txt: Remove.
      * doc/rfc/rfc2449.txt: Remove.
      * doc/rfc/rfc2595.txt: Remove.
      * doc/rfc/rfc2683.txt: Remove.
      * doc/rfc/rfc2808.txt: Remove.
      * doc/rfc/rfc2821.txt: Remove.
      * doc/rfc/rfc2822.txt: Remove.
      * doc/rfc/rfc2831.txt: Remove.
      * doc/rfc/rfc3028.txt: Remove.
      * doc/rfc/rfc3206.txt: Remove.
      * doc/rfc/rfc3348.txt: Remove.
      * doc/rfc/rfc3431.txt: Remove.
      * doc/rfc/rfc3501.txt: Remove.
      * doc/rfc/rfc3691.txt: Remove.
      * doc/rfc/rfc4314.txt: Remove.
      * doc/rfc/rfc821.txt: Remove.
      * doc/rfc/rfc822.txt: Remove.
      * doc/rfc/rfc934.txt: Remove.
      * doc/rfc/sasl-mechanisms: Remove.
      Sergey Poznyakoff authored
    • Happy GNU year!
      Sergey Poznyakoff authored
  29. 29 Dec, 2009 1 commit
    • * 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
  30. 10 Sep, 2009 1 commit
    • * NEWS: Update for version 2.1
      * configure.ac: Update for version 2.1
      (AM_INIT_AUTOMAKE): Add dist-lzma and dist-xz.
      * bootstrap (slurp): Remove call to silentize:
      not needed with recent gnulib.
      Sergey Poznyakoff authored
  31. 27 Aug, 2009 1 commit
    • * 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
  32. 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