1. 08 Sep, 2010 1 commit
  2. 07 Sep, 2010 1 commit
    • * imap4d/fetch.c (fetch_function_closure) <section_tag>: New member.
      (_frt_body_text): Output ffc->section_tag after the secion part by
      default.
      (_frt_header, _frt_mime): Remove.
      (_frt_header0): Rewrite as a general-purpose _frt_header function.
      (parse_section_text): Set _frt_header as a driver function and
      set section_tag accordingly, instead of selecting _frt_header/_frt_mime.
      Set section_tag when selecting _frt_body_text.
      (parse_section): Default to _frt_body_text and fall back to _frt_body
      only when an empty section specifier is given.
      * imap4d/testsuite/imap4d/fetch.exp: Update accordingly.
      Sergey Poznyakoff authored
  3. 26 Aug, 2010 1 commit
  4. 12 Aug, 2010 2 commits
    • * examples/mimetest.c (message_display_parts): Remove
      not needed locals.
      Sergey Poznyakoff authored
    • * mailbox/mime.c (mu_mime_get_num_parts): Assume MIME message
      is not scanned if nmtp_parts are 0 and boundary is NULL.
      * mailbox/rfc2047.c (mu_rfc2047_decode): Free the buffer prior
      to returning a non-zero status.
      * mailbox/message.c (mu_message_destroy): Install a kludge
      to work over the slopy ref semantics.
      * mailbox/auth.c (mu_authority_destroy): Free auth_methods
      list.
      * mailbox/locker.c (destroy_dotlock): Free data.dot.nfslock.
      Sergey Poznyakoff authored
  5. 02 Jun, 2010 2 commits
  6. 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
  7. 20 May, 2010 2 commits
  8. 18 May, 2010 1 commit
  9. 13 May, 2010 2 commits
  10. 11 May, 2010 2 commits
  11. 06 May, 2010 1 commit
  12. 29 Apr, 2010 4 commits
  13. 26 Apr, 2010 1 commit
  14. 18 Apr, 2010 1 commit
  15. 14 Apr, 2010 5 commits
    • * include/mailutils/stream.h (mu_stream_clr_flags): New function.
      * mailbox/stream.c (mu_stream_clr_flags): New function.
      * mailbox/mapfile_stream.c (_mapfile_open): Avoid unnecessary
      boolean operation.
      * mailbox/mutil.c (mu_decode_filter): Use mu_stream_clr_flags
      to clear bits.
      Sergey Poznyakoff authored
    • * mailbox/mimehdr.c (mu_mimehdr_get_disp)
      (mu_mimehdr_aget_disp): Return disposition even if
      no parameters have been given.
      Sergey Poznyakoff authored
    • * mailbox/filter.c (filter_destroy): Destroy the underlying
      stream, unless flag is given.
      (mu_filter_create): Treat last argument as stream flags.
      * mailbox/filter_iconv.c (_icvt_destroy): Free the icvt_stream
      structure.
      
      * examples/mimetest.c (message_display_parts): Pass
      MU_STREAM_NO_CLOSE to the invocation of mu_filter_create.
      * mail/decode.c (display_submessage): Likewise.
      * mailbox/attachment.c (mu_message_save_attachment): Likewise.
      * mh/mh_list.c (eval_body): Likewise.
      * mh/mhn.c (mhn_message_size, show_internal): Likewise.
      (finish_text_msg): Likewise; call mu_stream_destroy
      
      * imap4d/preauth.c (decode64_buf): remove unnecessary
      call to mu_stream_destroy.
      * libmu_auth/ldap.c (chk_md5, chk_smd5)
      (chk_sha, chk_ssha): Likewise.
      
      * mailbox/mutil.c: Fix indentation.
      Sergey Poznyakoff authored
    • * mailbox/rfc2047.c (getword): Change signature; return error
      code.
      (mu_rfc2047_decode): Reflect the above change.
      Sergey Poznyakoff authored
    • * 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
  16. 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
  17. 08 Apr, 2010 6 commits
    • * include/mailutils/message.h (mu_message_save_attachment)
      (mu_message_encapsulate, mu_message_unencapsulate): Change type
      of the last argument.
      (mu_mime_io_buffer_create,mu_mime_io_buffer_destroy)
      (mu_mime_io_buffer_set_size,mu_mime_io_buffer_get_size)
      (mu_mime_io_buffer_set_charset,mu_mime_io_buffer_sget_charset)
      (mu_mime_io_buffer_aget_charset): New prototypes.
      (mu_mimehdr_get_disp,mu_mimehdr_aget_disp): Remove unneeded
      parameter.
      * include/mailutils/types.hin (mu_mime_io_buffer_t): New type.
      * mailbox/attachment.c (_msg_info): Rename structure to
      _mu_mime_io_buffer.
      <header_buf,header_len,mu_header_size>: Remove unreferenced members.
      <refcnt,bufsize,charset>: New members.
      <ioffset,ooffset>: Change type to size_t.
      (mu_mime_io_buffer_create,mu_mime_io_buffer_destroy)
      (mu_mime_io_buffer_set_size,mu_mime_io_buffer_get_size)
      (mu_mime_io_buffer_set_charset,mu_mime_io_buffer_sget_charset)
      (mu_mime_io_buffer_aget_charset): New functions.
      (mu_message_save_attachment)
      (mu_message_encapsulate, mu_message_unencapsulate): Take
      mu_mime_io_buffer_t as the last argument.
      * mailbox/mimehdr.c (mu_mimehdr_get_disp): Remove unneeded
      parameter.
      (mu_mimehdr_aget_disp): Remove unneeded parameter. Store
      return value into pvalue.
      
      * examples/mimetest.c (message_display_parts): Use
      mu_mimehdr_aget_disp and mu_mime_io_buffer_* functions.
      * mailbox/testsuite/Mime: Update.
      
      * mh/mhn.c (options, opt_handler): New option --charset.
      (store_handler): Use mu_message_aget_decoded_attachment_name.
      Sergey Poznyakoff authored
    • * mailbox/rfc2047.c: Minor style fix.
      Sergey Poznyakoff authored
    • * examples/python/mimetest.py: Update.
      * include/mailutils/cpp/message.h (get_attachment_name): Overload.
      * libmu_cpp/message.cc (Message::get_attachment_name): Overload.
      * python/libmu_py/message.c (api_message_get_attachment_name): Update.
      * python/mailutils/message.py (Message.get_attachment_name):
      Add optional charset parameter. Return (name, lang) tuple.
      Wojciech Polak authored
    • * mailbox/rfc2047.c (mu_rfc2047_decode): Use temporary buffer
      for reading from the filter stream, to avoid preliminary breaking
      from the read loop when end of the buffer is reached. Realloc the
      buffer as neccessary.
      Sergey Poznyakoff authored
    • * mailbox/mimehdr.c (_header_get_param): If buf is NULL
      on entry, make sure it alwaus points to allocated memory
      afterwards.
      
      * examples/mimetest.c (charset): New variable.
      (main): New command line option -c.
      (message_display_parts): Use mu_message_aget_decoded_attachment_name.
      Pass fname to mu_message_save_attachment.
      Sergey Poznyakoff authored
    • * mailbox/mimehdr.c (_header_get_param): Improve error checking.
      Allow for optional whitespace around the '='.
      * mailbox/rfc2047.c (mu_rfc2047_decode): tocode=NULL is OK.
      Sergey Poznyakoff authored
  18. 06 Apr, 2010 1 commit
    • * mailbox/mimehdr.c: New file.
      * mailbox/Makefile.am (libmailutils_la_SOURCES): Add
      mailbox/mimehdr.c.
      * mailbox/attachment.c (_header_get_param)
      (_get_attachment_name, mu_message_aget_attachment_name)
      (mu_message_get_attachment_name: Move to mailbox/mimehdr.c (with
      edits).
      (mu_message_save_attachment): Add a FIXME comment.
      * include/mailutils/message.h (MU_MIMEHDR_MULTILINE)
      (MU_MIMEHDR_CSINFO): New defines.
      (mu_mimehdr_get_disp,mu_mimehdr_aget_disp)
      (mu_mimehdr_get_param,mu_mimehdr_aget_param)
      (mu_mimehdr_decode_param)
      (mu_mimehdr_aget_decoded_param): New prototypes.
      (mu_message_aget_attachment_name): Change signature.
      (mu_message_aget_decoded_attachment_name): New prototype.
      
      * mailbox/mutil.c (mu_hex2ul): Fix a silly bug (have
      anybody ever tried to use that function?!?)
      * mailbox/testsuite/Urls: Update.
      
      * examples/mimetest.c (message_display_parts): Add a FIXME comment.
      * libmu_cpp/message.cc (Message::get_attachment_name): Likewise.
      * mh/mhn.c (store_handler): Likewise.
      * python/libmu_py/message.c (api_message_get_attachment_name): Likewise.
      Sergey Poznyakoff authored
  19. 03 Apr, 2010 1 commit
  20. 01 Apr, 2010 4 commits