1. 18 Apr, 2017 1 commit
    • Until now, mu_header_set_value called with replace=0 prepended the header
      to the header list, if a header with such name was already present.  This
      has been changed.  Now, if the header with the requested name is already
      present, its action is as follows:
      
        1. If repl is 0, return MU_ERR_EXISTS
        2. Otherwise, replace the header with the new value.
      
      If the header is not present, it is appended to the end of the header
      list, instead of putting it at the beginning.
      
      This change is incompatible and breaks the tests, that relied on a particular
      field ordering.  These are fixed as well.
      
      The use of mu_header_set_value throughout the sources has been revised to
      ensure that single-instance headers are never added twice.
      
      This change also facilitates the second part of this commit, which
      fixes creation of the multipart/alternative message by the mail utility.
      
      * libmailutils/mailbox/header.c (mu_header_set_value): Fix semantics.
      If the replace parameter is not set and the header field with the
      given name already exists, return MU_ERR_EXISTS without changing
      anything.  If adding new header, append it to the end of the header
      list, instead of pushing it to the top.
      
      * configure.ac: Raise shared library revision number.
      
      * libmu_scm/mu_message.c (mu-message-set-header)
      (mu-message-set-header-fields): call mu_header_set_value explicitly if
      repl is not set.
      * libmu_sieve/extensions/moderator.c: Force replace header mode when
      needed.
      * libmu_sieve/extensions/vacation.c: Likewise.
      * mh/mh_init.c (mh_annotate): Prepend the annotation header.
      * mh/mhn.c: Force replace header mode when needed.
      * mh/repl.c: Likewise.
      * mh/send.c: Likewise.
      
      * libmailutils/tests/modmesg01.at: Change expected header order.
      * libmailutils/tests/modmesg03.at: Likewise.
      * mh/tests/mhn.at: Likewise.
      * mh/tests/send.at: Likewise.
      * sieve/tests/moderator.at: Likewise.
      * sieve/tests/redirect.at: Likewise.
      * sieve/tests/reject.at: Likewise.
      * sieve/tests/vacation.at: Likewise.
      
      * examples/mta.c (message_finalize): Append X-Authentication-Warning,
      instead of setting it.
      
      Make sure Content-Disposition is not set for parts of a multipart/
      alternative MIME message.  Some mail readers (notably, yahoo),
      misinterpret it.
      
      * libmailutils/mime/attachment.c (at_hdr): Use mu_header_set_value
      to set Content-Type and Content-Disposition.
      * libmailutils/mime/mime.c (_mime_set_content_type): If the content
      type is set to multipart/alternative, remove the Content-Disposition
      headers from the message parts.
      
      * mail/send.c (saveatt): Don't set content-disposition for
      multipart/alternative, it is now done by the library.
      (add_attachments): Warn about ignored headers.
      Append only Received and X-* headers, replace others.
      (parse_headers): Append headers.
      (compose_header_set): Use mu_header_append if COMPOSE_APPEND is requested.
      * mail/util.c (util_header_expand): Use mu_header_append.
      Sergey Poznyakoff authored
  2. 01 Jan, 2017 1 commit
  3. 15 Dec, 2016 1 commit
  4. 05 Nov, 2016 1 commit
  5. 22 Jan, 2016 1 commit
  6. 02 Mar, 2015 1 commit
  7. 26 Feb, 2014 2 commits
  8. 05 Feb, 2014 1 commit
  9. 07 Jun, 2012 1 commit
  10. 04 Jun, 2012 1 commit
    • * libmu_scm/mailutils/Makefile.am (DISTCLEANFILES): Rename to
      CLEANFILES: mailutils.scm should be cleaned as a usual object file.
      (MU_FEATURES): New variable, constructed depending on MU_COND_
      variables.
      (mailutils.scm goal): Use the value of MU_FEATURES as m4 command
      line.
      * libmu_scm/mailutils/mailutils.scm.in: Include only supported libraries.
      Sergey Poznyakoff authored
  11. 09 May, 2012 1 commit
    • * doc/texinfo/folder.texi: Update
      * include/mailutils/cpp/folder.h (Folder) <set_stream>
      <get_stream>: Remove.
      * include/mailutils/folder.h (mu_folder_get_stream)
      (mu_folder_get_streamref)
      (mu_folder_set_stream): Remove.
      * include/mailutils/mailbox.h (mu_folder_get_stream)
      (mu_folder_get_streamref)
      (mu_folder_set_stream): Remove protos.
      * include/mailutils/sys/folder.h (_mu_folder)<stream>: Remove.
      All uses updated.
      * libmailutils/mailbox/folder.c (mu_folder_set_stream)
      (mu_folder_get_stream,mu_folder_get_streamref): Remove.
      * libmailutils/mailbox/mailbox.c (mu_mailbox_get_stream)
      (mu_mailbox_get_streamref): Remove.
      * libmu_cpp/folder.cc (get_stream, set_stream): Remove.
      * libmu_scm/mu_mailbox.c (mu-mailbox-get-port): Remove.
      * python/libmu_py/folder.c (get_stream): Remove.
      Sergey Poznyakoff authored
  12. 05 Jan, 2012 1 commit
  13. 08 Dec, 2011 1 commit
  14. 05 Dec, 2011 1 commit
    • * 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
  15. 16 Oct, 2011 1 commit
  16. 04 Aug, 2011 1 commit
    • * libmailutils/base/assoc.c (first): Set index to max value
      if tab is NULL to indicate immediate end of iteration.
      * libmu_auth/sql.c (mu_auth_sql_by_name)
      (mu_auth_sql_by_uid): Check the return from mu_sql_num_tuples.
      (mu_sql_getpass): Check the number of returned tuples.
      Return failure if returned a NULL password.
      * libmu_scm/mu_message.c (string_sloppy_member): Remove.
      (mu-message-get-header-fields): Use scm_member instead of
      string_sloppy_member.
      * sql/postgres.c (chop): Handle NULL argument.
      Sergey Poznyakoff authored
  17. 19 Feb, 2011 1 commit
    • * libmu_scm/Makefile.am (DOT_X_FILES, DOT_DOC_FILES): Add mu_debug.x and
      mu_debug.doc.
      * mail/send.c (fill_body): Remove extra \n after null message
      body diagnostics.
      Sergey Poznyakoff authored
  18. 21 Jan, 2011 1 commit
    • * include/mailutils/debug.h (mu_debug_get_iterator): New proto.
      * libmailutils/diag/debug.c (mu_debug_get_iterator): New function.
      * libmu_scm/Makefile.am (lib_LTLIBRARIES): Add mu_debug.c.
      
      * include/mailutils/guile.h (mu_scm_debug_init): New proto.
      * libmu_scm/mu_scm.c (mu-register-format): Bugfix.
      (mu_scm_init): Call mu_scm_debug_init.
      Sergey Poznyakoff authored
  19. 16 Jan, 2011 1 commit
    • * libmailutils/diag/bt.c: New file.
      * libmailutils/diag/wd.c: New file.
      * libmailutils/diag/Makefile.am (libdiag_la_SOURCES): Add bt.c and wd.c
      
      * include/mailutils/debug.h (mu_gdb_bt, mu_wd): New protos.
      * include/mailutils/util.h (mu_getmaxfd): New protos.
      * libmailutils/base/getmaxfd.c: New file.
      * libmailutils/base/Makefile.am (libbase_la_SOURCES): Add getmaxfd.c
      
      * libmailutils/server/acl.c: Use mu_getmaxfd.
      * libmailutils/stream/prog_stream.c: Likewise.
      * mh/mh_whatnow.c: Likewise.
      
      * libmu_scm/mu_body.c (mu-body?): Bugfix.
      Sergey Poznyakoff authored
  20. 07 Jan, 2011 2 commits
    • * libmu_scm/mu_body.c (mu-body?): New function.
      * libmu_scm/mu_mailbox.c (mu-mailbox?): New function.
      * libmu_scm/mu_message.c (mu-message?): New function.
      * libmu_scm/mu_mime.c (mu-mime?): New function.
      * scheme/guimb.scmi (guimb-process-mailbox): guimb-message returns
      a message to be appended to the output mailbox.
      Sergey Poznyakoff authored
    • * libmu_scm/mailutils.scm.in: Move to libmu_scm/mailutils/mailutils.scm.in.
      Use the MAILUTILS_SCM_LIBRARY_ROOT environment variable to load
      libraries from the specified location (to be used in tests).
      
      * libmu_scm/mailutils/.gitignore: New file.
      * libmu_scm/mailutils/Makefile.am: New file.
      * libmu_scm/Makefile.am (SUBDIRS): Add mailutils
      (mailutils.scm): Remove goal and associated variables.
      
      * scheme/guimb.scmi: New file. Reincarnation of guimb.
      * scheme/Makefile.am: Build guimb from guimb.scmi.
      * scheme/sieve2scm.scmi (sieve-version): Use mu-package
      and mu-version global variables.
      
      * configure.ac (AC_CONFIG_FILES): Add libmu_scm/mailutils/Makefile.
      Sergey Poznyakoff authored
  21. 06 Jan, 2011 1 commit
  22. 02 Jan, 2011 1 commit
  23. 05 Dec, 2010 1 commit
    • The mu_debug_t object and associated functions have been removed.
      New debugging functions are based on the logstream interface.
      
      * include/mailutils/debug.hm4: Remove.
      * include/mailutils/debug.h: New file.
      * include/mailutils/Makefile.am (BUILT_SOURCES,EXTRA_DIST): Remove debug.h,
      debug.hm4.
      
      * mu-aux/debugdef.m4: Remove.
      * mu-aux/debcat.awk: New file.
      * mu-aux/Makefile.am (EXTRA_DIST): Replace debugdef.m4 with debcat.awk.
      
      * include/mailutils/sys/dbgstream.h: Remove.
      * include/mailutils/sys/debug.h: Remove.
      * include/mailutils/sys/Makefile.am (sysinclude_HEADERS): Remove debug.h
      and dbgstream.h, add debcat.h
      * include/mailutils/sys/.gitignore: Add debcat.h.
      
      * libmailutils/diag/dbgstderr.c: Remove.
      * libmailutils/diag/dbgsyslog.c: Remove.
      * libmailutils/diag/gdebug.c: Remove.
      * libmailutils/diag/debcat: New file.
      * libmailutils/diag/Makefile.am (libdiag_la_SOURCES): Remove these
      sources.
      * libmailutils/diag/debug.c: Rewrite from scratch.
      * libmailutils/diag/diag.c: Rewrite from scratch.
      
      * libmailutils/diag/syslog.c (mu_diag_syslog_printer): Remove function.
      (mu_log_syslog, mu_log_print_severity): New variables.
      
      * libmailutils/stream/dbgstream.c: Remove.
      * libmailutils/stream/Makefile.am (libstream_la_SOURCES): Remove dbgstream.c..
      * libmailutils/stdstream/Makefile.am (libstdstream_la_SOURCES): Add
      dbgstream.c.
      * libmailutils/stream/logstream.c (_mu_severity_str): Change strings
      to lower case.
      (_log_write): Improve handling of unrecognized escapes.
      (_log_ctl): Handle MU_LOGSTREAM_ADVANCE_LOCUS_LINE and
      MU_LOGSTREAM_ADVANCE_LOCUS_COL.
      
      * libmailutils/mailbox/folder.c (mu_folder_has_debug)
      (mu_folder_get_debug, mu_folder_set_debug): Remove functions.
      
      * mu-aux/debcat.awk: New file.
      * libmailutils/stdstream/dbgstream.c: New file.
      
      * comsat/action.c: Use new debug/log functions.
      * comsat/comsat.c: Likewise.
      * examples/aclck.c: Likewise.
      * examples/echosrv.c: Likewise.
      * examples/msg-send.c: Likewise.
      * examples/nntpclient.c: Likewise.
      * examples/numaddr.c: Likewise.
      * frm/common.c: Likewise.
      * imap4d/imap4d.c: Likewise.
      * imap4d/io.c: Likewise.
      * imap4d/util.c: Likewise.
      * libmailutils/auth/mu_auth.c: Likewise.
      * libmailutils/base/amd.c: Likewise.
      * libmailutils/cfg/driver.c: Likewise.
      * libmailutils/cfg/format.c: Likewise.
      * libmailutils/cfg/lexer.l: Likewise.
      * libmailutils/cfg/parser.y: Likewise.
      * libmailutils/mailbox/mailbox.c: Likewise.
      * libmailutils/mailbox/mbx_default.c: Likewise.
      * libmailutils/mailer/mailer.c: Likewise.
      * libmailutils/mailer/progmailer.c: Likewise.
      * libmailutils/server/acl.c: Likewise.
      * libmailutils/server/ipsrv.c: Likewise.
      * libmailutils/server/msrv.c: Likewise.
      * libmailutils/tests/wicket.c: Likewise.
      * libmu_argp/auth.c: Likewise.
      * libmu_argp/cmdline.c: Likewise.
      * libmu_argp/common.c: Likewise.
      * libmu_auth/ldap.c: Likewise.
      * libmu_cfg/acl.c: Likewise.
      * libmu_cfg/auth.c: Likewise.
      * libmu_cfg/common.c: Likewise.
      * libmu_cfg/ldap.c: Likewise.
      * libmu_cfg/sieve.c: Likewise.
      * libmu_cfg/sql.c: Likewise.
      * libmu_scm/mu_message.c: Likewise.
      * libmu_sieve/prog.c: Likewise.
      * libmu_sieve/runtime.c: Likewise.
      * libproto/imap/trace.c: Likewise.
      * libproto/mailer/mbox.c: Likewise.
      * libproto/mailer/prog.c: Likewise.
      * libproto/mailer/sendmail.c: Likewise.
      * libproto/mailer/smtp.c: Likewise.
      * libproto/mailer/smtp_trace.c: Likewise.
      * libproto/mbox/folder.c: Likewise.
      * libproto/mbox/mbox.c: Likewise.
      * libproto/nntp/folder.c: Likewise.
      * libproto/nntp/nntp_debug.c: Likewise.
      * libproto/pop/mbox.c: Likewise.
      * libproto/pop/pop3_trace.c: Likewise.
      * maidag/guile.c: Likewise.
      * maidag/lmtp.c: Likewise.
      * maidag/maidag.c: Likewise.
      * maidag/util.c: Likewise.
      * mail/mail.c: Likewise.
      * mail/mailvar.c: Likewise.
      * mail/send.c: Likewise.
      * mail/source.c: Likewise.
      * mh/mh_argp.c: Likewise.
      * mh/send.c: Likewise.
      * mimeview/mimeview.c: Likewise.
      * movemail/movemail.c: Likewise.
      * mu/wicket.c: Likewise.
      * pop3d/extra.c: Likewise.
      * pop3d/pop3d.c: Likewise.
      * readmsg/readmsg.c: Likewise.
      * sieve/sieve.c: Likewise.
      * testsuite/mimetest.c: Likewise.
      
      * libmu_sieve/sieve-priv.h (mu_sieve_machine) <parse_error_printer>
      <error_printer, debug_printer, debug>: Remove.
      <errstream>: New member.
      (mu_sv_compile_error, mu_sv_print_value_list)
      (mu_sv_print_tag_list): Change prototypes.
      
      * libmu_sieve/actions.c: Use new sieve debug functions.
      * libmu_sieve/extensions/list.c: Likewise.
      * libmu_sieve/extensions/moderator.c: Likewise.
      * libmu_sieve/extensions/pipe.c: Likewise.
      * libmu_sieve/extensions/spamd.c: Likewise.
      * libmu_sieve/extensions/timestamp.c: Likewise.
      * libmu_sieve/extensions/vacation.c: Likewise.
      * libmu_sieve/sieve.y : Likewise.
      * libmu_sieve/sieve.l: Likewise.
      * libmu_sieve/tests.c: Likewise.
      * libmu_sieve/util.c: Rewrite diagnostic support.
      * /maidag/sieve.c: Use new debug/log and sieve diagnostic functions.
      
      * mu/mu.c (main): Remove call to mu_stdstream_setup. It is called
      by mu_app_init now.
      
      * libmailutils/base/wicket.c (mu_wicket_stream_match_url): Change signature.
      * libmailutils/cfg/gocs.c (mu_gocs_logging_init): Rewrite.
      * libmailutils/mailbox/message.c (mu_message_save_to_mailbox): Remove
      mu_debug_t argument.
      * libmailutils/stdstream/basestr.c (mu_stdstream_setup): Minor fixes.
      * libmailutils/stdstream/strerr.c (mu_stdstream_strerr_create): Do
      not install filter stream if tag is NULL.
      (mu_stdstream_strerr_setup): New function.
      * libmu_argp/muinit.c (mu_app_init): Set mu_log_tag.
      Call mu_stdstream_setup.
      * libmu_scm/mu_dbgport.c: Rewrite port support.
      
      * include/mailutils/acl.h (mu_acl_get_debug)
      (mu_acl_set_debug): Remove prototypes.
      * include/mailutils/auth.h (mu_wicket_stream_match_url): Change signature.
      * include/mailutils/cfg.h (mu_cfg_locus_t): Remove typedef, use
      struct mu_locus instead.
      (mu_cfg_locus): Remove declaration.
      (mu_cfg_node)<locus>: Change type.
      (mu_cfg_node)<debug>: Remove.
      (mu_cfg_vperror,mu_cfg_perror)
      (mu_cfg_parse_error,mu_cfg_format_error): Remove prototypes.
      (mu_cfg_callback_t): Change signature.  All uses updated.
      (mu_cfg_get_debug): Remove prototype.
      (mu_cfg_assert_value_type, mu_cfg_string_value_cb): Change signature.
      (mu_cfg_tree_set_debug): Remove prototype.
      (mu_cfg_tree_create_node): Change signature.
      * include/mailutils/diag.h (MU_DIAG_): Redefine via MU_LOG_ constants.
      (mu_diag_get_debug,mu_diag_set_debug): Remove.
      (mu_diag_cont_vprintf, mu_diag_cont_printf)
      (mu_diag_at_locus): New functions.
      * include/mailutils/folder.h (mu_folder_has_debug)
      (mu_folder_get_debug, mu_folder_set_debug): Remove prototypes.
      * include/mailutils/gocs.h (mu_gocs_logging): Remove structure.
      (mu_gocs_debug)<errpfx>: Remove.
      * include/mailutils/guile.h (mu_scm_make_debug_port): Change prototype.
      * include/mailutils/mailbox.h (mu_mailbox_has_debug)
      (mu_mailbox_get_debug,mu_mailbox_set_debug): Remove.
      * include/mailutils/mailer.h (mu_mailer_get_debug)
      (mu_mailer_set_debug): Remove.
      * include/mailutils/message.h (mu_message_save_to_mailbox): Change
      signature.
      * include/mailutils/mu_auth.h (mu_auth_set_debug): Remove proto.
      * include/mailutils/nntp.h (mu_nntp_set_debug): Remove.
      * include/mailutils/progmailer.h (mu_progmailer_set_debug): Remove proto.
      * include/mailutils/server.h (mu_ip_server_set_debug)
      (mu_ip_server_get_debug): Remove proto.
      
      * include/mailutils/sieve.h (mu_sieve_locus_t): Remove.
      Use struct mu_locus instead.
      (mu_sieve_printf_t, mu_sieve_parse_error_t): Remove.
      (mu_sieve_action_log_t): Change signature.
      (mu_sieve_machine_init): Change signature.
      (mu_sieve_machine_init_ex): New function.
      (mu_sieve_get_diag_stream)
      (mu_sieve_set_diag_stream): New functions.
      (mu_sieve_set_data): New function.
      (mu_sieve_get_locus): Change signature.
      (mu_sieve_set_error,mu_sieve_set_parse_error)
      (mu_sieve_set_debug,mu_sieve_set_debug_object): Remove protos.
      * include/mailutils/stdstream.h (mu_stdstream_strerr_setup): New proto.
      * include/mailutils/stream.h (MU_LOGSTREAM_ADVANCE_LOCUS_LINE)
      (MU_LOGSTREAM_ADVANCE_LOCUS_COL): New ioctls.
      (mu_dbgstream_create): Change signature.
      * include/mailutils/sys/folder.h (_mu_folder) <debug>: Remove.
      * include/mailutils/sys/mailbox.h (_mu_mailbox) <debug>: Remove.
      * include/mailutils/sys/mailer.h (_mu_mailer) <debug>: Remove.
      * include/mailutils/sys/nntp.h (_mu_nntp) <debug>: Remove.
      * include/mailutils/syslog.h (mu_log_syslog)
      (mu_log_print_severity): New externs.
      * include/mailutils/types.hin (_mu_debug, mu_debug_t): Remove.
      * lib/tcpwrap.h: Remove unused prototypes.
      
      * imap4d/imap4d.h: Include mailutils/stdstream.h
      * mail/mail.h: Likewise.
      * pop3d/pop3d.h: Likewise.
      
      * mh/comp.c (main): Bugfix.
      
      * po/POTFILES.in: Update.
      * TODO: Update.
      Sergey Poznyakoff authored
  24. 25 Nov, 2010 1 commit
    • * include/mailutils/body.h (mu_body_get_filename): Remove proto.
      * include/mailutils/sys/body.h (_mu_body) <filename>: Remove.
      * libmailutils/mailbox/body.c (mu_body_get_filename): Remove
      obsolete function.
      (_body_get_stream): Use mu_temp_file_stream_create.
      * libmailutils/stream/temp_file_stream.c (mu_temp_file_stream_create):
      Return EINVAL if flags is set, but hints is NULL.
      * libmu_scm/mu_body.c (mu_scm_body_print): Don't use mu_body_get_filename.
      Sergey Poznyakoff authored
  25. 10 Oct, 2010 1 commit
    • * libmailutils/base/mutil.c (mu_hex2ul, mu_hexstr2ul): Move to string/hexstr.c.
      (mu_get_homedir, mu_get_full_path)
      (mu_expand_path_pattern): Move to base/filename.c.
      (mu_getcwd): Move to base/getcwd.c.
      (mu_tilde_expansion): Move to base/tilde.c
      (mu_cpystr): Move to string/cpystr.c.
      (mu_get_host_name): Move to base/hostname.c.
      (mu_set_user_email,mu_set_user_email_domain)
      (mu_get_user_email_domain,mu_aget_user_email_domain)
      (mu_get_user_email,mu_normalize_path): Move to base/usremail.c.
      (mu_tempfile,mu_tempname): Move to base/tempfile.c.
      (mu_spawnvp): Move to base/spawnvp.c.
      (mu_qualify_link,mu_unroll_symlink): Move to base/symlink.c.
      (mu_rfc2822_references,mu_rfc2822_msg_id)
      (mu_rfc2822_in_reply_to): Move to base/msgid.c.
      (mu_strcasestr): Move to string/cstrcasestr.c.
      (mu_string_unfold): Move to string/unfold.c.
      (mu_true_answer_p): Move to string/trueans.c.
      (mu_scheme_autodetect_p): Move to base/schemeauto.c.
      (mu_fd_wait): Move to base/fdwait.c.
      (mu_set_default_fallback,mu_decode_filter): Move to filter/decode.c.
      (__argp_base_name): Move to lib/argp_base.c.
      
      * libmailutils/base/fdwait.c: New file.
      * libmailutils/base/filename.c: New file.
      * libmailutils/base/getcwd.c: New file.
      * libmailutils/base/hostname.c: New file.
      * libmailutils/base/msgid.c: New file.
      * libmailutils/base/schemeauto.c: New file.
      * libmailutils/base/spawnvp.c: New file.
      * libmailutils/base/symlink.c: New file.
      * libmailutils/base/tempfile.c: New file.
      * libmailutils/base/tilde.c: New file.
      * libmailutils/base/usremail.c: New file.
      * libmailutils/base/Makefile.am: Add new files.
      
      * libmailutils/filter/decode.c: New file.
      * libmailutils/filter/Makefile.am: Add new files.
      
      * libmailutils/string/cpystr.c: New file.
      * libmailutils/string/cstrcasestr.c: New file.
      * libmailutils/string/hexstr.c: New file.
      * libmailutils/string/trueans.c: New file.
      * libmailutils/string/unfold.c: New file.
      * libmailutils/string/Makefile.am: Add new files.
      
      * lib/argp_base.c: New file.
      * lib/Makefile.am: Add new files.
      
      * include/mailutils/io.h: Include stdarg.h
      * include/mailutils/mutil.h: Rename to util.h.  Reorder prototypes
      and declarations in logical groups.  All uses changed.
      
      * include/mailutils/cstr.h (mu_strcasestr): New proto, moved from
      include/mailutils/mutil.h.
      Sergey Poznyakoff authored
  26. 09 Oct, 2010 1 commit
  27. 08 Sep, 2010 3 commits
    • * mailbox/msgscan.c: New file.
      * mailbox/Makefile.am (libmailutils_la_SOURCES): Add it.
      
      * include/mailutils/body.h (mu_body_set_get_stream): New prototype.
      * include/mailutils/message.h (MU_SCAN_SEEK, MU_SCAN_SIZE): New
      defines.
      (mu_message_scan): New structure.
      (mu_stream_scan_message): New prototype.
      (mu_message_set_get_stream): New prototype.
      * include/mailutils/stream.h (mu_stream_copy): Change signature: takes
      4 arguments now.
      * include/mailutils/sys/body.h (_mu_body) <_get_stream>: New method.
      * include/mailutils/sys/message.h (_mu_message) <_get_stream>: New method.
      * mailbox/body.c (_body_get_stream): Call _get_stream, if provided.
      * mailbox/message.c (_message_get_stream): Call _get_stream, if provided.
      
      * mailbox/stream.c (_stream_flush_buffer): Avoid infinite recursion:
      call stream->seek directly.
      * mailbox/streamcpy.c (mu_stream_copy): Return the number of bytes
      actually copied in the fourth argument. All uses updated.
      * mailbox/streamref.c (streamref_return): Do not propagate internal
      flags.
      (_streamref_readdelim): Ensure there is enough buffer space for the
      mu_stream_readdelim call.
      
      * libproto/pop/mbox.c: Finish client implementation.
      
      * mail/print.c (mail_print_msg): Close pager before returning on
      error.
      Sergey Poznyakoff authored
    • * libmu_scm/mu_body.c (mu_scm_body_free): Unref the stream.
      Return 0.
      (mu-body-read-line, mu-body-write): Use stringrefs.
      * libmu_scm/mu_mailbox.c (mu-mailbox-get-port): Use stringrefs.
      * libmu_scm/mu_message.c (mu-message-copy): Use stringrefs.
      Use mu_stream_copy instead of manually copying stream contents.
      (mu-message-get-port): Use stringrefs.
      * libmu_scm/mu_port.c (mu_port_free): Unref the stream.
      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
  28. 02 Jun, 2010 1 commit
  29. 14 Apr, 2010 1 commit
    • * gint: Upgrade.
      * libmu_scm/Makefile.am: Initialize BUILT_SOURCES.
      * libmu_scm/mu_address.c (address_get_fp): Change
      signature to match those of mu_address_aget family.
      (all functions): Use functions from mu_address_aget family.
      Downcase argument names. Refer to them in the docstring
      using @var notation.
      * libmu_scm/mu_body.c: Downcase argument names. Refer to them
      in the docstring using @var notation.
      * libmu_scm/mu_logger.c: Likewise.
      * libmu_scm/mu_mailbox.c: Likewise.
      * libmu_scm/mu_message.c: Likewise.
      * libmu_scm/mu_mime.c: Likewise.
      * libmu_scm/mu_scm.c: Likewise.
      * libmu_scm/mu_util.c: Likewise.
      Sergey Poznyakoff authored
  30. 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
  31. 01 Apr, 2010 4 commits
    • * libmu_scm/mu_mailbox.c (struct mu_mailbox)<itr>: New member.
      (mu_scm_mailbox_free): Destroy the iterator.
      (mu_scm_mailbox_create0): Initialize itr to NULL.
      (mu-mailbox-first-message, mu-mailbox-next-message)
      (mu-mailbox-more-messages?): New function.
      * guimb/scm/sieve-core.scm (sieve-run): Rewrite
      main loop in the True Schemish Way.
      Sergey Poznyakoff authored
    • * am/guile.m4 (MU_CHECK_GUILE): Check for SCM_DEVAL_P et al.
      * libmu_scm/mu_guile.c (mu_guile_init): Protect calls to
      SCM_DEVAL_P &c. by #ifdef GUILE_DEBUG_MACROS
      * libmu_scm/mu_port.c [!HAVE_SCM_T_OFF](scm_t_off): New typedef.
      (mu_port_make_from_stream): Use scm_new_port_table_entry instead
      of the deprecated scm_add_to_port_table
      Sergey Poznyakoff authored
    • * libmu_scm/mu_logger.c (log_tag): New static.
      (mu-openlog): Preserve log tag in log_tag, because
      openlog stores its first argument as-is.
      Simplify argument handling.
      (mu-logger): Simplify argument handling.
      (mu-closelog): Free log_tag.
      Sergey Poznyakoff authored
    • * am/guile.m4 (MU_CHECK_GUILE): Check for scm_t_off.
      * include/mailutils/guile.h (mu_scm_makenum)
      (mu_set_variable): Remove prototypes.
      * libmu_scm/mu_address.c: Remove calls to deprecated Guile functions.
      * libmu_scm/mu_body.c: Likewise.
      * libmu_scm/mu_guile.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_scm.c (mu_scm_makenum): Remove.
      (mu_set_variable): Remove. Use scm_c_define instead.
      Sergey Poznyakoff authored
  32. 14 Jan, 2010 1 commit
    • * libmu_scm/mu_mailbox.c (mu-mailbox-get-port): Fix return value.
      * libmu_scm/mu_port.c (mu_port_flush): Avoid warnings on passing
      arg 2 to mu_stream_write.
      (mu_port_free): Return 0.
      * libmu_scm/mu_message.c (mu_scm_message_free): Return 0.
      Sergey Poznyakoff authored
  33. 13 Jan, 2010 1 commit
    • * libmu_scm/mu_address.c: Use scm_to_locale_string
      instead of relying on scm_i_string_chars.
      * libmu_scm/mu_logger.c: Likewise.
      * libmu_scm/mu_mailbox.c: Likewise.
      * libmu_scm/mu_scm.c: Likewise.
      * libmu_scm/mu_util.c: Likewise.
      * libmu_scm/mu_message.c: Likewise.
      (mu_scm_message_add_owner): Don't use SCM_NEWCELL.
      (mu-message-get-envelope)
      (mu-message-get-envelope-date): New functions.
      (string_sloppy_member): Compare scm_i_string_length
      bytes from the car.
      (mu-message-get-header-fields): Don't use SCM_NEWCELL.
      * libmu_scm/mu_port.c (mu_port_make_from_stream): Don't use SCM_NEWCELL.
      Sergey Poznyakoff authored