- 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
-
- 26 Nov, 2007 2 commits
-
-
-
* auth/Makefile.am (libmuauth_la_SOURCES): Add ldap.c. * auth/ldap.c: New file. * include/mailutils/Makefile.am (pkginclude_HEADERS): Add ldap.h. * include/mailutils/ldap.h: New file. * include/mailutils/libcfg.h (mu_ldap_cfg_capa): New extern. * include/mailutils/mu_auth.h (mu_auth_ldap_module): New extern. (MU_AUTH_REGISTER_ALL_MODULES): Register ldap. * libcfg/Makefile.am (libmucfg_la_SOURCES): Add ldap. * libcfg/ldap.c: New file. * libcfg/init.c (cfg_capa_table): Add ldap. * mailbox/gocs.c (mu_gocs_logging_init): Initialize log_facility to default if not specified otherwise. Need to revise this later. * mailbox/version.c (mu_conf_option): Reveal ldap, if supported. * mailbox/mu_auth.c (mu_auth_data_alloc): Add safety checks. Provide reasonable defaults for missing arguments. * mailbox/mutil.c (mutil_parse_field_map): Bugfix - increment by 2 on each loop. * libargp/mu_argp.c (mu_build_argp): Do not bail out if an unknown capability is requested. * include/mailutils/assoc.h (mu_assoc_count): New function. * mailbox/assoc.c: Likewise. * auth/radius.c (_expand_query): Static * mailbox/cfg_lexer.c: Fixed memory management during cloning.
Sergey Poznyakoff authored
-
- 24 Nov, 2007 1 commit
-
-
* imap4d/login.c, pop3d/user.c: Print user db source along with the login name. * include/mailutils/debug.h (mu_debug_set_print): Change prototype. (mu_debug_printer_fp): New data type. (mu_debug_default_printer): New extern. (mu_debug_syslog_printer,mu_debug_stderr_printer): New prototypes. * libproto/include/debug0.h (struct _mu_debug): Remove unused `buffer' and `buflen'. Add `stream'. Change signature of `_print' and rename it to `printer'. * mailbox/debug.c: Rewrite debugging support. (mu_debug_default_printer): New global. * mailbox/gocs.c (mu_gocs_logging_init): Initialize mu_debug_default_printer. * mailbox/memory_stream.c (_memory_truncate): Bugfix. (_memory_get_transport2): Implement method. * mailbox/Makefile.am (libmailutils_la_SOURCES): Add dbgstderr.c and dbgsyslog.c * mailbox/dbgstderr.c, mailbox/dbgsyslog.c: New files. * maidag/maidag.c, mail.local/main.c, sieve/sieve.c: Remove _mu_debug_printer, the default implementation will do. * mailbox/mu_auth.c: Improve debugging. * libsieve/comparator.c, libsieve/load.c, libsieve/sieve.l: Include ctype.h * include/mailutils/libargp.h: Remove option declarations. * include/mailutils/mu_auth.h (struct mu_auth_data): New member `source'. (mu_auth_set_debug): New proto. * libargp/common.c: Define option values. New option --debug-auth. * libargp/auth.c, libargp/gsasl.c, libargp/pam.c, libargp/radius.c, libargp/sieve.c, libargp/sql.c, libargp/tls.c, libargp/virtdomain.c: Define option values.
Sergey Poznyakoff authored
-
- 20 Nov, 2007 1 commit
-
-
* auth/pam.c (mu_pam_module_init): Use struct. * include/mailutils/gocs.h (struct mu_gocs_pam): New data type. * include/mailutils/libcfg.h (mu_sieve_cfg_capa) (mu_daemon_cfg_capa,mu_auth_cfg_capa): New declarations. * libargp/common.c (mu_daemon_argp_parser): Handle ARGP_KEY_INIT. * libargp/pam.c (service_name): Remove. (pam_settings): Add new variable. (mu_pam_argp_parser): Reflect this. * libcfg/auth.c (mu_auth_section_parser): New function. (mu_auth_cfg_capa): New variable. * libcfg/common.c (mu_daemon_section_parser): Handle mu_cfg_section_start. * libcfg/init.c (cfg_capa_table): Add auth, sieve, daemon. (reserved_name): Remove auth and daemon. * mailbox/Makefile.am (EXTRA_DIST): Remove @MU_EXTRA_DIST@. * mailbox/daemon.c (mu_gocs_daemon_init): Remove extra checks. * mailbox/mu_auth.c (_add_module_list): Skip delimiters. * po/POTFILES.in: Update.
Sergey Poznyakoff authored
-
- 17 Nov, 2007 2 commits
-
-
* include/mailutils/sha1.h: Add. * mailbox/md5.h: Remove. * include/mailutils/md5.h: Add. * include/mailutils/Makefile.am: Update. * mailbox/Makefile.am: Update. * libproto/pop/mbox.c, libproto/pop/pop3_apop.c, libproto/pop/pop3_stls.c, mailbox/md5.c, mailbox/message.c, mailbox/sha1.c, pop3d/apop.c, pop3d/pop3d.h, sql/mysql.c: Fix usage of sha1_ and md5_. * mailbox/mu_auth.c, mailbox/mutil.c, mailbox/rfc2047.c: Eliminate strtok_r.
Sergey Poznyakoff authored -
* 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.
Sergey Poznyakoff authored
-
- 07 Nov, 2007 1 commit
-
-
function. * include/mailutils/cfg.h (mu_cfg_time): New value (struct mu_cfg_section): Rewamp using lists. (enum mu_cfg_cont_type, struct mu_cfg_cont): New types. (mu_config_create_container, mu_config_clone_container) (mu_config_destroy_container): New functions. (mu_parse_config): New function. * include/mailutils/mu_auth.h (mu_authentication_clear_list) (mu_authorization_clear_list): New functions. * mailbox/cfg_lexer.c: Add missing includes (mu_config_create_container, mu_config_clone_container) (mu_config_destroy_container): New functions. (mu_parse_config): New function. (_mu_config_register_section): New function. (mu_config_register_section): New function. (_mu_parse_config): Fully implement system-wide/per-user configuration semantics. (mu_parse_config): Take two more arguments. * mailbox/cfg_parser.h: Remove automatically generated file. * mailbox/cfg_parser.y (find_container): New function (find_subsection,find_param): Rewrite using find_container (parse_param): Implement new data type mu_cfg_time (time_t value). (_scan_tree_helper): Complain about unknown sections only if MU_CONFIG_VERBOSE environment variable is set. * mailbox/mu_argp.c (assign_string): Bugfix. (mu_argp_set_config_param): New function. (mu_argp_parse): Remove eventual `lt-' prefix from program names. * mailbox/mu_auth.c: New options --clear-authorization and --clear-authentication. (mu_authorization_clear_list,mu_authentication_clear_list): New functions. * include/mailutils/refcount.h (struct _mu_refcount): Move ro refcount.c (mu_refcount_inc,mu_refcount_dec): Change return value. (mu_refcount_value): New function. * mailbox/refcount.c (struct _mu_refcount): Moved from refcount.h (mu_refcount_value): New function. (mu_refcount_create,mu_refcount_destroy,mu_refcount_inc) (mu_refcount_dec): Fix monitor usage. (mu_refcount_inc,mu_refcount_dec): Fix return type. * mailbox/Makefile.am (libmailutils_la_SOURCES): Add refcount.c * dotlock/dotlock.c, imap4d/imap4d.c, mail.local/main.c, mail.remote/mail.remote.c, mimeview/mimeview.c, movemail/movemail.c, pop3d/pop3d.c, pop3d/signal.c, readmsg/readmsg.c, sieve/sieve.c: Implement new configuration. * testsuite/lib/mailutils.exp: Set MU_CONFIG_FLAVOR envar to `none' to avoid reading configuration files.
Sergey Poznyakoff authored
-
- 05 Nov, 2007 1 commit
-
-
* mailbox/cfg_lexer.c: New file. * mailbox/cfg_parser.c: New file. * mailbox/cfg_parser.h: New file. * mailbox/Makefile.am: Add cfg_ sources and socket_stream.c. * include/mailutils/cfg.h: New file. * include/mailutils/Makefile.am (pkginclude_HEADERS): Add cfg.h. * include/mailutils/argp.h: Include cfg.h. (mu_create_argcv): Remove prototype. * include/mailutils/mu_auth.h (struct mu_auth_module): New member `cfg'. (MU_AUTH_REGISTER_ALL_MODULES): Call mu_auth_init first. * mailbox/mu_argp.c: Rewrite. Implement normal configuration (resource) file support. Overloaded command line options begin to phase out. * mailbox/mu_auth.c, auth/gsasl.c, auth/pam.c, auth/radius.c, auth/sql.c, auth/tls.c, auth/virtual.c, libsieve/argp.c, mailbox/system.c: Implement configuration statements. * imap4d/imap4d.c: Begin switching to the new configuration scheme.
Sergey Poznyakoff authored
-
- 10 Jul, 2007 1 commit
-
-
- 28 Jun, 2007 1 commit
-
-
- 27 Jun, 2007 1 commit
-
-
- 27 Feb, 2007 1 commit
- 23 Feb, 2007 1 commit
-
-
- 16 Oct, 2006 1 commit
-
-
(mu_auth_runlist): Change return code convention: underlying calls should return meaningful error codes, not just 0/1.
Sergey Poznyakoff authored
-
- 27 Aug, 2005 1 commit
-
-
- 26 Aug, 2005 1 commit
-
-
- 16 Aug, 2005 1 commit
-
-
- 17 May, 2005 1 commit
-
-
- 28 Jun, 2004 1 commit
-
-
- 12 Jun, 2004 1 commit
-
-
- 09 Jun, 2004 1 commit
-
-
- 02 Jun, 2004 1 commit
-
-
- 26 Jul, 2003 1 commit
-
-
- 26 Jun, 2003 1 commit
-
-
- 26 Mar, 2003 1 commit
-
-
- 09 Feb, 2003 1 commit
-
-
- 29 Dec, 2002 1 commit
- 27 Dec, 2002 1 commit
-
-
- 12 Sep, 2002 1 commit
-
-
- 15 Aug, 2002 1 commit
-
-
- 13 Aug, 2002 1 commit
-
-