- 02 Mar, 2015 1 commit
-
-
- 26 Feb, 2014 1 commit
-
-
- 05 Feb, 2014 1 commit
-
-
- 17 Mar, 2012 1 commit
- 14 Mar, 2012 1 commit
-
-
* include/mailutils/util.h (mu_file_mode_to_safety_criteria) (mu_safety_criteria_to_file_mode): New protos. * libmailutils/base/filesafety.c (safety_checker) <mode>: New member. (file_safety_check_tab): Update. (mu_file_mode_to_safety_criteria) (mu_safety_criteria_to_file_mode): New functions. * libmu_dbm/berkeley.c (do_bdb_open): Create file prior to locking it.
Sergey Poznyakoff authored
-
- 26 Feb, 2012 1 commit
-
-
* include/mailutils/locker.h (mu_locker_lock_mode): New proto. * libmailutils/base/locker.c (_mu_locker_lock): Rename to mu_locker_lock_mode. All callers updated. * libmu_dbm/berkeley.c (bdb_file) <locker>: New member. (do_bdb_open): New function. Lock the database file before opening it. Drop support for version 2. (_bdb_open): Rewrite as a wrapper over do_bdb_open. * mu/dbm.c (dbm_doc): Document the "dump" subcommand. * NEWS: Version 2.99.96 * configure.ac: Likewise.
Sergey Poznyakoff authored
-
- 05 Jan, 2012 1 commit
-
-
- 22 Nov, 2011 1 commit
-
-
* libmu_dbm/dbm.c (mu_dbm_create_from_url): Parameter list beginning with a negative parameter implies default safety criteria. Fix semantics of the "default" keyword: it is different from "all". * libmu_dbm/mudbm.h (DEFAULT_DBM_SAFETY_FLAGS): Remove. Not needed now. * pop3d/bulletin.c (read_bulletin_db): Remove a leftover call to mu_dbm_safety_set_flags.
Sergey Poznyakoff authored
-
- 21 Nov, 2011 1 commit
-
-
* configure.ac (check_dbm_impl): Fix improper usage of expr in BDB=* case. * include/mailutils/dbm.h (mu_dbm_create_from_url) (mu_dbm_create): Take default safety flags as the last argument. * libmailutils/base/filesafety.c (_check_linkwrdir): Check for both hard and symbolic links. Fix the latter check. * libmailutils/tests/fsaf.at: Add check for softlink in a writable dir. * libmu_dbm/create.c (mu_dbm_create): Take default file safety as the last argument. * libmu_dbm/dbm.c (mu_dbm_create_from_url): Likewise. * maidag/mailquota.c (dbm_retrieve_quota): Update call to mu_dbm_create. Impose MU_FILE_SAFETY_ALL by default. * mu/dbm.c (open_db_file): Update call to mu_dbm_create. No checks by default. * pop3d/apop.c (pop3d_apopuser): Update call to mu_dbm_create. Use apop_database_safety as the default checks. * pop3d/bulletin.c (read_bulletin_db,write_bulletin_db): Update calls to mu_dbm_create. Use DEFAULT_GROUP_DB_SAFETY as default. * pop3d/logindelay.c (open_stat_db): Update call to mu_dbm_create. Use DEFAULT_GROUP_DB_SAFETY as default. * pop3d/pop3d.c (apop_database_safety): Initialize to MU_FILE_SAFETY_ALL. (apop_database_safety_set): Remove. * pop3d/pop3d.h (apop_database_safety_set): Remove. * pop3d/popauth.c (open_db_file): Update call to mu_dbm_create. Use safety_flags by default.
Sergey Poznyakoff authored
-
- 10 Nov, 2011 1 commit
- 09 Nov, 2011 2 commits
-
-
* libmu_dbm/kyoto.c: New file. * libmu_dbm/dbm.c: Update. * libmu_dbm/mudbm.h: Update. * libmu_dbm/Makefile.am: (libmu_dbm_la_SOURCES): Add kyoto.c * configure.ac: Add --with-kyotocabinet. * README: Update. * doc/texinfo/programs.texi: Likewise. * libmailutils/base/version.c: Likewise.
Wojciech Polak authored
- 08 Nov, 2011 2 commits
-
-
-
* libmu_dbm/tokyo.c: New file. * libmu_dbm/Makefile.am (libmu_dbm_la_SOURCES): Add tokyo.c. * doc/texinfo/programs.texi: Update. * README: Update.
Wojciech Polak authored
-
- 01 Nov, 2011 1 commit
-
-
* include/mailutils/dbm.h (mu_dbm_get_name): New prototype. * libmu_dbm/name.c: New file. * libmu_dbm/Makefile.am (libmu_dbm_la_SOURCES): Add name.c * mu/dbm.c: New dump format.
Sergey Poznyakoff authored
-
- 29 Oct, 2011 1 commit
-
-
* libmailutils/diag/errors (MU_ERR_TCP_NO_HOST) (MU_ERR_TCP_NO_PORT): Change wording. (MU_ERR_UNSAFE_PERMS): Remove error code. (MU_ERR_NO_HANDLER): Remove. All uses replaced by ENOSYS. (MU_ERR_OUT_NULL): Remove. MU_ERR_OUT_PTR_NULL is used instead. (MU_ERR_MBX_NULL): Remove. Use EINVAL instead. (MU_ERR_BAD_822_FORMAT): Rename to MU_ERR_INVALID_EMAIL. Change wording. (MU_ERR_REPLY): Change wording. * libmailutils/url/create.c: Remove misguiding comments * libmailutils/url/set-service.c: Likewise. * libmailutils/mailbox/mailbox.c (mu_mailbox_open): Return EACCES if trying to update quick-access mailboxes. (mu_mailbox_get_stream): Mark for deletion. * libmailutils/stream/fltstream.c (filter_read) (filter_write_internal): Return MU_ERR_BUFSPACE if requested more space than available in I/O buffers. * libproto/mbox/mbox.c (mbox_expunge_unlocked): Send MU_EVT_MAILBOX_CORRUPT event if the mailbox shrunk. * libproto/mbox/mboxscan.c (mbox_scan_internal): Return MU_ERR_NOENT if unable to locate message in quick-access mode.
Sergey Poznyakoff authored
-
- 28 Oct, 2011 1 commit
-
-
* include/mailutils/dbm.h (mu_dbm_init) (mu_dbm_get_hint): New prototypes. * include/mailutils/util.h (mu_stpcpy) (mu_file_safety_compose): New prototypes. * libmailutils/string/Makefile.am (libstring_la_SOURCES): Add stpcpy.c * libmailutils/string/stpcpy.c: New file. * libmu_cfg/tls.c (cb2_safety_checks): Use mu_file_safety_compose. * libmu_dbm/create.c (mu_dbm_create): Use mu_dbm_init. * libmu_dbm/dbm.c (_mu_dbm_init): Rename mu_dbm_init. All uses changed. Use URL composing interface to create hints. * maidag/maidag.c (mu_dbm_get_hint): New function. * pop3d/pop3d.c (cb2_forward_file_checks): Use mu_file_safety_compose. (apop_database_name, apop_database_safety) (apop_database_safety_set): New variables. (pop3d_cfg_param) <apop-database-file> <apop-database-safety>: New configuration statements. (main) [ENABLE_DBM]: Initialize dbm safety criteria. * pop3d/apop.c (pop3d_apopuser): Use configured database name and safety flags, if set. * pop3d/pop3d.h [ENABLE_DBM] (APOP_PASSFILE): Add ".db" suffix. (apop_database_name, apop_database_safety) (apop_database_safety_set): New variables.
Sergey Poznyakoff authored
-
- 25 Oct, 2011 1 commit
-
-
* lib/mu_dbm.c: Remove. * lib/mu_dbm.h: Remove. * lib/Makefile.am: Remove mu_dbm.[ch]. * include/mailutils/sys/dbm.h: New file. * include/mailutils/sys/Makefile.am: Add dbm.h * include/mailutils/dbm.h: New file. * include/mailutils/Makefile.am (pkginclude_HEADERS): Add dbm.h. * include/mailutils/types.hin (mu_dbm_file_t): New data type. * libmu_dbm/Makefile.am: New file. * libmu_dbm/berkeley.c: New file. * libmu_dbm/close.c: New file. * libmu_dbm/create.c: New file. * libmu_dbm/datumfree.c: New file. * libmu_dbm/dbm.c: New file. * libmu_dbm/delete.c: New file. * libmu_dbm/destroy.c: New file. * libmu_dbm/errstr.c: New file. * libmu_dbm/fetch.c: New file. * libmu_dbm/firstkey.c: New file. * libmu_dbm/gdbm.c: New file. * libmu_dbm/mudbm.h: New file. * libmu_dbm/ndbm.c: New file. * libmu_dbm/nextkey.c: New file. * libmu_dbm/open.c: New file. * libmu_dbm/safety.c: New file. * libmu_dbm/store.c: New file. * Makefile.am [MU_COND_DBM]: Define LIBMU_DBM_DIR (SUBDIRS): Add $(LIBMU_DBM_DIR) * configure.ac: Revamp DBM support: several database types can be specified at once. (AC_CONFIG_FILES): Build libmu_dbm/Makefile * libmu_sieve/extensions/vacation.c: Remove inclusion of mu_dbm.h. * maidag/Makefile.am (maidag_LDADD): Add DBM libraries. * maidag/maidag.c: ENABLE_DBM instead of USE_DBM * maidag/maidag.h: Include <mailutils/dbm.h> instead of mu_dbm.h. * maidag/mailquota.c (dbm_retrieve_quota): Rewrite using libmu_dbm library calls. * mu/Makefile.am [MU_COND_DBM]: Define DBM_C. (MODULES): Add $(DBM_C). (AM_CPPFLAGS): Define DBMLIBS. * mu/ldflags.c (NEEDAUTH): Change definition. (lib_descr) <weight>: New member. All uses changed. (add_entry): Null arguments ignored. (mutool_ldflags): Rewrite traversal of lib_descr. * mu/dbm.c: New file. * pop3d/Makefile.am (pop3d_LDADD, popauth_LDADD): Add DBM libraries. * pop3d/apop.c: Rewrite using libmu_dbm library calls. * pop3d/bulletin.c: Likewise. * pop3d/logindelay.c: Likewise. * pop3d/pop3d.c: Change USE_DBM to ENABLE_DBM. * pop3d/pop3d.h: Include mailutils/dbm.h instead of mu_dbm.h * pop3d/popauth.c: Rewrite using libmu_dbm library calls. * include/mailutils/cctype.h (MU_CTYPE_ENDLN): New character class. (mu_isendln): New macro. * libmailutils/string/muctype.c (mu_c_tab): Mark \r and \n as MU_CTYPE_ENDLN.
Sergey Poznyakoff authored
-