summaryrefslogtreecommitdiff
path: root/guimb
AgeCommit message (Collapse)AuthorFiles
2010-12-31Remove guimb.Sergey Poznyakoff16
It was inoperational since 2009-03-27 and nobody complained, so it seems to not be reclaimed at all. FWIW, it will be easy to recreate it entirely in Scheme, should the need be. * guimb/.gitignore: Remove. * guimb/Makefile.am: Remove. * guimb/collect.c: Remove. * guimb/guimb.h: Remove. * guimb/main.c: Remove. * guimb/util.c: Remove. * Makefile.am (GUIMB_DIR): Remove. [MU_COND_LIBMU_SCM] (SCHEME_DIR): New variable. (SUBDIRS): Add SCHEME_DIR instead of GUIMB_DIR. * configure.ac (MU_GUILE_SIEVE_MOD_DATA): Remove substitution. (AC_CONFIG_FILES): Remove guimb and guimb/scm, add scheme * guimb/scm/.gitignore: move to scheme/.gitignore * guimb/scm/Makefile.am: move to scheme/Makefile.am * guimb/scm/README: move to scheme/README * guimb/scm/mimeheader.scm: move to scheme/mimeheader.scm * guimb/scm/numaddr.scm: move to scheme/numaddr.scm * guimb/scm/redirect.scm: move to scheme/redirect.scm * guimb/scm/reject.scm: move to scheme/reject.scm * guimb/scm/sieve-core.scm: move to scheme/sieve-core.scm * guimb/scm/sieve.scm.in: move to scheme/sieve2scm.scmi * guimb/scm/vacation.scm: move to scheme/vacation.scm
2010-11-25Rewrite temporary file handling.Sergey Poznyakoff1
* include/mailutils/util.h (mu_make_file_name_suf): New proto. (mu_make_file_name): Replace with a macro. (MU_TEMPFILE_TMPDIR,MU_TEMPFILE_SUFFIX) (MU_TEMPFILE_MKDIR): New flags. (mu_tempfile_hints): New struct. (mu_tempfile): Change signature. * libmailutils/base/tempfile.c (mu_create_temp_file): New function. (mu_tempfile): Rewrite from scratch. Change signature. All callers changed. * libmailutils/string/mkfilename.c (mu_make_file_name): Remove. (mu_make_file_name_suf): New function. * libmailutils/stream/streamcpy.c (mu_stream_copy): Don't return EIO on EOF. * libmailutils/stream/file_stream.c (mu_fd_stream_create): If MU_STREAM_SEEK is set, position fd to 0. * guimb/collect.c: Update calls to mu_tempfile. * lib/mailcap.c: Likewise. * libmailutils/base/amd.c (_amd_tempfile): Rewrite using mu_tempfile. * libmailutils/tests/tempfile.c: New file. * libmailutils/tests/Makefile.am (noinst_PROGRAMS): Add tempfile.
2010-11-02Remove the --license option.Sergey Poznyakoff1
It is not needed because the --version option shows a terse info about the license, as well as a link to its full text.
2010-10-27Use mu_asprintf and mu_vasnprintf instead of asprintf and vasprintf.Sergey Poznyakoff1
*gnulib.modules (snprintf, vasprintf): Remove. *sieve/tests/reject.at: Use AT_PACKAGE_VERSION instead of the hardcoded version number. *lib/mu_asprintf.h: Remove. * imap4d/auth_gss.c: Replace asprintf with mu_asprintf and vasprintf by mu_vasnprintf. * guimb/guimb.h: Likewise. * imap4d/imap4d.h: Likewise. * imap4d/unsubscribe.c: Likewise. * lib/Makefile.am * lib/mailcap.c: Likewise. * libmu_argp/muinit.c: Likewise. * maidag/deliver.c: Likewise. * maidag/maidag.h: Likewise. * mail/escape.c: Likewise. * mail/mail.c: Likewise. * mail/mail.h: Likewise. * mail/util.c: Likewise. * mail/write.c: Likewise. * mh/burst.c: Likewise. * mh/forw.c: Likewise. * mh/mh.h: Likewise. * mh/mh_alias.l: Likewise. * mh/mh_format.c: Likewise. * mh/mh_getopt.c: Likewise. * mh/mh_init.c: Likewise. * mh/mh_msgset.c: Likewise. * mh/mh_sequence.c: Likewise. * mh/mh_whatnow.c: Likewise. * mh/mhn.c: Likewise. * mh/send.c: Likewise. * mimeview/mimetypes.l: Likewise. * mimeview/mimetypes.y: Likewise. * mimeview/mimeview.c: Likewise. * movemail/movemail.c: Likewise. * mu/ldflags.c: Likewise. * pop3d/expire.c: Likewise. * pop3d/pop3d.h: Likewise. * sieve/sieve.c: Likewise.
2010-10-10Split the mess in mutil.c into logically separated units.Sergey Poznyakoff1
* libmailutils/base/mutil.c (mu_hex2ul, mu_hexstr2ul): Move to string/hexstr.c. (mu_get_homedir, mu_get_full_path) (mu_expand_path_pattern): Move to base/filename.c. (mu_getcwd): Move to base/getcwd.c. (mu_tilde_expansion): Move to base/tilde.c (mu_cpystr): Move to string/cpystr.c. (mu_get_host_name): Move to base/hostname.c. (mu_set_user_email,mu_set_user_email_domain) (mu_get_user_email_domain,mu_aget_user_email_domain) (mu_get_user_email,mu_normalize_path): Move to base/usremail.c. (mu_tempfile,mu_tempname): Move to base/tempfile.c. (mu_spawnvp): Move to base/spawnvp.c. (mu_qualify_link,mu_unroll_symlink): Move to base/symlink.c. (mu_rfc2822_references,mu_rfc2822_msg_id) (mu_rfc2822_in_reply_to): Move to base/msgid.c. (mu_strcasestr): Move to string/cstrcasestr.c. (mu_string_unfold): Move to string/unfold.c. (mu_true_answer_p): Move to string/trueans.c. (mu_scheme_autodetect_p): Move to base/schemeauto.c. (mu_fd_wait): Move to base/fdwait.c. (mu_set_default_fallback,mu_decode_filter): Move to filter/decode.c. (__argp_base_name): Move to lib/argp_base.c. * libmailutils/base/fdwait.c: New file. * libmailutils/base/filename.c: New file. * libmailutils/base/getcwd.c: New file. * libmailutils/base/hostname.c: New file. * libmailutils/base/msgid.c: New file. * libmailutils/base/schemeauto.c: New file. * libmailutils/base/spawnvp.c: New file. * libmailutils/base/symlink.c: New file. * libmailutils/base/tempfile.c: New file. * libmailutils/base/tilde.c: New file. * libmailutils/base/usremail.c: New file. * libmailutils/base/Makefile.am: Add new files. * libmailutils/filter/decode.c: New file. * libmailutils/filter/Makefile.am: Add new files. * libmailutils/string/cpystr.c: New file. * libmailutils/string/cstrcasestr.c: New file. * libmailutils/string/hexstr.c: New file. * libmailutils/string/trueans.c: New file. * libmailutils/string/unfold.c: New file. * libmailutils/string/Makefile.am: Add new files. * lib/argp_base.c: New file. * lib/Makefile.am: Add new files. * include/mailutils/io.h: Include stdarg.h * include/mailutils/mutil.h: Rename to util.h. Reorder prototypes and declarations in logical groups. All uses changed. * include/mailutils/cstr.h (mu_strcasestr): New proto, moved from include/mailutils/mutil.h.
2010-10-09Fix copyleft notices to follow the GNU standards.Sergey Poznyakoff13
2010-09-25Disable installchecks for sieve.scm.Sergey Poznyakoff1
* guimb/scm/Makefile.am: Add sieve.scm to AM_INSTALLCHECK_STD_OPTIONS_EXEMPT.
2010-09-08For alpha version, include git tag info in the version output.Sergey Poznyakoff1
* include/mailutils/libargp.h (mu_program_version_hook): New proto. * libmu_argp/Makefile.am (libmu_argp_a_SOURCES): Remove mu_argp.h. * libmu_argp/mu_argp.h: Remove. * libmu_argp/muinit.c [MU_ALPHA_RELEASE]: Include git-describe.h (mu_program_version_hook): New function. (mu_argp_init): Set mu_program_version_hook, unless vers is given. * comsat/comsat.c (main): Call mu_argp_init with NULL arguments. * config/mailutils-config.c: Likewise. * dotlock/dotlock.c: Likewise. * examples/muauth.c: Likewise. * frm/frm.c: Likewise. * frm/from.c: Likewise. * guimb/main.c: Likewise. * imap4d/imap4d.c: Likewise. * maidag/maidag.c: Likewise. * mail/mail.c: Likewise. * messages/messages.c: Likewise. * mimeview/mimeview.c: Likewise. * movemail/movemail.c: Likewise. * pop3d/pop3d.c: Likewise. * pop3d/popauth.c: Likewise. * readmsg/readmsg.c: Likewise. * sieve/sieve.c: Likewise.
2010-04-12Migrate Guile support to GINT.Sergey Poznyakoff1
* 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-01Implement mailbox iterators in Scheme.Sergey Poznyakoff1
* 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-01-05Update copyright years.Sergey Poznyakoff13
Happy GNU year!
2009-08-25Fix help messages.Sergey Poznyakoff1
Option descriptions in `--help' output do not constitute conceptual sentences. Therefore, they should not begin with a capital letter, nor end with a final point. Affected files: comsat/comsat.c, config/mailutils-config.c, dotlock/dotlock.c, frm/frm.c, frm/from.c, guimb/main.c, imap4d/imap4d.c, libmu_argp/auth.c, libmu_argp/common.c, libmu_argp/gsasl.c, libmu_argp/pam.c, libmu_argp/radius.c, libmu_argp/sieve.c, libmu_argp/sql.c, libmu_argp/tls.c, libmu_argp/virtdomain.c, libmu_auth/sql.c, libmu_cfg/sql.c, maidag/maidag.c, maidag/mailquota.c, maidag/mailtmp.c, mail/mail.c, messages/messages.c, mh/ali.c, mh/anno.c, mh/burst.c, mh/comp.c, mh/fmtcheck.c, mh/folder.c, mh/forw.c, mh/inc.c, mh/install-mh.c, mh/mark.c, mh/mh_init.c, mh/mhl.c, mh/mhn.c, mh/mhparam.c, mh/mhpath.c, mh/pick.c, mh/refile.c, mh/repl.c, mh/rmf.c, mh/rmm.c, mh/scan.c, mh/send.c, mh/sortm.c, mh/whatnow.c, mh/whom.c, mimeview/mimeview.c, movemail/movemail.c, pop3d/pop3d.c, pop3d/popauth.c, readmsg/readmsg.c, sieve/sieve.c
2009-08-25Change error messages to comply with the GNU standards.Sergey Poznyakoff3
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.
2009-08-12Rewrite conditional compilation support.Sergey Poznyakoff2
* 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.
2009-07-05Fix namespaces and inclusion directories.Sergey Poznyakoff1
* README-hacking: Update. * configure.ac (MU_COMMON_INCLUDES): Remove. (MU_LIB_COMMON_INCLUDES,MU_APP_COMMON_INCLUDES): New variables. Link lib/gettext.h and lib.intprops.h to include. * gnulib.modules: Remove fnmatch. * comsat/Makefile.am, config/Makefile.am, dotlock/Makefile.am, frm/Makefile.am, guimb/Makefile.am, imap4d/Makefile.am, maidag/Makefile.am, mail/Makefile.am, movemail/Makefile.am, pop3d/Makefile.am, python/libmu_py/Makefile.am, readmsg/Makefile.am sieve/Makefile.am (INCLUDES): Use MU_APP_COMMON_INCLUDES * lib/Makefile.am, examples/Makefile.am, libmu_argp/Makefile.am, libmu_auth/Makefile.am, libmu_cpp/Makefile.am, libmu_sieve/Makefile.am, libproto/imap/Makefile.am, libproto/mailer/Makefile.am, libproto/mh/Makefile.am, libproto/nntp/Makefile.am, libproto/pop/Makefile.am, mailbox/Makefile.am, mapi/Makefile.am, messages/Makefile.am, mh/Makefile.am, sql/Makefile.am (INCLUDES): Use MU_LIB_COMMON_INCLUDES
2009-05-26Enable Makefile silent rules.Sergey Poznyakoff1
* Makefile.am (AUTOMAKE_OPTIONS): Remove. * bootstrap: Import from mailfromd. * configure.ac: Require autoconf 2.63 Enable silent-rules mode by default. * guimb/scm/Makefile.am: Add silent-rules markers. * include/mailutils/Makefile.am: Likewise. * libmu_scm/Makefile.am: Likewise. * testsuite/Makefile.am: Likewise.
2009-05-26Minor changes.Sergey Poznyakoff1
* guimb/main.c (main_sym): Remove const qualifier. * imap4d/imap4d.h (util_getfullpath): 1st arg is const. * imap4d/util.c: Likewise. * include/mailutils/guile.h (mu_guile_load): 1st arg is const. * include/mailutils/sql.h (mu_sql_get_field): 3rd arg is const. * libmu_auth/radius.c: Cleanup trailing whitespace. * libmu_scm/mu_guile.c (mu_guile_load): 1st arg is const. (struct load_closure): Filename is const. All uses updated. * mailbox/monitor.c (RWLOCK_TRYRDLOCK, RWLOCK_TRYWRLOCK): Remove [!WITH_PTHREAD] (RWLOCK_DESTROY): Empty define. * mailbox/mutil.c (mu_aget_user_email_domain): Minor fix. * sql/sql.c (mu_sql_get_field): 3rd arg is const.
2009-03-27Finish removing mail.local and mail.remoteSergey Poznyakoff1
2009-03-24Rewrite scripting support in maidag.Sergey Poznyakoff5
* include/mailutils/guile.h (mu_guile_init, mu_guile_load) (mu_guile_eval, mu_guile_mailbox_apply, mu_guile_message_apply) (mu_guile_safe_exec, mu_guile_safe_proc_call): New protos. * libmu_scm/Makefile.am: Add mu_guile.c * libmu_scm/mu_guile.c: New file. * libmu_scm/mu_mailbox.c (struct mu_mailbox): Kludge: new member noclose. (mu_scm_mailbox_free): Do not close/destroy mailbox if it is marked noclose. (mu_scm_mailbox_create0): Kludge: new function. * libmu_scm/mu_message.c (mu_scm_message_print): Bugfix. * maidag/Makefile.am: Add guile.c and sieve.c. * maidag/deliver.c (maidag_stdio_delivery) [WITH_GUILE]: Remove block. (deliver_url): Call script_apply, instead of sieve_test. * maidag/maidag.c: Rewrite scripting support in a modular way. Remove options: --sieve, --source (and the corresponding config statements). Add options: --language, --script. Add configure statement: filter (block). * maidag/maidag.h (progfile_pattern, sieve_pattern): Remove. (script_list, sieve_debug_flags, message_id_header, sieve_enable_log): New prototypes. [WITH_GUILE]: Remove. (maidag_script_fun, struct maidag_script): New data type. (script_handler): New extern. (script_lang_handler, script_suffix_handler) (script_register, script_apply): New protos. (scheme_check_msg, sieve_check_msg): New protos. * maidag/script.c: Rewrite. Provide general-purpose serialized script support. * guimb/guimb.h (struct guimb_data): Remove. * guimb/main.c: Rewrite in a cleaner way, using functions from mu_guile.c. * guimb/collect.c (guimb_catch_body, guimb_catch_handler) (guimb_exit): Remove. * guimb/scm/sieve-core.scm (sieve-current-message, sieve-mailbox): Public. (sieve-run-current-message): New public function. (sieve-run): Call sieve-run-current-message for each message. * guimb/scm/sieve.scm.in (sieve-save-program): Change code generation to suit both per-mailbox and per-message invocation. This kicks mail.local out of whack. * maidag/guile.c: New file. * maidag/sieve.c: New file.
2009-03-24Minor fixesSergey Poznyakoff1
* configure.ac (GUIMB): Rename to MU_SCM_BIN_PROGRAMS_BUILD. * guimb/Makefile.am: Likewise.
2008-12-08Update .gitignoresSergey Poznyakoff1
2008-12-08Switched to Git repository.Sergey Poznyakoff2
* m4: Rename to am. * README-alpha, README-hacking: Reflect the switch. * */.cvsignore: Rename to .gitignore, update. * gnulib.modules: Add gitlog-to-changelog. * ChangeLog: Remove.
2008-01-13Fix NLS issues.Sergey Poznyakoff3
* configure.ac: Define DEFAULT_TEXT_DOMAIN * comsat/comsat.c, dotlock/dotlock.c, frm/frm.c, frm/from.c, guimb/main.c, imap4d/imap4d.c, maidag/maidag.c, mail/mail.c, mail.local/main.c, mail.remote/mail.remote.c, messages/messages.c, mh/ali.c, mh/anno.c, mh/burst.c, mh/comp.c, mh/fmtcheck.c, mh/folder.c, mh/forw.c, mh/inc.c, mh/install-mh.c, mh/mark.c, mh/mhl.c, mh/mhn.c, mh/mhparam.c, mh/mhpath.c, mh/pick.c, mh/refile.c, mh/repl.c, mh/rmf.c, mh/rmm.c, mh/scan.c, mh/send.c, mh/sortm.c, mh/whatnow.c, mh/whom.c, mimeview/mimeview.c, movemail/movemail.c, pop3d/pop3d.c, pop3d/popauth.c, readmsg/readmsg.c, sieve/sieve.c, Use MU_APP_INIT_NLS instead of mu_init_nls. * mailbox/nls.c (mu_init_nls): Do not call textdomain.
2007-12-19* NEWS: Update.Sergey Poznyakoff1
* 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.
2007-11-28Introduce "global debug settings". Mailutils objects are supposedSergey Poznyakoff1
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.
2007-11-19* configure.ac (VI_CURRENT): Raise to 3;Sergey Poznyakoff1
(MU_APP_LIBRARIES): Rename libargp.a to libmuargp.a * NEWS: Update. * comsat/comsat.c, dotlock/dotlock.c, examples/muauth.c, examples/muemail.c, frm/frm.h, guimb/main.c, imap4d/imap4d.c, libargp/auth.c, libargp/cmdline.c, libargp/common.c, libargp/gsasl.c, libargp/mu_argp.c, libargp/pam.c, libargp/radius.c, libargp/sieve.c, libargp/sql.c, libargp/tls.c, libargp/virtdomain.c, maidag/maidag.h, mail/mail.c, mail.local/main.c, mail.remote/mail.remote.c, messages/messages.c, mimeview/mimetypes.y, mimeview/mimeview.c, movemail/movemail.c, pop3d/extra.c, pop3d/pop3d.c, pop3d/popauth.c, readmsg/readmsg.c, sieve/sieve.c: Include mailutils/libargp.h. * config/mailutils-config.c: New arguments to --link: cfg and argp. * include/mailutils/Makefile.am (pkginclude_HEADERS): Remove compat.h, add libargp.h, libcfg.h and version.h * include/mailutils/compat.h: Remove * include/mailutils/libargp.h: New file (from libargp/cmdline.h) * include/mailutils/libcfg.h: New file (from (libcfg/) * include/mailutils/version.h: New file * include/mailutils/folder.h (struct mu_0_6_folder_list): Remove (mu_0_6_folder_list, mu_0_6_folder_lsub) (mu_0_6_folder_list_destroy): Remove. * include/mailutils/mailutils.h: Include version.h Remove 0.6 compatibility layer. * mailbox/folder.c (list_to_0_6_folder_list, mu_0_6_folder_list) (mu_0_6_folder_lsub, mu_0_6_folder_list_destroy): Remove. * lib/Makefile.am (libmuaux_la_SOURCES): Remove argpinit.c, muinit.h and muinit.c * libargp/Makefile.am (noinst_LIBRARIES, noinst_HEADERS): Remove (lib_LIBRARIES): Add libmuargp.a * libargp/compat.c: New file. * libargp/muinit.c: New file. * libargp/cmdline.h: Remove. * libcfg/Makefile.am (noinst_HEADERS): Remove. * libcfg/auth.c, libcfg/common.c, libcfg/gsasl.c, libcfg/init.c, libcfg/pam.c, libcfg/radius.c, libcfg/sieve.c, libcfg/sql.c, libcfg/tls.c, libcfg/virtdomain.c: Include mailutils/libcfg.h * mailbox/Makefile.am (libmailutils_la_SOURCES): Add version.c * mailbox/cfg_lexer.c (_mu_parse_config): Do nothing if root_container is NULL. * mh/ali.c, mh/anno.c, mh/burst.c, mh/comp.c, mh/fmtcheck.c, mh/folder.c, mh/forw.c, mh/inc.c, mh/install-mh.c, mh/mark.c, mh/mhl.c, mh/mhn.c, mh/mhparam.c, mh/mhpath.c, mh/pick.c, mh/refile.c, mh/repl.c, mh/rmf.c, mh/rmm.c, mh/scan.c, mh/send.c, mh/sortm.c, mh/whatnow.c, mh/whom.c: Use mh_argp_init instead of mu_argp_init. * mh/mh_argp.c, mh/mh_getopt.h (mh_argp_init): New function
2007-11-18Make libmailutils independent from gnulib. Remove generated filesSergey Poznyakoff1
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.
2007-11-17Move rc file and argp parsing into separate abstract layers.Sergey Poznyakoff3
* include/mailutils/gocs.h, include/mailutils/pam.h, include/mailutils/radius.h, include/mailutils/syslog.h: New files * lib/argpinit.c, lib/muinit.c, lib/muinit.h: New files. * libsieve/conf.c: New file. * libcfg: New directory * libcfg/libcfg.h, libcfg/auth.c, libcfg/common.c, libcfg/init.c, libcfg/gsasl.c, libcfg/pam.c, libcfg/radius.c, libcfg/sieve.c, libcfg/sql.c, libcfg/tls.c, libcfg/virtdomain.c, libcfg/.cvsignore: New files. * libargp: New directory * libargp/auth.c, libargp/cmdline.h, libargp/common.c, libargp/gsasl.c, libargp/mu_argp.h, libargp/mu_argp.c, libargp/pam.c, libargp/radius.c, libargp/sieve.c, libargp/sql.c, libargp/tls.c, libargp/virtdomain.c, libargp/.cvsignore: New files. * mailbox/.cvsignore: Add cfg_parser.c and cfg_parser.h. * Makefile.am (SUBDIRS): Add libargp and libcfg. * configure.ac (MU_APP_LIBRARIES): New variable (MU_COMMON_INCLUDES): add libargp and libcfg (AC_CONFIG_FILES): Add libargp and libcfg. * auth/gsasl.c, auth/pam.c, auth/radius.c, auth/sql.c, auth/sql.h, auth/tls.c, auth/virtual.c, comsat/comsat.h, frm/frm.h, guimb/guimb.h, imap4d/imap4d.h, include/mailutils/gsasl.h, include/mailutils/libsieve.h, include/mailutils/mailutils.h, include/mailutils/mu_auth.h, include/mailutils/tls.h, include/mailutils/sql.h, maidag/maidag.h, mail/mail.h, mail.local/mail.local.h, mailbox/daemon.c, mailbox/system.c, mh/mh_argp.c, mh/mh_getopt.h, pop3d/pop3d.h, readmsg/readmsg.h: Remove argp stuff * comsat/comsat.c, config/mailutils-config.c, dotlock/dotlock.c, examples/muauth.c, examples/muemail.c, frm/frm.c, frm/from.c, guimb/main.c, imap4d/idle.c, imap4d/imap4d.c, imap4d/util.c, imap4d/version.c, maidag/lmtp.c, maidag/maidag.c, maidag/mailquota.c, mail/mail.c, mail/send.c, mail/version.c, mail.local/mailquota.c, mail.local/main.c, mail.remote/mail.remote.c, mailbox/mu_auth.c, messages/messages.c, mimeview/mimeview.c, movemail/movemail.c, pop3d/extra.c, pop3d/pop3d.c, pop3d/popauth.c, readmsg/readmsg.c, sieve/sieve.c: Use mu_app_init for parsing command line and configuration files. * comsat/Makefile.am, config/Makefile.am, dotlock/Makefile.am, examples/Makefile.am, frm/Makefile.am, guimb/Makefile.am, imap4d/Makefile.am, maidag/Makefile.am, mail/Makefile.am, mail.local/Makefile.am, mail.remote/Makefile.am, mailbox/Makefile.am, messages/Makefile.am, mimeview/Makefile.am, movemail/Makefile.am, pop3d/Makefile.am, readmsg/Makefile.am, sieve/Makefile.am: Use MU_APP_LIBRARIES. * include/mailutils/Makefile.am: Add new files. * include/mailutils/argp.h: Remove. * include/mailutils/cfg.h: New file. * include/mailutils/daemon.h (MODE_INTERACTIVE,MODE_DAEMON): New defines (from removed argp.h). (mu_gocs_daemon): New decl. * include/mailutils/error.h (mu_program_name): New variable (mu_set_program_name): New function. * lib/Makefile.am (libmuaux_la_SOURCES): Add new files. * libsieve/Makefile.am (libsieve_la_SOURCES): Remove argp.c, add conf.c instead. * libsieve/argp.c: Remove. * mailbox/cfg_parser.y (mu_cfg_parse_boolean): New function. * mailbox/mu_argp.c: Remove. * mailbox/muerror.c (mu_program_name): New variable (mu_set_program_name): New function (mu_default_error_printer): Print program name before diagnostic string. * mailbox/mutil.c (mu_sql_decode_password_type): New function. * mh/mh_whom.c (mh_alias_expand): Bugfix * po/POTFILES.in: Update * testsuite/lib/mailutils.exp (mu_init): Pass --no-site-rcfile --no-user-rcfile to all programs.
2007-07-17Added ${MU_LIB_MAILER}.Wojciech Polak1
2007-07-09Rewrite using new envelope accessorsSergey Poznyakoff1
2007-07-05(INCLUDES): Remove INTLINCSSergey Poznyakoff1
2007-06-28Mark printf-like calls with MU_PRINTFLIKE.Sergey Poznyakoff1
2007-06-27Prepare for the GPL v.3 release. Relicense programs under GPL v.3, libraries ↵Sergey Poznyakoff13
under LPGL v.3
2006-10-25Do not try to install anything if Guile is not availableSergey Poznyakoff1
2006-05-26Remove leftover optind usage. Thanks Jay Sulzberger <jays@panix.com> for ↵Sergey Poznyakoff1
reporting.
2006-04-21Load sieve-core as a module.Sergey Poznyakoff1
Do not use make-shared-substring. Change initialization of the syntax tables. Construct the code so, that it returns #t if implicit keep is performed, pass the code as an argument to sieve-main. Fix handling of command line arguments when executing the compiled code (call without -o option). (lex-error,syntax-error): Rewritten (sieve-preprocess-arguments): Correctly handle #:comparator tags (sieve-parse-arguments): Fix handling of keywords (did not work with Guile 1.6.x) (sieve-parse-test): Bugfix 1: Some tests are not procedures. Bugfix 2: Do not ignore last test in allof, anyof constructs (sieve-save-program): Rewrite using with-output-to-file (grammar): New option --verbose.
2006-04-21Rewrite as module. ChangeSergey Poznyakoff1
initialization of the syntax tables. (handle-exception,sieve-verbose-print): New macro (action-fileinto,action-keep,action-stop,action-discard): Produce verbose diagnostics if required. (sieve-run): Take thunk as an argument. Report implicit keep if it returns #t and the verbose mode is on. (sieve-main): Take thunk as an argument.
2006-04-21Use handle-exception where necessarySergey Poznyakoff3
2006-04-21(sieve.scm): Use auxiliary sed script toSergey Poznyakoff1
create. (pkgdata_DATA): Rename to sievemod_DATA
2006-04-20Always load mailutils moduleSergey Poznyakoff1
(sieve-main): Use (mu-mail-directory) instead of mu-path-maildir.
2006-03-07Use MU_LIB_.* variables instead of referring to the libraries by their ↵Sergey Poznyakoff1
relative paths.
2005-11-15(UNCLUDES): Rewritten using MU_COMMON_INCLUDESSergey Poznyakoff1
2005-11-12Load MU_AUTHLIBS before libmailutils. Fixes cygwin buildSergey Poznyakoff1
2005-11-03Load libmuauth before libmailutilsSergey Poznyakoff1
2005-08-27Normalize global namespace. Part 2Wojciech Polak3
2005-08-26Normalize global namespace. Part 1Sergey Poznyakoff3
2005-08-16Rename libmailbox to libmailutils. Rename the convenience library ↵Sergey Poznyakoff1
(lib/libmailutils) to libmuaux.
2005-08-16Remove __P() and __PMT() wrappers.Sergey Poznyakoff1
2005-06-23Use mu_mail_directory, mu_folder_directory and related calls.Sergey Poznyakoff1
2005-05-17Updated FSF addressalpha_0_6_90Sergey Poznyakoff13

Return to:

Send suggestions and report system problems to the System administrator.