1. 08 Sep, 2010 1 commit
    • 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
  2. 20 Feb, 2010 1 commit
    • * include/mailutils/iterator.h (mu_itrctl_req): New enum.
      (mu_iterator_skip, mu_iterator_ctl)
      (mu_iterator_set_itrctl): New prototypes.
      * include/mailutils/list.h (mu_list_free_item): New prototype.
      * libproto/include/iterator0.h (struct _mu_iterator)<itrctl>: New method.
      * libproto/include/list0.h (_mu_list_clear): New proto.
      * mailbox/iterator.c (mu_iterator_set_itrctl): New function.
      (mu_iterator_skip, mu_iterator_ctl): New functions.
      * mailbox/list.c (_insert_item): Re-implement function.
      (mu_list_insert): Use _insert_item again.
      (mu_list_remove): Don't keep track of the previous item.
      (list_itrctl): New function.
      (mu_list_get_iterator): Set itrctl method.
      * mailbox/listlist.c (clear_list): Rename to _mu_list_clear,
      remove static qualifier. All uses updated.
      
      * mailbox/freeitem.c: New file.
      * mailbox/Makefile.am (libmailutils_la_SOURCES): Add freeitem.c.
      
      * examples/listop.c (read_list): Rewrite to simplify
      calling convention. All callers updated.
      (inctl_tell,ictl_del,ictl_repl)
      (ictl_ins,ictl): New functions.
      (help): Add new commands.
      (shell): Handle "inctl" command.
      (delete): Fix memory leak.
      (main): Set mu_list_free_item as a destroy_item function.
      
      * mailbox/testsuite/mailbox/listop.c: Add ictl tests.
      
      * libmu_cfg/sieve.c (_add_path): Set mu_list_free_item as
      a destroy_item function.
      * mailbox/gocs.c (mu_gocs_store): Likewise.
      * maidag/lmtp.c (cfun_rcpt_to): Likewise.
      * imap4d/namespace.c (namespace_init): Likewise.
      * libmu_sieve/conf.c (_path_append): Likewise.
      Sergey Poznyakoff authored
  3. 05 Jan, 2010 1 commit
  4. 08 Jul, 2009 1 commit
    • * include/mailutils/mailbox.h (MU_UIDL_LENGH)
      (MU_UIDL_BUFFER_SIZE): New defines.
      (struct mu_uidl): New struct.
      (mu_mailbox_get_uidls): New prototype.
      * libproto/include/mailbox0.h (struct _mu_mailbox): New member
      _get_uidls.
      * libproto/pop/mbox.c: Implement _get_uidls.
      * libproto/pop/folder.c: Include mailutils/cctype.h.
      
      * mailbox/mailbox.c (mu_mailbox_get_uidls): New function.
      
      * movemail/movemail.c: Implement --uidl option: use UIDLs to avoid
      downloading same messages twice.  Based on the idea of Alfred M. Szmidt.
      Implement --verbose option.
      
      * libproto/imap/mbox.c: Fix comment.
      
      * NEWS: Update.
      * doc/texinfo/programs.texi: Update.
      Sergey Poznyakoff authored
  5. 07 Apr, 2009 1 commit
    • * NEWS: Update.
      
      * configure.ac (MU_LIB_REMOTE): Remove.
      (AC_CONFIG_FILES): Remove libproto/remote/Makefile.
      * include/mailutils/registrar.h (mu_remote_mbox_record): Remove.
      (MU_REMOTE_MBOX_PRIO): Remove.
      
      * libproto/Makefile.am (SUBDIRS): Remove remote.
      * libproto/include/mailer0.h (_mu_mailer_mailbox_init)
      (_mu_mailer_folder_init): New protos.
      * libproto/include/registrar0.h (_url_smtp_init)
      (_mailer_smtp_init): Remove.
      (_mu_mailer_sendmail_init, _mu_mailer_prog_init): Add prototype.
      
      * libproto/include/url0.h (struct _mu_url._uplevel): New member.
      * libproto/mailer/Makefile.am (libmu_mailer_la_SOURCES): Remove
      url_sendmail.c and url_smtp.c.
      * libproto/mailer/mbox.c: Move from ../remote.
      * libproto/mailer/url_sendmail.c: Remove.
      * libproto/mailer/url_smtp.c: Remove.
      * libproto/mailer/prog.c: Fix namespace.
      * libproto/mailer/sendmail.c: Likewise.
      * libproto/mailer/smtp.c: Likewise.
      * libproto/mailer/remote.c: New file.
      
      * libproto/remote/: Remove.
      
      * maidag/Makefile.am (maidag_LDADD): Remove ${MU_LIB_REMOTE}.
      * maidag/deliver.c (deliver_url): Remove `remote+' hack.
      (deliver): Fix error message.
      * maidag/guile.c: Fix indentation.
      * maidag/maidag.c: Support `remote+' mailboxes for backward compatibility.
      * mailbox/mailbox.c (_create_mailbox0): Call u_init after ensuring that
      url->scheme coincides with record->scheme.
      * mailbox/url.c (mu_url_uplevel): Use url->_uplevel, if defined.
      
      * libmu_argp/mu_argp.h (mu_check_option): Remove duplicate and
      incorrect prototype.
      Sergey Poznyakoff authored
  6. 11 Feb, 2009 1 commit
    • * include/mailutils/folder.h (mu_folder_create_from_record): Change
      type of the 2nd argument to mu_url_t.
      * include/mailutils/url.h (mu_url_uplevel): New proto.
      * mailbox/folder.c (mu_folder_create_from_record): Change
      type of the 2nd argument to mu_url_t.
      (mu_folder_create): Reflect changes to mu_folder_create_from_record.
      * mailbox/mailbox.c (mailbox_folder_create): Use mu_url_uplevel.
      * mailbox/url.c (mu_url_uplevel): New function.
      Sergey Poznyakoff authored
  7. 09 Nov, 2008 1 commit
    • …odetection. Improve the docs.
      
      * configure.ac (MU_DEFAULT_SCHEME): New configuration variable.
      * mailbox/version.c (mu_conf_opt): Include default scheme.
      
      * examples/mimetest.c, examples/mta.c, libmu_scm/mu_scm.c: Remove
      mu_path_record. Use mu_registrar_set_default_record.
      
      * libproto/mbox/folder.c (_path_is_scheme): Rename to
      _mbox_is_scheme. Minor changes as well.
      (_path_record, mu_path_record): Removed.
      (_mbox_record): Use _mbox_is_scheme.
      
      * libsieve/actions.c: Remove unused variable.
      
      * include/mailutils/Makefile.am (types.h rule): Replace
      _MU_DEFAULT_RECORD_. Change MU_OFF_TYPE replacement pattern to
      _MU_OFF_TYPE_.
      
      * include/mailutils/mailbox.h (mu_mailbox_set_default_proto)
      (mu_mailbox_get_default_proto): Remove. See below.
      * include/mailutils/registrar.h (mu_registrar_set_default_scheme)
      (mu_registrar_get_default_scheme)
      (mu_registrar_get_default_record)
      (mu_registrar_set_default_record)
      (mu_registrar_lookup_scheme): New prototypes.
      (mu_path_record): Remove.
      (mu_register_all_mbox_formats): Remove mu_path_record.
      Set default scheme using mu_registrar_set_default_record.
      (mu_register_local_mbox_formats): Likewise.
      * include/mailutils/types.hin (MU_OFF_TYPE): Rename to
      _MU_OFF_TYPE_.
      (MU_DEFAULT_RECORD): New define.
      
      * mailbox/mailbox.c (mu_mailbox_set_default_proto)
      (mu_mailbox_get_default_proto): Remove.
      (mu_mailbox_create): Remove default_proto kludge. mu_registrar
      stuff is responsible for finding the correct record.
      * mailbox/registrar.c (mu_registrar_set_default_record)
      (mu_registrar_get_default_record)
      (mu_registrar_set_default_scheme)
      (mu_registrar_get_default_scheme)
      (mu_registrar_lookup_scheme): New functions.
      (mu_registrar_lookup_url): Fall back to default record if no
      matching record is found and the URL was not set explicitly
      (i.e. does not begin with a scheme).
      
      * mailbox/gocs.c: Use mu_registrar_set_default_scheme instead of
      mu_mailbox_set_default_proto.
      * libsieve/extensions/pipe.c, libsieve/extensions/spamd.c,
      libsieve/extensions/vacation.c: Fix comments.
      
      * doc/texinfo/getdate.texi: New file (from gnulib).
      * doc/texinfo/Makefile.am (mailutils_TEXINFOS): Add getdate.texi
      (fix-sentence-spacing): New rule. Forces single-space
      inter-sentence spacing.
      (check-tabs, check-sentence-spacing): New rules.
      (check-format): Depend on the above two.
      (check-refs, check-fixmes, check-unrevised): Fix copy-paste
      errors. Print diagnostics to stderr.
      
      * doc/texinfo/auth.texi, doc/texinfo/fdl.texi,
      doc/texinfo/framework.texi, doc/texinfo/imap4.texi,
      doc/texinfo/libmuauth.texi, doc/texinfo/mailbox.texi,
      doc/texinfo/mailcap.texi, doc/texinfo/mailutils.texi,
      doc/texinfo/mbox.texi, doc/texinfo/message.texi,
      doc/texinfo/mom.texi, doc/texinfo/mu_message.texi,
      doc/texinfo/mu_mime.texi, doc/texinfo/mu_scm.texi,
      doc/texinfo/muint.texi, doc/texinfo/pop3.texi,
      doc/texinfo/rendition.texi, doc/texinfo/sieve.texi,
      doc/texinfo/url.texi, doc/texinfo/usage.texi: Use GNU instead of
      @sc{gnu}, because latter looks awful when typeset (especially when
      followed by a capitalized word). Fix format by running `make final'.
      
      * doc/texinfo/programs.texi: Document more config statements.
      * doc/texinfo/libsieve.texi: Document loadable actions and tests.
      Sergey Poznyakoff authored
  8. 28 Oct, 2008 1 commit
    • Minor fixes. · f3106927
      * mailbox/mailbox.c (_create_mailbox0): Take care not to destroy
      url, if creation of the mailbox failed.
      (_create_mailbox): Destroy url if unable to create mailbox.
      
      * mailbox/mutil.c (mu_is_proto): Take starting | as a protocol
      specification. A kludge.
      
      * include/mailutils/argcv.h: Fix indentation.
      Sergey Poznyakoff authored
  9. 18 Oct, 2008 1 commit
    • * NEWS: Update.
      * doc/texinfo/libmuauth.texi: Update.
      * doc/texinfo/mailutils.texi: Update.
      * doc/texinfo/programs.texi: Update.
      
      * include/mailutils/mailbox.h (mu_mailbox_create_from_url): New
      function.
      * include/mailutils/mutil.h (mu_aget_user_email_domain): New
      function.
      * libproto/include/address0.h: Remove obsolete comment.
      * libproto/remote/mbox.c (remote_mbox_append_message): If
      recipient address is not given, try to construct it from the URL.
      * mailbox/mailbox.c (mu_mailbox_create_from_url): New function.
      * mailbox/mutil.c (mu_aget_user_email_domain): New function.
      
      * maidag/deliver.c (deliver_to_user): Mailbox and auth must be
      freed by the caller.
      (deliver_url): New function.
      (deliver): Rewrite to allow for delivering to mailboxes explicitly
      specified by URLs (--url command line option).
      * maidag/maidag.c (options): New option --url.
      (main): Handle --url.
      * maidag/maidag.h (url_option): New global.
      * maidag/mailquota.c (check_quota): Return if auth == NULL.
      Sergey Poznyakoff authored
  10. 05 Oct, 2008 1 commit
    • * libproto/remote/folder.c (remote_url_init): Remove.
      (_remote_is_scheme): New function.
      (_remote_mbox_record): Add _is_scheme method.
      * libproto/remote/mbox.c (remote_mbox_init): Remove useless
      check.
      * mailbox/assoc.c (mu_assoc_clear): Return immediately if assoc
      tab is NULL.
      * mailbox/mailbox.c (_create_mailbox0): Do not enforce exact record
      scheme match if the scheme ends with a plus sign.
      Sergey Poznyakoff authored
  11. 07 Aug, 2008 2 commits
  12. 05 Feb, 2008 1 commit
  13. 06 Jan, 2008 1 commit
    • * libproto/include/amd.h (struct _amd_message): Remove `deleted',
      add `orig_flags' instead.
      (struct _amd_data): Remove `msg_file_name', add `cur_msg_file_name'
      and `new_msg_file_name'.
      Add `mailbox_size'.
      * libproto/maildir/mbox.c (struct _maildir_message): Remove
      `newflag', add `dir'.
      (maildir_name_info_ptr): New function.
      (mk_info_filename): Bugfix.
      (maildir_cur_message_name, maildir_new_message_name): New
      functions.
      (maildir_msg_init): Set ->dir
      (maildir_msg_finish_delivery): Handle error conditions.
      (maildir_scan_dir): New argument `dirname'. Initialize orig_flags.
      (maildir_qfetch): Initialize dir.
      (_mailbox_maildir_init): Set cur_msg_file_name and
      new_msg_file_name.
      * libproto/mh/mbox.c (_mh_cur_message_name)
      (_mh_new_message_name): New functions.
      (mh_scan0): Initialize orig_flags.
      (_mailbox_mh_init): Set cur_msg_file_name and
      new_msg_file_name.
      * mailbox/amd.c (amd_message_qid, _amd_message_save)
      (amd_append_message, amd_expunge, amd_scan_message)
      (amd_pool_open, amd_header_fill): Use appropriate msg_file_name
      functions.
      (amd_get_size): Implemented.
      * mailbox/mailbox.c (mu_mailbox_flush): Bugfix.
      Sergey Poznyakoff authored
  14. 30 Dec, 2007 1 commit
    • * frm/testsuite/frm/test.exp: Call mu_init with -noflags option.
      Use --mail-folder option when necessary.
      * messages/testsuite/messages/test.exp: Likewise.
      * readmsg/testsuite/readmsg/test.exp: Likewise.
      * sieve/testsuite/lib/sieve.exp: Likewise.
      * sieve/testsuite/sieve/action.exp: Likewise.
      * sieve/testsuite/scripts/fileinto.sv: Use +file, instead of
      %file.
      
      * imap4d/imap4d.c: Register mailbox formats before parsing
      configuration.
      * imap4d/util.c (util_wcard_match): Replaced with a more efficient
      implementation, based on wildmat from GNU Radius.
      * imap4d/testsuite/imap4d/list.exp: Expect two non-mailbox files
      to appear in the list output (see libproto/mbox/folder.c, 2007-12-28).
      
      * libargp/common.c: New option --mail-folder.
      * libcfg/common.c: New statement mailbox/folder
      
      * libproto/maildir/folder.c (_maildir_is_scheme): Never return
      MU_FOLDER_ATTRIBUTE_DIRECTORY bit: maildir folders cannot contain
      subfolders.
      * libproto/maildir/mbox.c (maildir_msg_init): Bugfix: use full
      file name.
      Print additional diagnostics if stat fails.
      * libproto/mbox/folder.c (list_helper): Take additional argument,
      record, specifying a mu_record_t object to match entries
      against. If it is NULL, mu_registrar_lookup is used.
      Fix descending into subdirectories.
      
      * maidag/deliver.c (deliver): Split off deliver_to_user function;
      call it with user privileges. This fixes privileges of any created
      maildir folders.
      * maidag/maidag.c (set_debug_flags): Bugfix.
      
      * mail/mail.c (main): Open the mailbox with MU_STREAM_CREAT flag.
      
      * mailbox/amd.c (amd_open): Do not initialize amd->mtime to
      trigger initial scanning.
      (_amd_message_save): Check rename return value.
      (amd_is_updated): Do not check for msg_count==0, rely on the
      timestamp.
      
      * mailbox/mailbox.c (mu_mailbox_set_default_proto): Accept an
      argument without trailing semicolon.
      * mailbox/mbx_default.c (mu_set_mail_directory): Accept NULL
      argument.
      (mu_set_mailbox_pattern): Likewise.
      (mu_mailbox_create_default): Use FOLDER or MAIL environment
      variables only if _mu_mailbox_pattern is not set. In other words,
      setting mail-spool in the configuration file overrides these
      variables.
      Sergey Poznyakoff authored
  15. 28 Dec, 2007 1 commit
    • appear in any local URLs.
      
      * TODO, NEWS: Update.
      
      * examples/url-parse.c: Print field/value pairs.
      * include/mailutils/argcv.h (MU_ARGCV_RETURN_DELIMS): New macro.
      (mu_argcv_get_np): New function.
      (mu_argcv_remove): New function.
      * include/mailutils/mutil.h (mu_scheme_autodetect_p): Change
      prototype.
      * include/mailutils/registrar.h (mu_registrar_lookup_url): New
      function.
      (struct _mu_record._is_scheme): Change signature.
      * include/mailutils/url.h (mu_url_sget_fvpairs)
      (mu_url_aget_fvpairs): New functions.
      (mu_url_expand_path): New function.
      
      * libproto/imap/folder.c (folder_imap_list): Fix signature.
      * libproto/nntp/folder.c (nntp_folder_list): Fix signature.
      * libproto/include/amd.h (amd_url_init): Remove.
      * libproto/include/registrar0.h: Fix scheme defines.
      * libproto/include/url0.h (struct _mu_url.fvpairs,fvcount): New
      members.
      * libproto/maildir/folder.c (_maildir_is_scheme): Change
      signature.
      (_maildir_url_init): Remove
      (_maildir_record): Remove url_init.
      * libproto/mbox/folder.c (_path_record): Remove url_init.
      (_mbox_record): Use mu_url_expand_path as url_init.
      (_path_is_scheme): Change signature.
      * libproto/mh/folder.c (_mh_is_scheme): Change signature.
      (_mh_url_init): Remove.
      (_mh_record): Use mu_url_expand_path as url_init.
      * libproto/mbox/Makefile.am (libmu_mbox_la_SOURCES): Remove url.c
      * libproto/mbox/url.c: Remove.
      
      * mail/mail.h, mail/util.c (util_url_to_string): New function.
      * mail/quit.c, mail/summary.c: Use util_url_to_string where
      appropriate.
      * mailbox/amd.c (amd_url_destroy, amd_url_init): Remove.
      * mailbox/argcv.c (mu_argcv_get_np): New function.
      (argcv_scan): Change signature. All callers updated.
      (argcv_get_n): Rewrite using argcv_get_np.
      (mu_argcv_remove): New function.
      
      * mailbox/file_stream.c (struct _prog_stream.argc): Fix data type.
      * mailbox/folder.c (mu_folder_create_from_record): URL initializer
      is optional.
      * mailbox/gdebug.c (mu_global_debug_from_string): Fix datatype of
      argc.
      * mailbox/mailbox.c (mailbox_folder_create): Rewrite.
      (_create_mailbox): Split off _create_mailbox0 function.
      Make URL initializer optional.
      * mailbox/mutil.c (mu_scheme_autodetect_p): Rewrite.
      * mailbox/registrar.c (mu_registrar_lookup_url): New function.
      (mu_registrar_lookup): Rewrite using mu_registrar_lookup_url.
      (mu_record_is_scheme,mu_record_set_is_scheme): Change signature.
      * mailbox/url.c (mu_url_destroy): Destroy fvpairs.
      (url_parse0): Use scheme "file" for URLs beginning with a /.
      Parse parameters.
      (mu_url_sget_fvpairs, mu_url_aget_fvpairs): New functions.
      (mu_url_expand_path): New function.
      * mailbox/testsuite/Urls: Update.
      
      * pop3d/bulletin.c (set_bulletin_db,set_bulletin_source): Allocate
      string storage.
      (read_bulletin_db): Return 0 if no record was found.
      (get_last_delivered_num): Return error code.
      (deliver_pending_bulletins): Rewrite.
      * pop3d/capa.c (pop3d_capa): Bugfix.
      Sergey Poznyakoff authored
  16. 19 Dec, 2007 1 commit
    • * configure.ac (MU_LIB_REMOTE): New substitution variable.
      (AC_CONFIG_FILES): Add libproto/remote/Makefile.
      * imap4d/copy.c, imap4d/create.c, imap4d/delete.c, imap4d/fetch.c,
      imap4d/imap4d.c, imap4d/list.c, imap4d/lsub.c, imap4d/rename.c,
      imap4d/subscribe.c, imap4d/unsubscribe.c, imap4d/util.c: Spelling
      fixes.
      * include/mailutils/cfg.h (mu_cfg_error_count): New variable.
      * include/mailutils/gocs.h (struct mu_gocs_mailbox):  New member
      mailbox_pattern
      * include/mailutils/libargp.h (mu_rcfile_lint): New variable.
      * include/mailutils/mailbox.h (mu_set_mailbox_pattern): New
      function.
      (mu_mail_directory): Removed.
      (mu_mailbox_url): New function.
      * include/mailutils/mutil.h (mu_normalize_mailbox_url): Remove.
      * include/mailutils/registrar.h (mu_0_6_registrar_lookup): Remove.
      
      * libargp/common.c: New options --rcfile-lint and
      --mailbox-pattern.
      * libargp/muinit.c: Handle --rcfile-lint.
      * libcfg/common.c: New statement mailbox-pattern
      * libmu_scm/mu_mailbox.c (mu-mail-directory): Deprecated.
      (mu-user-mailbox-url): New function.
      
      * libproto/remote: New directory.
      * libproto/remote/folder.c: New file.
      * libproto/remote/mbox.c: New file.
      * libproto/remote/.cvsignore: New file.
      
      * libproto/Makefile.am (SUBDIRS): Add remote
      * libproto/mbox/folder.c, libproto/mbox/url.c: Indentation and
      spelling fixes.
      * maidag/Makefile.am (maidag_LDADD): Add MU_LIB_REMOTE.
      * maidag/maidag.c: Register mu_remote_mbox_record.
      * mailbox/cfg_parser.y (mu_cfg_error_count): New variable.
      (mu_cfg_format_error,_mu_cfg_vperror): Increment
      mu_cfg_error_count.
      * mailbox/debug.c (mu_debug_check_level): Do not mask out
      inheritance bit.
      * mailbox/gocs.c (mu_gocs_mailbox_init): Set mailbox pattern.
      * mailbox/mailbox.c (_create_mailbox): Bugfix.
      * mailbox/mbx_default.c (mu_set_mailbox_pattern): New finction.
      (mu_set_mail_directory): Rewrite.
      (user_mailbox_name): Rewrite.
      * mailbox/mutil.c (mu_normalize_mailbox_url): Remove.
      * mailbox/registrar.c (mu_0_6_registrar_lookup): Remove.
      * guimb/scm/sieve-core.scm (sieve-main): Use mu-user-mailbox-url.
      Sergey Poznyakoff authored
  17. 07 Dec, 2007 1 commit
    • * examples/Makefile.am: Add aclck
      * examples/aclck.c: New file. Test program for ACLs.
      * include/mailutils/Makefile.am (pkginclude_HEADERS): Add acl.h,
      kwd.h and vartab.h.
      * include/mailutils/acl.h: New file. ACL declarations.
      * include/mailutils/kwd.h: New file. Declarations for simple
      string to token conversion.
      * include/mailutils/vartab.h: New file. Declarations of functions
      for variable expansion.
      * include/mailutils/mailutils.h: Include acl.h, kwd.h and
      vartab.h.
      * include/mailutils/types.hin: Define mu_vartab_t
      
      * mailbox/Makefile.am (libmailutils_la_SOURCES): Add acl.c, kwd.c,
      and vartab.c.
      * mailbox/acl.c: New file.
      * mailbox/kwd.c: New file.
      * mailbox/vartab.c: New file.
      
      * mailbox/cfg_parser.y (parse_cidr): Fix typo.
      * mailbox/list.c: Fix indentation.
      * mailbox/mailbox.c (_create_mailbox): Fix type of level.
      * mailbox/syslog.c: Use mu_kwd_* functions.
      Sergey Poznyakoff authored
  18. 28 Nov, 2007 1 commit
    • to set their default mu_debug_t objects basing on these settings.
      
      * include/mailutils/Makefile.am: Add debug.hin. Build debug.h from
      it.
      * include/mailutils/debug.hm4: New file.
      * include/mailutils/debug.h: Remove generated file.
      * scripts/Makefile.am (EXTRA_DIST): Add debugdef.m4
      * scripts/debugdef.m4: New file.
      
      * include/mailutils/gocs.h (struct mu_gocs_debug): New data type.
      (mu_gocs_register_std): Argument is const.
      (mu_gocs_debug_init): New function.
      * include/mailutils/libargp.h (mu_debug_cmdline): New extern.
      * include/mailutils/libcfg.h (mu_debug_cfg_capa): New extern.
      * libargp/cmdline.c: Add mu_debug_cmdline
      * libargp/common.c: Add debug settings.
      * libargp/mu_argp.c (struct cap_buf.capa): Remove const qualifier.
      * libcfg/common.c (mu_locking_param): Remove superfluous `lock-'
      prefix from the statement names.
      (mu_debug_param): New parameter group.
      * libcfg/init.c: Add mu_debug_param.
      * mailbox/gocs.c (mu_gocs_debug_init): New function.
      
      * mailbox/Makefile.am (libmailutils_la_SOURCES): Add gdebug.c
      * mailbox/gdebug.c: New file
      * mailbox/debug.c (mu_debug_printf, mu_debug_vprintf)
      (mu_debug_check_level): New functions.
      (mu_debug_printv, mu_debug_print): Rewrite using new basic calls.
      
      * comsat/comsat.c, dotlock/dotlock.c, examples/muauth.c,
      mail.remote/mail.remote.c: Add debug capability.
      * frm/frm.c, frm/from.c, guimb/main.c, imap4d/imap4d.c,
      mail/mail.c, mail.local/main.c, messages/messages.c,
      pop3d/pop3d.c, readmsg/readmsg.c: Add locking and debug capabilities.
      
      * examples/mimetest.c, examples/msg-send.c, frm/common.c,
      libargp/auth.c, libmu_scm/mu_message.c, mail/send.c, mh/send.c,
      mimeview/mimeview.c, movemail/movemail.c, sieve/sieve.c: Update
      invocation of mu_debug_set_level.
      
      * libproto/imap/folder.c, libproto/imap/mbox.c,
      libproto/include/folder0.h, libproto/include/mailbox0.h,
      libproto/include/mailer0.h, libproto/mailer/sendmail.c,
      libproto/mailer/smtp.c, libproto/mbox/mbox.c,
      libproto/nntp/folder.c, libproto/nntp/nntp_debug.c,
      libproto/pop/mbox.c, libproto/pop/pop3_debug.c, mailbox/amd.c,
      mailbox/mailer.c, mailbox/message.c, mailbox/mu_auth.c: Use
      MU_DEBUG[0-9] for debugging.
      
      * mailbox/muerror.c: Include string.h
      * mailbox/syslog.c (syslog_to_n): Remove unused variable.
      * mailbox/assoc.c (struct _mu_assoc_elem): name is not const.
      * mailbox/cfg_lexer.c: Quoted strings can be continued to the
      following line either by using a trailing backslash or by
      concatenating strings together, as in C.
      * mailbox/mailbox.c (_create_mailbox): Initialize debug object
      using global "mailbox" level.
      (mu_mailbox_create): Fix bug introduced on 2007-11-26.
      
      * include/mailutils/libsieve.h (mu_sieve_set_debug_level): Change
      prototype.
      (mu_sieve_set_debug_object): New prototype.
      * libsieve/sieve.y (mu_sieve_machine_init): Initialize debug
      object from "sieve" global level.
      (mu_sieve_set_debug_level): Set only debug_level.
      (mu_sieve_set_debug_object): New function.
      
      * maidag/maidag.c: Remove explicit setting of debug object. Add
      "debug" group, which provides the required functionality.
      (set_debug_flags): Likewise. This function and the corresponding
      command line option are fading out in favor of global debug
      settings.
      Sergey Poznyakoff authored
  19. 26 Nov, 2007 1 commit
    • and libcfg.
      (fgetpwent): Use AC_CHECK_FUNCS
      * auth/virtual.c: Use mu_fgetpwent if fgetpwent is not available.
      
      * lib/Makefile.am: Add back utmp.c
      * lib/utmp.c: Restore after unintended remove.
      * m4/utmp.m4: Fix quoting.
      
      * libcfg/gsasl.c, libcfg/ldap.c, libcfg/pam.c, libcfg/radius.c,
      libcfg/sieve.c, libcfg/sql.c, libcfg/tls.c, libcfg/virtdomain.c:
      Include stdlib.h
      
      * libproto/imap/folder.c, libproto/mbox/mbox.c,
      libproto/mbox/mbox0.h, libproto/pop/mbox.c, mailbox/attachment.c,
      mailbox/mailbox.c, mailbox/parsedate.y:	Do not use alloca.
      
      * mailbox/Makefile.am (libmailutils_la_SOURCES): Add fgetpwent.c
      and intprops.h.
      * mailbox/fgetpwent.c (fgetpwent): Rename to mu_fgetpwent.
      * mailbox/gocs.c: Revert recent change. It broke the testsuite in
      sieve.
      * mailbox/syslog.c (log_facility): Initialize to LOG_FACILITY.
      Sergey Poznyakoff authored
  20. 18 Nov, 2007 1 commit
    • from the repository. Bootstrap directly from the gnulib CVS.
      
      * configure.ac: Update.
      * lib/Makefile.am: Update.
      * mailbox/Makefile.am: Update.
      * include/mailutils/Makefile.am (SUBDIRS): Remove gnu
      * include/mailutils/gnu/Makefile.am: Remove
      * examples/argcv.c, examples/mta.c, guimb/guimb.h,
      imap4d/imap4d.h, libargp/mu_argp.c, libargp/tls.c,
      maidag/maidag.h, mail/mail.h, mail/send.c,
      mail.local/mail.local.h, mh/mh.h: Remove getline.h
      * libproto/nntp/mbox.c: Include mailutils/md5.h
      * libargp/cmdline.h: Include strings.h
      * m4/debug.m4, m4/enable.m4, m4/gsasl.m4, m4/guile.m4,
      m4/mu_libobj.m4: Minor fix
      * m4/intmax.m4,m4/inttypes-pri.m4,m4/inttypes_h.m4: Update
      * mailbox/alloca.h: Remove
      * mailbox/mailbox.c: Include string.h
      * mailbox/nls.c: Include locale.h
      * po/Makevars: Remove.
      
      * absolute-header.m4, alloca.m4, allocsa.m4, argp.m4, codeset.m4,
      d-type.m4, eealloc.m4, eoverflow.m4, error.m4, exitfail.m4,
      extensions.m4, fnmatch.m4, full-header-path.m4, getdelim.m4,
      getline.m4, getlogin_r.m4, getndelim2.m4, getopt.m4, getpass.m4,
      gettext.m4, glibc2.m4, glibc21.m4, glob.m4, gnulib.m4, iconv.m4,
      intdiv0.m4, isc-posix.m4, lcmessage.m4, lib-ld.m4, lib-link.m4,
      lib-prefix.m4, lock.m4, longdouble.m4, longlong.m4,
      mailbox-link.m4, mbchar.m4, mbiter.m4, mbrtowc.m4, mbstate_t.m4,
      mbswidth.m4, memchr.m4, mempcpy.m4, minmax.m4, obstack.m4,
      onceonly.m4, po.m4, printf-posix.m4, progtest.m4, regex.m4,
      restrict.m4, setenv.m4, signed.m4, size_max.m4, snprintf.m4,
      ssize_t.m4, stat-macros.m4, stdbool.m4, stdint.m4, stdint_h.m4,
      strcase.m4, strchrnul.m4, strdup.m4, strerror_r.m4, strndup.m4,
      strnlen.m4, strtok_r.m4, sysexits.m4, uint32_t.m4, uintmax_t.m4,
      ulonglong.m4, unistd_h.m4, unlocked-io.m4, vasnprintf.m4,
      vasprintf.m4, visibility.m4, vsnprintf.m4, wchar_t.m4, wcwidth.m4,
      wint_t.m4, xalloc.m4, xsize.m4: Remove.
      
      * alloca.c, allocsa.c, allocsa.h, asprintf.c, basename.c, error.c,
      error.h, exit.h, exitfail.c, exitfail.h, fnmatch.c, fnmatch_.h,
      fnmatch_loop.c, getpass.c, getpass.h, intprops.h, malloc.c,
      mbswidth.c, mbswidth.h, md5.c, md5.h, obstack.c, obstack.h,
      realloc.c, setenv.c, setenv.h, snprintf.c, snprintf.h, stdbool.h,
      stdbool_.h, strcasecmp.c, strncasecmp.c, strsignal.c, strtok_r.c,
      unsetenv.c, utmp.c, vasprintf.c, vasprintf.h, vsyslog.c,
      xalloc-die.c, xalloc.h, xalloc_die.c, xmalloc.c, xsize.h,
      xstrdup.c: Remove.
      
      * alloca.c, alloca_.h, argp-ba.c, argp-eexst.c, argp-fmtstream.c,
      argp-fmtstream.h, argp-fs-xinl.c, argp-help.c, argp-namefrob.h,
      argp-parse.c, argp-pin.c, argp-pv.c, argp-pvh.c, argp-xinl.c,
      argp.h, asnprintf.c, fnmatch.c, fnmatch_.h, fnmatch_loop.c,
      getdelim.c, getdelim.h, getline.c, getline.h, getlogin_r.c,
      getlogin_r.h, getndelim2.c, getndelim2.h, getopt.c, getopt.h,
      getopt1.c, getopt_.h, getopt_int.h, gettext.h, glob-libc.h,
      glob.c, glob_.h, malloc.c, mbchar.c, mbchar.h, mbuiter.h,
      memchr.c, mempcpy.c, mempcpy.h, minmax.h, pin.c, printf-args.c,
      printf-args.h, printf-parse.c, printf-parse.h, regcomp.c, regex.c,
      regex.h, regex_internal.c, regex_internal.h, regexec.c,
      stat-macros.h, stdbool_.h, stdint_.h, strcase.h, strcasecmp.c,
      strchrnul.c, strchrnul.h, strdup.c, strdup.h, strncasecmp.c,
      strndup.c, strndup.h, strnlen.c, strnlen.h, strnlen1.c,
      strnlen1.h, strtok_r.c, strtok_r.h, sysexit_.h, unlocked-io.h,
      vasnprintf.c, vasnprintf.h, vsnprintf.c, vsnprintf.h, wcwidth.h,
      xsize.h: Remove.
      Sergey Poznyakoff authored
  21. 11 Nov, 2007 1 commit
    • MU_ERR_READ, for consistency.
      
      * comsat/Makefile.am (comsatd_LDADD): Add all mailbox formats.
      * comsat/cfg.c: Use mu_error instead of syslog.
      * comsat/comsat.c (comsat_daemon): Implement test mode.
      (notify_user): Use mailbox quick access mode instead of directly
      fiddling with the UNIX mailbox stream.
      
      * include/mailutils/stream.h (MU_STREAM_QACCESS): New define.
      * libproto/mbox/mbox.c: Implement _quick_get_message method.
      * libproto/mbox/mbox0.h (mbox_scan1): New function.
      * libproto/mbox/mboxscan.c (mbox_scan0): Split into mbox_scan0
      proper and mbox_scan_internal.
      (mbox_scan1): New function.
      Remove unused defines.
      * libsieve/load.c: Do not deallocate loaded modules.
      * mail.local/main.c (set_debug_flags): Fix typo.
      * mailbox/amd.c: Implement get_qid method.
      (amd_append_message) Singal MU_EVT_MESSAGE_APPEND.
      * mailbox/errors (MU_ERR_BADOP): New error code.
      (MU_READ_ERROR): Rename to MU_ERR_READ, for consistency.
      * mailbox/file_stream.c (_prog_destroy,_prog_close): Fix waiting
      for the children to terminate. Do not forcefully kill them.
      
      * mailbox/mailbox.c: Control allowed operations, depending on
      MU_STREAM_QACCESS bit.
      Sergey Poznyakoff authored
  22. 10 Nov, 2007 1 commit
    • * frm/common.c, imap4d/sync.c, libsieve/runtime.c,
      mh/scan.c: Update declaration of observable actions  .
      * imap4d/select.c, imap4d/status.c, mh/anno.c, mh/forw.c,
      mh/repl.c: Use mu_mailbox_sync instead of
      mu_mailbox_save_attributes.
      * include/mailutils/mailbox.h (mu_mailbox_sync): New function.
      (mu_mailbox_save_attributes): Deprecated.
      * include/mailutils/message.h (mu_message_get_qid)
      (mu_message_set_qid): New functions.
      * include/mailutils/observer.h (MU_EVT_MESSAGE_APPEND): New event.
      (mu_observer_set_action_data): New function. Registers
      action-specific data.
      (mu_observable_notify): Get call-specific data as the third
      argument.
      * include/mailutils/types.hin (mu_message_qid_t): New data type.
      * libproto/imap/folder.c, libproto/imap/mbox.c,
      libproto/include/amd.h, libproto/maildir/mbox.c,
      libproto/mailer/sendmail.c, libproto/mailer/smtp.c,
      libproto/mbox/mboxscan.c, libproto/mh/mbox.c,
      libproto/nntp/mbox.c, libproto/pop/mbox.c, mailbox/folder.c,
      mailbox/mailer.c : Update calls to mu_observable_notify.
      * libproto/include/mailbox0.h (struct _mu_mailbox): Rename
      _save_attributes to _sync.
      * mailbox/amd.c: Likewise
      (_quick_get_message): New member.
      (MAILBOX_NOTIFY): Remove.
      * libproto/include/message0.h (struct _mu_message): New member
      _get_qid.
      * libproto/include/observer0.h (struct _mu_observer): New member
      _action_data.
      * libproto/mbox/mbox.c: Implement mbox_message_qid. Update calls
      to mu_observable_notify.
      (mbox_append_message): Report MU_EVT_MESSAGE_APPEND
      * mailbox/observer.c (mu_observer_destroy): Call _destroy with
      _action_data as its third argument.
      (mu_observer_action, mu_observable_notify): Takes third argument
      (call data)
      (mu_observer_set_action, mu_observer_set_destroy): Update signature.
      (mu_observer_set_action_data): New function.
      
      * libproto/mbox/mbox0.h, mail.local/main.c: Minor change.
      
      * mail.local/Makefile.am (mail_local_LDADD): Add MU_LIB_MAILER
      
      * mailbox/file_stream.c (_file_open): Fix handling of
      MU_STREAM_APPEND. Remove assertion.
      
      * mailbox/mailbox.c (mu_mailbox_quick_get_message): New function
      (mu_mailbox_sync): New function
      (mu_mailbox_get_size): Implement brute-force approach in case the
      mailbox does not provide a method.
      
      * mailbox/message.c (mu_message_get_qid, mu_message_set_qid): New
      function.
      
      * maildag/: New directory. A general-purpose mail delivery agent.
      * maildag/deliver.c: New file.
      * maildag/lmtp.c: New file.
      * maildag/maidag.c: New file.
      * maildag/maidag.h: New file.
      * maildag/mailtmp.c: New file.
      * maildag/mailquota.c: New file.
      * maildag/script.c: New file.
      * maildag/util.c: New file.
      * maildag/Makefile.am: New file.
      * maildag/.cvsignore: New file.
      Sergey Poznyakoff authored
  23. 05 Jul, 2007 1 commit
  24. 27 Jun, 2007 1 commit
  25. 23 Aug, 2006 1 commit
  26. 14 Jun, 2006 1 commit
  27. 27 Jan, 2006 1 commit
  28. 25 Jan, 2006 1 commit
  29. 15 Nov, 2005 2 commits
  30. 27 Aug, 2005 1 commit
  31. 26 Aug, 2005 1 commit
  32. 16 Aug, 2005 1 commit
  33. 26 Jul, 2005 2 commits
  34. 23 Jun, 2005 1 commit
  35. 17 May, 2005 1 commit
  36. 15 Mar, 2005 1 commit
  37. 05 Jul, 2004 1 commit