1. 25 Aug, 2009 1 commit
    •    The string MESSAGE should not begin with a capital letter when it
         follows a program name and/or file name, because that isn't the
         beginning of a sentence.  (The sentence conceptually starts at the
         beginning of the line.)  Also, it should not end with a period.
      
      * include/mailutils/diag.h (mu_diag_funcall): New prototype.
      * mailbox/diag.c: New function.
      
      * comsat/action.c, comsat/comsat.c, comsat/oldcfg.c,
      config/mailutils-config.c, configure.ac, dotlock/dotlock.c,
      frm/common.c, frm/from.c, guimb/collect.c, guimb/main.c,
      guimb/util.c, imap4d/auth_gsasl.c, imap4d/auth_gss.c, imap4d/bye.c,
      imap4d/close.c, imap4d/imap4d.c, imap4d/login.c, imap4d/preauth.c,
      imap4d/signal.c, imap4d/starttls.c, imap4d/util.c, lib/mailcap.c,
      lib/tcpwrap.c, libmu_argp/mu_argp.c, libmu_auth/ldap.c,
      libmu_auth/radius.c, libmu_auth/sql.c, libmu_auth/tls.c,
      libmu_cfg/acl.c, libmu_cfg/common.c, libmu_cfg/init.c,
      libmu_cfg/ldap.c, libmu_cfg/sql.c, libmu_sieve/actions.c,
      libmu_sieve/comparator.c, libmu_sieve/extensions/moderator.c,
      libmu_sieve/prog.c, libmu_sieve/sieve.l, libproto/imap/folder.c,
      libproto/mbox/mbox.c, maidag/deliver.c, maidag/lmtp.c,
      maidag/maidag.c, maidag/mailquota.c, maidag/mailtmp.c,
      maidag/script.c, mail/alias.c, mail/cd.c, mailbox/cfg_lexer.l,
      mailbox/cfg_parser.y, mailbox/file_stream.c, mailbox/gocs.c,
      mailbox/msrv.c, mailbox/mutil.c, mailbox/registrar.c,
      messages/messages.c, mh/folder.c, mh/forw.c, mh/inc.c, mh/mark.c,
      mh/mh_ctx.c, mh/mh_fmtgram.y, mh/mh_format.c, mh/mh_init.c,
      mh/mh_list.c, mh/mh_msgset.c, mh/mh_whatnow.c, mh/mh_whom.c,
      mh/mhl.c, mh/mhn.c, mh/pick.c, mh/refile.c, mh/repl.c, mh/rmf.c,
      mh/scan.c, mh/send.c, mimeview/mimetypes.l, mimeview/mimeview.c,
      movemail/movemail.c, pop3d/apop.c, pop3d/bulletin.c, pop3d/extra.c,
      pop3d/lock.c, pop3d/logindelay.c, pop3d/pop3d.c, pop3d/popauth.c,
      pop3d/quit.c, pop3d/signal.c, pop3d/user.c, readmsg/readmsg.c,
      sieve/sieve.c: Fix error messages.
      Sergey Poznyakoff authored
  2. 21 Aug, 2009 1 commit
    • * python/libmu_py/mailbox.c (api_mailbox_append_message): Bugfix.
      * python/libmu_py/header.c (api_header_get_value_n): New function.
      * python/mailutils/header.py (Header.get_value_n): New method.
      * python/mailutils/mailbox.py (Mailbox.__str__): New method.
      * python/mailutils/message.py (Message.__str__): Likewise.
      Wojciech Polak authored
  3. 20 Aug, 2009 3 commits
    • * .gitignore: Add pathdefs.h
      * examples/Makefile.am (muauth_CPPFLAGS)
      (muemail_CPPFLAGS): New variables.
      * examples/argcv.c (main): Remove unused local.
      * include/mailutils/gsasl.h [USE_GSASL]: Change to WITH_GSASL.
      * include/mailutils/libcfg.h (mu_acl_cfg_init): New prototype.
      * include/mailutils/mu_auth.h (mu_authenticate): Password is const.
      * include/mailutils/python.h: Fix indentation.
      (mu_py_script_data): module_name is const char *.
      * libmu_auth/radius.c: Include radius/debug.h
      * libproto/mailer/smtp.c: Include io.h and secret.h
      * mail/mail.c: Fix indentation.
      * mail/util.c (util_rfc2047_decode): Fix local variable declaration.
      * mailbox/mu_auth.c (mu_authenticate): Password is const.
      * mh/mh.h (mh_alias_get, mh_alias_get_address)
      (mh_alias_get_alias): Name is const.
      * mh/mh_alias.y: Likewise.
      * mh/mh_list.c (print_header_value): Fix improper use of mu_toupper.
      * mh/mh_whatnow.c (invoke): Add typecasts.
      * python/libmu_py/nls.c (api_nls_set_locale): Remove unused automatic.
      * python/libmu_py/sieve.c (_sieve_error_printer): Provide missing
      return value.
      (_sieve_debug_printer): Likewise.
      Sergey Poznyakoff authored
    • * movemail/movemail.c: Implement new configuration keyword
      "mailbox-ownership" (and the --owner command line option).
      * doc/texinfo/programs.texi: Document new movemail features.
      (Ownership): New subsection stub.
      * NEWS: Update
      Sergey Poznyakoff authored
    • * configure.ac: Use PATH_MAILDIR (without leading underscore).
      Sergey Poznyakoff authored
  4. 14 Aug, 2009 2 commits
    • * mail/file.c: Use "headers" instead of non-standard "z."
      * mail/mail.c: Avoid % interpretation in
      the argument to util_cache_command.
      * mail/util.c (_run_and_free): Avoid % interpretation in
      the argument to util_do_command.
      Sergey Poznyakoff authored
    • * mail/from.c: Rewrite using format string.
      * mail/mail.c (default_setup): Set default value for `headline'.
      (main): Fix call to util_do_command.
      * mail/mail.h [HAVE_STDARG_H]: Remove conditions.
      (mail_compile_headline): New proto.
      * mail/mailvar.c (mailvar_tab): New variable "headline".
      * mail/util.c: Minor fixes.
      * NEWS, doc/programs.texi: Update.
      Sergey Poznyakoff authored
  5. 13 Aug, 2009 4 commits
    • Minor fixes. · f2eb56bb
      * comsat/comsat.h: Include confpaths.h, not paths.h.
      * lib/utmp.c: Likewise.
      * libmu_scm/mu_scm.h: Likewise.
      * libproto/mailer/sendmail.c: Likewise.
      * mail/mail.h: Likewise.
      * mailbox/mbx_default.c: Likewise.
      * mailbox/version.c: Likewise.
      * lib/daemon.c: Likewise.
      
      * include/mailutils/mailer.h (struct timeval): forward decl.
      Sergey Poznyakoff authored
    • * pop3d/pop3d.c (pop3d_alloc_die): New function.
      (main): Set mu_alloc_die_hook.
      (pop3d_mainloop): Use mu_alloc.
      * pop3d/pop3d.h: Include mailutils/alloc.h
      Sergey Poznyakoff authored
    • * Makefile.am (MU_COND_LIBMU_CPP): New cond.
      (SUBDIRS): Use LIBMU_CPP_DIR
      * configure.ac: Rename --disable-c++ to --disable-cxx: autoconf
      cannot handle the former.
      (MU_COND_LIBMU_CPP): New cond.
      (AC_CONFIG_FILES): Add include/mailutils/cpp/Makefile
      * include/mailutils/Makefile.am (nobase_pkginclude_HEADERS): Remove
      (MU_COND_LIBMU_CPP): New cond.
      (SUBDIRS): Add CPP_DIR
      * include/mailutils/cpp/Makefile.am: Remove substitution vars.
      (cppincludedir, cppinclude_HEADERS): New variables.
      * include/mailutils/sys/Makefile.am (sysincludedir)
      (sysinclude_HEADERS): New variables.
      Sergey Poznyakoff authored
    • * configure.ac: Check for wcwidth and wchar.h.
      * frm/common.c (get_charset): Aways allocate output_charset.
      Provide a substitution for fribidi_wcwidth if it is not
      available.
      (puts_bidi): Use mu_fribidi_wcwidth.
      Sergey Poznyakoff authored
  6. 12 Aug, 2009 3 commits
    • * am/enable.m4 (MU_ENABLE_SUPPORT): Change semantics of the
      last argument.
      (MU_ENABLE_BUILD): 4th argument gives additional conditions for
      AM_CONDITIONAL.
      * configure.ac: Enable building c++ interface when possible.
      Fix checks for guimb and mh utilities.
      * libmu_cpp/Makefile.am: Remove unnecessary substitution
      variables.
      Sergey Poznyakoff authored
    • Wojciech Polak authored
    • * Makefile.am: Conditionally add directories to SUBDIRS.
      * am/enable.m4 (MU_ENABLE_BUILD): New macro.
      * configure.ac: Require automake 1.11
      Add MU_ENABLE_BUILDs for each utility.
      Remove unused substitution variables.
      * guimb/Makefile.am: Remove substitution variables.
      * guimb/scm/Makefile.am: Likewise.
      * libmu_scm/Makefile.am: Likewise.
      * mh/Makefile.am: Likewise.
      * python/libmu_py/Makefile.am: Likewise.
      * python/mailutils/Makefile.am: Likewise.
      * README: Document --disable-build-* options.
      Sergey Poznyakoff authored
  7. 11 Aug, 2009 2 commits
    • Minor fix. · e4128c9e
      * mailbox/mu_auth.c (mu_auth_runlist): Do not overwrite last
      meaningful error code by ENOSYS.
      Sergey Poznyakoff authored
    • * pop3d/pop3d.h: Remove unused includes.
      (ABORT): New state.
      (pop3d_command_handler_t, struct pop3d_command): New types.
      (pop3d_find_command): New function.
      (pop3d_stat,pop3d_top,pop3d_uidl,pop3d_user,pop3d_apop)
      (pop3d_auth,pop3d_capa,pop3d_dele,pop3d_list,pop3d_noop)
      (pop3d_quit,pop3d_retr,pop3d_rset): Remove const from
      the arguments. Functions are free to modify it.
      (pop3d_parse_command): New function.
      
      * pop3d/cmd.c: New file.
      * pop3d/Makefile.am: Link in cmd.o
      * pop3d/apop.c: Use pop3d_parse_command to parse commands
      * pop3d/auth.c: Likewise.
      * pop3d/extra.c (pop3d_args, pop3d_cmd): Remove.
      (pop3d_parse_command): New function.
      (pop3d_abquit): use pop3d_error_string to convert error numbers to
      messages.
      * pop3d/pop3d.c (cb_bulletin_db): Protect by #ifdef USE_DBM
      (pop3d_mainloop): Change loop condition.
      Use pop3d_parse_command to parse commands,
      pop3d_find_command to lookup handlers in the command table
      and pop3d_error_string to convert error numbers to
      messages.
      (main): Call enable_stls if necessary.
      
      * pop3d/capa.c, pop3d/dele.c, pop3d/list.c,
      pop3d/noop.c, pop3d/quit.c, pop3d/retr.c,
      pop3d/rset.c, pop3d/stat.c, pop3d/stls.c,
      pop3d/top.c, pop3d/uidl.c, pop3d/user.c: Remove const
      qualifier from the command handler argument.
      Sergey Poznyakoff authored
  8. 10 Aug, 2009 1 commit
    • Minor fixes. · 6e40542e
      * examples/argcv.c (main): Use fgest instead of getline.
      * mail/decode.c (mime_descend): Use util_get_hdr_value
      which does not cut off the additional arguments after
      the ';'.
      Sergey Poznyakoff authored
  9. 09 Aug, 2009 2 commits
  10. 08 Aug, 2009 2 commits
  11. 07 Aug, 2009 3 commits
  12. 05 Aug, 2009 1 commit
  13. 04 Aug, 2009 3 commits
  14. 01 Aug, 2009 1 commit
  15. 31 Jul, 2009 1 commit
  16. 29 Jul, 2009 1 commit
    • * include/mailutils/cpp/sieve.h: New file.
      * libmu_cpp/sieve.cc: New file.
      * python/libmu_py/sieve.c: New file.
      * python/mailutils/sieve.py: New file.
      * include/mailutils/cstr.h: Do not use C++ keywords.
      * include/mailutils/tls.h: Likewise.
      Wojciech Polak authored
  17. 14 Jul, 2009 1 commit
  18. 13 Jul, 2009 3 commits
    • * python/libmu_py/attribute.c: Add userflag functions.
      * python/mailutils/attribute.py: Add more is/set/unset methods.
      * python/mailutils/mailbox.py (open): Bugfix.
      Wojciech Polak authored
    • * libproto/pop/mbox.c (pop_get_message): Make sure the
      mailbox is scanned.
      (pop_top): Handle -ERR case.
      Sergey Poznyakoff authored
    • * NEWS, doc/texinfo/programs.texi: Document struct command.
      * mail/struct.c: New file.
      * mail/Makefile.am (mail_SOURCES): Add struct.c
      * mail/decode.c (fprint_msgset, mime_descend): New functions.
      Rewrite the rest using mime_descend.
      * mail/mail.h (mail_struct): New function.
      (MDHINT_SELECTED_HEADERS): New define.
      (struct mime_descend_closure, mime_descend_fn): New types.
      (mime_descend): New proto.
      (util_get_content_type): Get two arguments.
      * mail/table.c (mail_command_table): Add st[ruct].
      * mail/util.c (util_get_content_type): Get two arguments.
      All callers updated.
      (util_get_hdr_value): use mu_header_aget_value_unfold and
      mu_rtrim_class.
      Sergey Poznyakoff authored
  19. 12 Jul, 2009 4 commits
    • * mail/mail.h (MAIL_ATTRIBUTE_PRESERVED)
      (MAIL_ATTRIBUTE_TOUCHED): New define.
      * mail/from.c (mail_from0): Mark with 'R' only those messages that
      have been read in this mail session.
      * mail/hold.c (hold0): Set MAIL_ATTRIBUTE_PRESERVED
      * mail/mbox.c (mbox0): Don't mark message as read.
      * mail/quit.c (mail_mbox_commit): Force keepsave on
      not system mailboxes.
      * mail/touch.c: Use MAIL_ATTRIBUTE_TOUCHED
      * mail/undelete.c: Clear MAIL_ATTRIBUTE_PRESERVED and
      MAIL_ATTRIBUTE_MBOXED bits.
      * mail/testsuite/mail/write.exp: Account for the above changes.
      Paul Vojta authored
    • * NEWS, doc/texinfo/programs.texi: Update.
      * mail/mail.c (parse_opt): Remove the fixme.
      * mail/mailvar.c (mailvar_tab): Add `byname'.
      * mail/reply.c (reply0): Use `byname' when deciding where to
      save the message.
      * mail/util.c: Fix comment.
      Sergey Poznyakoff authored
    • * NEWS: Update.
      * mail/mail.h (MOPTF_UNSET): New constant.
      * mail/mailvar.c (MAILVAR_TYPEMASK): New define.
      (struct mailvar_symbol): Remove `type'. Add `handler'.
      The latter supplies special handling for certain variables.
      (mailvar_tab): Update accordingly.
      Implement "debug" variable.
      (mailvar_set): Enforce correct variable type in variable-strict mode.
      Handle MOPTF_UNSET flag.
      Remove kludgy special handling for some attributes, use sym->handler
      instead.
      (set_decode_fallback, set_replyregex)
      (set_screen, set_mailbox_debug_level, set_debug): New functions.
      (describe_symbol): Handle alternative symbol types.
      * mail/set.c: Use MOPTF_UNSET when unsetting the variable.
      * mail/source.c: Set correct locus. This allows to display
      locations along with error messages.
      Sergey Poznyakoff authored
    • * mail/mail.c: Redo -f option handling to fully comply to POSIX
      Set default diagnostics printer for interactive mode.
      * NEWS, doc/texinfo/programs.texi: Document the use of -f option.
      Sergey Poznyakoff authored
  20. 11 Jul, 2009 1 commit
    • * NEWS: Update.
      * doc/texinfo/programs.texi: Document new variables and commands.
      * mail/envelope.c: New file.
      * mail/mailvar.c: New file.
      * mail/Makefile.am (mail_SOURCES): Add envelope.c and mailvar.c.
      
      * mail/mail.h (EF_HIDDEN): New constant
      (mail_env_data_t, mail_env_entry, mail_env_entry_is_set)
      (mail_env_entry, util_getenv, util_printenv, util_setenv)
      (var_iterator_t, var_iterate_next, var_iterate_first)
      (var_iterate_end, var_compl): Removed.
      
      (union mailvar_value, struct mailvar_variable
      (mail_variable, mail_envelope, print_envelope)
      (mailvar_find_variable, mailvar_get, mailvar_print)
      (mailvar_variable_format, mailvar_set, mailvar_set_compl): Add prototypes.
      (MOPTF_OVERWRITE, MOPTF_QUIET)
      
      * mail/table.c: List new commands: envelope, setq, variable.
      Implement completion for `set'.
      * mail/testsuite/mail/if.exp: Use setq to set a read-only variable.
      
      mail/alias.c, mail/decode.c, mail/delete.c, mail/escape.c
      mail/file.c, mail/folders.c, mail/from.c, mail/if.c,
      mail/mail.c, mail/mailline.c, mail/msgset.y, mail/pipe.c,
      mail/print.c, mail/quit.c, mail/reply.c, mail/send.c,
      mail/set.c, mail/shell.c, mail/top.c, mail/unset.c,
      mail/util.c: Use mailvar functions.
      Sergey Poznyakoff authored