summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2010-10-18movemail: accept "smtp://" and "sendmail://" as a destination mailbox.patches-2.2Sergey Poznyakoff2
(port cea1ebcb1e from master) * movemail/Makefile.am (movemail_LDADD): Add MU_LIB_MAILER. * movemail/movemail.c: Register *all* mailbox formats, including remote ones.
2010-10-15Switch to new gnulib (port of 8672f9f048 and 52d2552d23).Sergey Poznyakoff8
2010-10-05Remove the use of MAXHOSTNAMELEN macro.Sergey Poznyakoff6
* comsat/comsat.c (hostname): Change type. (comsat_init): Use mu_get_host_name. * comsat/comsat.h (hostname): Change declaration. * mailbox/locker.c (lock_dotlock): Use mu_get_host_name. * mailbox/mutil.c (mu_get_host_name): Rewrite. * pop3d/pop3d.c (pop3d_mainloop): Remove unnecessary call to gethostbyname. * pop3d/pop3d.h (MAXHOSTNAMELEN): Remove definition.
2010-10-05Fix uninitialized variables.Sergey Poznyakoff3
* mailbox/debug.c (mu_debug_print): Initialize ap. * mailbox/list.c (list_itrctl): Initialize ptr. * mailbox/mailer.c (send_fragments): Initialize status.
2010-09-24Fix hex (%XX) expansion in URLs.Sergey Poznyakoff2
* mailbox/url.c (url_parse0): Take three arguments. Return in the third one a boolean indicating whether to expand %XX notations in the URL. Do not decode absolute file names and pipes. (mu_url_parse): Use this value to decide. * movemail/movemail.c (main): In emacs mode: force UNIX mbox format as a default. Send debugging output to stderr.
2010-09-23imap4d: bugfix:Sergey Poznyakoff1
* imap4d/fetch.c (fetch_io): Fix a memory allocation error.
2010-09-17Implement `remove' method for mailboxes: port commit 756eb2bcfb781350 from HEAD.Sergey Poznyakoff10
2010-09-16If a message cannot be sent, save it in dead.mail.Sergey Poznyakoff1
* mail/send.c (msg_to_pipe): Return status code. (save_dead_message, send_message): New functions, extracted from mail_send0. (mail_send0): Call save_dead_message if sending failed.
2010-09-13imap4d: bugfixSergey Poznyakoff1
* imap4d/lsub.c (imap4d_lsub): Return LSUB untagged response, not LIST.
2010-09-13Mailbox quota support in imap4d: initial implementation.Sergey Poznyakoff15
* imap4d/quota.c: New file. * imap4d/Makefile.am (imap4d_SOURCES): Add quota.c * imap4d/append.c (imap4d_append0): Refuse to append if the quota is exceeded or would be exceeded after completing the operation. * imap4d/copy.c (imap4d_copy0): Refuse to copy messages if the quota is exceeded or would be exceeded after completing the operation. Return a meaningful textual description. Attempt to restore mailbox to its original size if the operation failed. * imap4d/imap4d.c (imap4d_session_setup0): Call quota_setup. * imap4d/imap4d.h (quota_setup, quota_check, quota_update): New functions. * include/mailutils/folder.h (mu_list_response) <format>: New member. * include/mailutils/mailbox.h (mu_mailbox_create_from_record): New function. * include/mailutils/types.hin (MU_FOLDER_ATTRIBUTE_LINK): New flag. * libproto/mbox/folder.c (list_helper): Do not return symbolic links unless MU_FOLDER_ATTRIBUTE_LINK is set. Fill in the resp->format member. * mailbox/mailbox.c (_mailbox_create_from_record): New static function. (_create_mailbox0): Rewrite as a wrapper over _mailbox_create_from_record. (mu_mailbox_create_from_record): New function. * guimb/scm/Makefile.am: Add sieve.scm to AM_INSTALLCHECK_STD_OPTIONS_EXEMPT.
2010-09-12movemail: bugfix.Sergey Poznyakoff1
* movemail/movemail.c (guess_mbox_owner): Fix setting GID with --owner=set-id. (main): Don't attempt to expunge source mailbox if preserve_mail is set.
2010-09-12amd: bugfix.Sergey Poznyakoff1
* mailbox/amd.c (read_size_file): Fix return value.
2010-09-08Version 2.2.release-2.2Sergey Poznyakoff2
* NEWS, configure.ac: Update.
2010-09-07imap4d: fetch body with a nonempty section spec returns section body without ↵Sergey Poznyakoff2
headers. * 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.
2010-08-26Bugfix.Sergey Poznyakoff1
* mailbox/acl.c (expand_arg): Fix a memory leak.
2010-08-12Minor change.Sergey Poznyakoff1
* examples/mimetest.c (message_display_parts): Remove not needed locals.
2010-08-12Bugfixes.Sergey Poznyakoff5
* 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.
2010-06-02Minor fix.Sergey Poznyakoff1
* examples/Makefile.am (mta_CPPFLAGS): New variable.
2010-06-02Implement mu-mailbox-get-size function.Sergey Poznyakoff1
* libmu_scm/mu_mailbox.c (mu-mailbox-get-size): New function.
2010-05-26Fix mailbox corruption in imap4d.Sergey Poznyakoff3
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.
2010-05-20Movemail improved.Sergey Poznyakoff2
* movemail/movemail.c: New options: --ignore-errors and --program-id. (_compare_msgno): Remove now unneded static. (main): Handle --ignore-errors and --program-id settings. Optimize the main loop for the case when --uidls is given. Return 1 on errors. * doc/texinfo/programs.texi: Document new features.
2010-05-20Allow to use `CALL proc' in MySQL queries.Sergey Poznyakoff1
* sql/mysql.c (mu_mysql_connect): Set CLIENT_MULTI_RESULTS flag.
2010-05-18Bugfix.Sergey Poznyakoff1
* mailbox/url.c (_url_path_default): Fix improper use of sizeof (a typo, probably).
2010-05-13MH: Improve handling of not implemented options.Sergey Poznyakoff12
* mh/mh_getopt.c (mh_opt_notimpl, mh_opt_notimpl_warning): New functions. * mh/mh_getopt.h (mh_opt_notimpl, mh_opt_notimpl_warning): New protos. * mh/ali.c (doc): Remove 'not implemented' stanza. * mh/pick.c: Likewise. * mh/anno.c: Use mh_opt_notimpl and mh_opt_notimpl_warning for not implemented options. * mh/comp.c: Likewise. * mh/forw.c: Likewise. * mh/mhn.c: Likewise. * mh/refile.c: Likewise. * mh/repl.c: Likewise. * mh/scan.c: Likewise. * mh/send.c: Likewise.
2010-05-13MH: a bugfix.Sergey Poznyakoff1
* 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)
2010-05-11Upgrade gint to a5774356.Sergey Poznyakoff1
2010-05-11Fix GINT_INIT usage.Sergey Poznyakoff2
* gint: Update to 4e48677eee5a * configure.ac (--without-guile): Remove option. Handled by GINT_INIT. (GINT_INIT): Don't call it within a conditional.
2010-05-07Minor fix.Sergey Poznyakoff1
* mailbox/rfc2047.c (getword): Initialize *pret to NULL after freeing it.
2010-04-29Minor changeSergey Poznyakoff1
* libproto/include/mime0.h (struct _mu_mime): Use size_t for offsets, ssize_t for line_ndx.
2010-04-29Allow for a sequence of semicolons before kw/value pair in a structured header.Sergey Poznyakoff1
* mailbox/mimehdr.c (_header_get_param): Skip superfluous semicolons.
2010-04-29Remove line length limitation in mime parser.Sergey Poznyakoff2
* 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.
2010-04-29Allow for certain class of broken headers.Sergey Poznyakoff1
* mailbox/mimehdr.c (_header_get_param): Tolerate unquoted value parts which contain tspecials, except ';'.
2010-04-26Accept additional whitespace and quotes in the disposition part of MIME headers.Sergey Poznyakoff1
* 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.
2010-04-18Bugfix.Sergey Poznyakoff1
* mailbox/cfg_lexer.l (mu_cfg_parse_file): Parse only regular files.
2010-04-14Fix indirect memory leak in mu_decode_filter.Sergey Poznyakoff4
* 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.
2010-04-14Improve mu_mimehdr_a?get_disp.Sergey Poznyakoff1
* mailbox/mimehdr.c (mu_mimehdr_get_disp) (mu_mimehdr_aget_disp): Return disposition even if no parameters have been given.
2010-04-14Fix memory leaks in filter and filter_iconv code.Sergey Poznyakoff10
* 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.
2010-04-14Fix memory leak in mu_rfc2047_decode.Sergey Poznyakoff1
* mailbox/rfc2047.c (getword): Change signature; return error code. (mu_rfc2047_decode): Reflect the above change.
2010-04-14Further improvements in the Guile-related code.Sergey Poznyakoff10
* 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.
2010-04-12Migrate Guile support to GINT.Sergey Poznyakoff21
* 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.
2010-04-08Fix all FIXMEs from b2c1b1ff. Revise attachment API.Sergey Poznyakoff8
* 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.
2010-04-08Minor change.Sergey Poznyakoff1
* mailbox/rfc2047.c: Minor style fix.
2010-04-08Reflect recent RFC compatibility changes in Python/C++.Wojciech Polak5
* 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.
2010-04-08Bugfix in mu_rfc2047_decode.Sergey Poznyakoff1
* 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.
2010-04-08Bugfixes.Sergey Poznyakoff2
* 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.
2010-04-08Improve MIME parameter parsing.Sergey Poznyakoff2
* 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.
2010-04-06Improve compatibility with RFC 2231 and RFC 2047.Sergey Poznyakoff10
* 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.
2010-04-03Make mu_message_(a?)get_attachment_name RFC-compatible.Sergey Poznyakoff2
* 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.
2010-04-01Implement mailbox iterators in Scheme.Sergey Poznyakoff2
* 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.
2010-04-01Implement mailbox iterators.Sergey Poznyakoff4
* 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

Return to:

Send suggestions and report system problems to the System administrator.