- 13 May, 2010 1 commit
-
-
* mh/mh_global.c (mh_read_profile): Set MU folder directory to mh_get_dir. This fixes the bug reported by Peter S Galbraith (Id. <15312.1273667793@mixed>, ref. http://sourceforge.net/mailarchive/forum.php?thread_name=15904.1273699954%40mixed&forum_name=mh-e-devel)
Sergey Poznyakoff authored
-
- 11 May, 2010 2 commits
-
-
-
* gint: Update to 4e48677eee5a * configure.ac (--without-guile): Remove option. Handled by GINT_INIT. (GINT_INIT): Don't call it within a conditional.
Sergey Poznyakoff authored
-
- 06 May, 2010 1 commit
-
-
* mailbox/rfc2047.c (getword): Initialize *pret to NULL after freeing it.
Sergey Poznyakoff authored
-
- 29 Apr, 2010 4 commits
-
-
* libproto/include/mime0.h (struct _mu_mime): Use size_t for offsets, ssize_t for line_ndx.
Sergey Poznyakoff authored -
* libproto/include/mime0.h (struct _mu_mime): New member line_size. * mailbox/mime.c (_mime_setup_buffers): Use line_size instead of MIME_MAX_HDR_LEN. (_mime_parse_mpart_message): Reallocate cur_line as necessary. (mu_mime_create): Initialize line_size.
Sergey Poznyakoff authored -
* mailbox/mimehdr.c (_header_get_param): Tolerate unquoted value parts which contain tspecials, except ';'.
Sergey Poznyakoff authored
-
- 26 Apr, 2010 1 commit
-
-
* mailbox/mimehdr.c (disp_segment_len): New function. (mu_mimehdr_get_disp, mu_mimehdr_aget_disp): Use disp_segment_len. Unquote the returned string. (_header_get_param): Allow for whitespace before '"'. Unquote the string before comparison.
Sergey Poznyakoff authored
-
- 18 Apr, 2010 1 commit
- 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
-
- 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
-
- 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 -
* 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
-
- 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
-
- 03 Apr, 2010 1 commit
-
-
* mailbox/attachment.c (_header_get_param): Rewrite. (_get_attachment_name): New auxiliary function. (mu_message_aget_attachment_name) (mu_message_get_attachment_name): Rewrite using _get_attachment_name. * mh/mhn.c (store_handler): Use mu_message_aget_attachment_name.
Sergey Poznyakoff authored
-
- 01 Apr, 2010 8 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 -
* include/mailutils/mailbox.h (mu_mailbox_get_iterator): New function. * libproto/include/mailbox0.h (struct _mu_mailbox)<iterator>: New member. * mailbox/mbxitr.c: New file. * mailbox/Makefile.am (libmailutils_la_SOURCES): Add mbxitr.c
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
-
- 31 Mar, 2010 1 commit
-
-
The mu_cfg_parse_file function ignored special meaning of the initial "~/" in file names. This led to user configuration files not being read (mu_libcfg_parse_config creates such names if mu_load_user_rcfile is set). * mailbox/cfg_lexer.l (mu_cfg_parse_file): Expand initial tilde in the file name. Store expanded file name in the opool. (mu_get_config): Destroy tree only if it has actually been created. * mailbox/cfg_parser.y (mu_cfg_parse): Free allocated memory in case of error. (do_include): Fix memory leak.
Sergey Poznyakoff authored
-
- 19 Mar, 2010 2 commits
- 12 Mar, 2010 1 commit
-
-
* mailbox/cfg_parser.y (mu_cfg_tree_union): Fix coredump on b->nodes==NULL.
Sergey Poznyakoff authored
-
- 21 Feb, 2010 2 commits
-
-
* include/mailutils/cfg.h (mu_cfg_node) <next,node>: Remove members. <nodes>: New member. (mu_cfg_tree)<head,tail>: Remove. <nodes>: New member. (mu_cfg_iter_closure): New struct. (mu_cfg_preorder): Change prototype. (mu_cfg_postorder): Remove. (mu_cfg_create_node_list): New proto. (mu_cfg_tree_create_node): Change signature. (mu_cfg_tree_add_nodelist): New proto. (mu_cfg_find_node): Change signature. * include/mailutils/libargp.h (mu_argp_node_list): Remove struct. (mu_argp_node_list_init, mu_argp_node_list_add) (mu_argp_node_list_new, mu_argp_node_list_finish): Change signature. * libmu_argp/cmdline.c (mu_argp_node_list_init, mu_argp_node_list_add) (mu_argp_node_list_new, mu_argp_node_list_finish): Take mu_list_t as the nodelist argument. * mailbox/cfg_parser.y (parse_head,parse_tail): Remove. (parse_node_list): New static, used instead of the above. All uses updated. (mu_cfg_alloc_node): Last argument is mu_list_t. (mu_cfg_create_node_list): New function. (mu_cfg_tree_postprocess): Rewrite. (mu_cfg_preorder): Rewrite. (mu_cfg_postorder): Remove. (mu_cfg_destroy_tree): Use mu_list_destroy to free the node list. (mu_cfg_scan_tree): Update calls to mu_cfg_preorder. (mu_cfg_tree_add_node): Rewrite. (mu_cfg_tree_add_nodelist): New function. (mu_cfg_find_node): Change type of the first argument. (mu_cfg_create_subtree): Rewrite. * mailbox/cfg_format.c (mu_cfg_format_parse_tree) (mu_cfg_format_node): Use new mu_cfg_preorder function. * libmu_argp/common.c: Update calls to mu_argp_node_ functions. * libmu_argp/auth.c: Likewise. * comsat/comsat.c: Likewise. * config/mailutils-config.c: Likewise. * dotlock/dotlock.c: Likewise. * imap4d/imap4d.c: Likewise. * libmu_argp/sieve.c: Likewise. * libmu_argp/tls.c: Likewise. * maidag/maidag.c: Likewise. * mimeview/mimeview.c: Likewise. * movemail/movemail.c: Likewise. * pop3d/pop3d.c: Likewise. * readmsg/readmsg.c: Likewise. * sieve/sieve.c: Likewise.
Sergey Poznyakoff authored -
* mailbox/listlist.c (mu_list_append_list) (mu_list_prepend_list): Initialize head.next and head.prev if the destination list was empty. * mailbox/freeitem.c: Include stdlib.h. * mailbox/list.c: Minor style fix.
Sergey Poznyakoff authored
-
- 20 Feb, 2010 2 commits
-
-
* include/mailutils/iterator.h (mu_itrctl_qry_direction) (mu_itrctl_set_direction): New mu_itrctl_req constants. * mailbox/iterator.c (mu_iterator_dup): Bugfix: copy dup as well. * mailbox/list.c (struct list_iterator) <backwards>: New member. (first, next): Move direction depends on the value of list_iterator.backwards. (list_itrctl): Handle mu_itrctl_qry_direction and mu_itrctl_set_direction * examples/listop.c (ictl_dir): New function. (ictl_ins): Handle new subcommand "dir". (help): Show new subcommand "dir". * mailbox/testsuite/mailbox/list.exp: Add tests for iteration backwards.
Sergey Poznyakoff authored -
* include/mailutils/iterator.h (mu_itrctl_delete_nd) (mu_itrctl_replace_nd): New mu_itrctl_req constants. * include/mailutils/list.h (mu_list_remove_nd) (mu_list_replace_nd): New prototypes. (mu_list_destroy_item_t): New typedef. (mu_list_set_destroy_item): Return mu_list_destroy_item_t. * mailbox/list.c (DESTROY_ITEM): New macro. (mu_list_destroy): Use DESTROY_ITEM. (mu_list_remove, mu_list_replace): Actually destroy the item being removed. (mu_list_remove_nd, mu_list_replace_nd): New functions. (mu_list_set_destroy_item): Return previous value of destroy_item. (list_itrctl): Handle mu_itrctl_delete_nd and mu_itrctl_replace_nd. * mailbox/observer.c (mu_observable_create): Register destroy_item function. (mu_observable_destroy): Remove explicit loop. Rely on destroy_item instead. (mu_observable_detach): Use mu_iterator_ctl to actually remove the event. * mh/mh_alias.y (_insert_list): Remove. (alias_expand_list): Use mu_iterator_ctl to insert replacement list and remove the current item. * mh/sortm.c (addop): Register destroy_item function. (remop): Remove call to free. * movemail/movemail.c (main): <uidl loop>: Use mu_itrctl_delete to remove items. * libmu_sieve/util.c: Minor change. * mail/util.c (util_slist_compare): New static function. (util_slist_add): Register destroy_item and comparison functions for the new list. (util_slist_remove,util_slist_destroy): Rewrite. * imap4d/authenticate.c (auth_add): Use mu_list_free_item as destroy_item function. * imap4d/util.c (util_register_event): Likewise. * include/mailutils/cpp/list.h (List)<set_destroy_item>: Change return value. * libmu_cpp/list.cc (List::set_destroy_item): Reflect changes to mu_list_set_destroy_item. * libmu_argp/common.c: Include stdlib.h
Sergey Poznyakoff authored
-