summaryrefslogtreecommitdiff
path: root/comsat
AgeCommit message (Collapse)AuthorFiles
2024-01-06Update copyright yearsSergey Poznyakoff8
2023-04-30Switch to newer autotoolsSergey Poznyakoff1
* configure.ac: Require autoconf 2.71, automake 1.16.2 Don't use obsolete macros. Drop support for Berkeley DB 2. * gint: Upgrade. * gnulib: Upgrade. * am/db2.m4: Remove. Support for bdb2 withdrawn. * libmu_dbm/berkeley.c: Drop support for bdb2. * am/config_paths.m4: Don't use obsolete autoconf macros. * am/debug.m4: Likewise. * am/enable.m4: Likewise. * am/gsasl.m4: Likewise. * am/gssapi.m4: Likewise. * am/ipv6.m4: Likewise. * am/tls.m4: Likewise. * mail/mail.h (mailvar_value): Rename bool to boolean to avoid eventual conflicts. All uses changed. * comsat/comsat.c: Remove the uses of RETSIGTYPE. * examples/echosrv.c: Likewise. * imap4d/bye.c: Likewise. * imap4d/imap4d.c: Likewise. * imap4d/imap4d.h: Likewise. * imap4d/signal.c: Likewise. * lib/muaux.h: Likewise. * lib/signal.c: Likewise. * libmailutils/mailer/progmailer.c: Likewise. * libmailutils/server/msrv.c: Likewise. * libmu_sieve/extensions/spamd.c: Likewise. * mh/mhn.c: Likewise. * mh/prompter-tty.c: Likewise. * mh/sortm.c: Likewise. * pop3d/pop3d.h: Likewise. * pop3d/signal.c: Likewise.
2023-01-22Update copyright yearsSergey Poznyakoff8
2022-02-08mbox format: don't count terminating empty line as part of messageSergey Poznyakoff1
* configure.ac: Version 3.14.90 * NEWS: Version 3.14.90 * libproto/mbox/mboxrd.c (scan_message_finalize): Take decrement value (n) without additional corrections. All uses changed. (mailbox_append_message): Fix padding. * libproto/mbox/message.c (_msg_stream_setup) (mboxrd_message_body_scan,_msg_body_setup): Don't count terminating empty line as part of the message body. * libproto/mbox/tests/lastmsg.at: New test. * libproto/mbox/tests/Makefile.am: Add new files. * libproto/mbox/tests/testsuite.at: Likewise. * libproto/mbox/tests/append.at: Test appending to partially terminated mailboxes. * libproto/mbox/tests/body.at: Fix expected octet and line counts. * libproto/mbox/tests/attr.at: Likewise. * libproto/mbox/tests/autodetect.at: Likewise. * libproto/mbox/tests/count.at: Likewise. * libproto/mbox/tests/env.at: Likewise. * libproto/mbox/tests/notify.at: Likewise. * libproto/mbox/tests/qget.at: Likewise. * comsat/tests/testsuite.at: Likewise. * imap4d/tests/IDEF0956.at: Likewise. * imap4d/tests/fetch.at: Likewise. * libmu_scm/tests/mailbox-append-message.at: Likewise. * libmu_scm/tests/mailbox-expunge.at: Likewise. * libmu_scm/tests/mailbox-get-message.at: Likewise. * libmu_scm/tests/mailbox-iterate.at: Likewise. * libtests/mime.at: Likewise. * mail/tests/align.at: Likewise. * mail/tests/hold.at: Likewise. * mail/tests/nohome.at: Likewise. * mail/testsuite/mail/Followup.exp * mail/testsuite/mail/Reply.exp * mail/testsuite/mail/folder.exp * mail/testsuite/mail/followup.exp * mail/testsuite/mail/read.exp * mail/testsuite/mail/reply.exp * mail/testsuite/mail/tag.exp * mail/testsuite/mail/z.exp * pop3d/testsuite/pop3d/read.exp * readmsg/tests/all.at: Likewise. * readmsg/tests/hdr.at: Likewise. * readmsg/tests/nohdr.at: Likewise. * readmsg/tests/twomsg.at: Likewise. * readmsg/tests/weed.at: Likewise. * sieve/tests/redirect.at: Likewise. * sieve/tests/reject.at: Likewise.
2022-01-02Update copyright yearSergey Poznyakoff8
2021-01-05Update copyright yearsSergey Poznyakoff8
2020-11-16Remove mh and maildir sample mailboxes from the distributionSergey Poznyakoff2
Testsuites use mbox2dir to create the requested directory-based mailbox from the mbox source.
2020-11-16Fix message append notifications for maildir, mh, and dotmail.Sergey Poznyakoff1
* testsuite/mbop.c: Implement notification mode. * comsat/tests/testsuite.at: Fix mh qid. * libproto/dotmail/dotmail.c (dotmail_append_message): Lock the monitor before and unlock it after the operation. * libproto/dotmail/tests/notify.at: New file. * libproto/dotmail/tests/Makefile.am: Add notify.at * libproto/dotmail/tests/testsuite.at: Include notify.at. * include/mailutils/sys/amd.h (cur_msg_file_name): Change signature. * libmailutils/base/amd.c: Use amd->cur_msg_file_name with 0 as its second argument to get qid. * libproto/maildir/mbox.c (maildir_cur_message_name): Take three argument, second one specifying whether an absolute or relative filename is requested. All uses changed. * libproto/maildir/tests/notify.at: New file. * libproto/maildir/tests/Makefile.am: Add notify.at * libproto/maildir/tests/testsuite.at: Include notify.at * libproto/mh/mbox.c (_mh_cur_message_name): Take three argument, second one specifying whether an absolute or relative filename is requested. All uses changed. * libproto/mh/tests/notify.at: New file. * libproto/mh/tests/Makefile.am: Add notify.at * libproto/mh/tests/testsuite.at: Include notify.at
2020-02-08Update copyright yearsSergey Poznyakoff8
2019-12-14Fix several linking issuesSergey Poznyakoff1
* configure.ac: Require libtool version 2.4.6 (MU_LINK_POSTFLAGS): Remove. Not needed with the patched version of ltmain.sh. Detect the presencecof GSSAPI. Fix displaying the status of GSSAPI support. Remove the hack introduced on 2010-02-19 (commit 35ac66f056). (MU_AUTHLIBS,SQLLIB) (SQL_LOADABLE_MODULES,SQL_LIBOBJS): Insert spaces only when needed. * mu-aux/ltmain.sh: ltmain.sh from libtool 2.4.6 with fixes from http://gray.gnu.org.ua/public/ltbug installed. * bootstrap.conf (bootstrap_epilogue): Install the fixed ltmain.sh version. * am/gssapi.m4: Allow for "yes" and "probe" argument values. Improve makefile style consistency . Uniformly use parentheses instead of curly braces in variable referencing; . Prefer to use Make variables over substitution variables, for variables prefixed with MU_; * comsat/Makefile.am * dotlock/Makefile.am * examples/Makefile.am * examples/cpp/Makefile.am * frm/Makefile.am * imap4d/Makefile.am * imap4d/tests/Makefile.am * lib/Makefile.am * libmailutils/Makefile.am * libmailutils/address/Makefile.am * libmailutils/auth/Makefile.am * libmailutils/base/Makefile.am * libmailutils/cfg/Makefile.am * libmailutils/cidr/Makefile.am * libmailutils/cli/Makefile.am * libmailutils/datetime/Makefile.am * libmailutils/diag/Makefile.am * libmailutils/filter/Makefile.am * libmailutils/imapio/Makefile.am * libmailutils/list/Makefile.am * libmailutils/locus/Makefile.am * libmailutils/mailbox/Makefile.am * libmailutils/mailcap/Makefile.am * libmailutils/mailer/Makefile.am * libmailutils/mime/Makefile.am * libmailutils/msgset/Makefile.am * libmailutils/opt/Makefile.am * libmailutils/property/Makefile.am * libmailutils/server/Makefile.am * libmailutils/sockaddr/Makefile.am * libmailutils/stdstream/Makefile.am * libmailutils/stream/Makefile.am * libmailutils/string/Makefile.am * libmailutils/tests/Makefile.am * libmailutils/url/Makefile.am * libmailutils/wicket/Makefile.am * libmu_auth/Makefile.am * libmu_cpp/Makefile.am * libmu_dbm/Makefile.am * libmu_scm/Makefile.am * libmu_scm/mailutils/Makefile.am * libmu_sieve/Makefile.am * libmu_sieve/extensions/Makefile.am * libproto/dotmail/Makefile.am * libproto/dotmail/tests/Makefile.am * libproto/imap/Makefile.am * libproto/imap/tests/Makefile.am * libproto/maildir/Makefile.am * libproto/mailer/Makefile.am * libproto/mbox/Makefile.am * libproto/mh/Makefile.am * libproto/nntp/Makefile.am * libproto/pop/Makefile.am * mail/Makefile.am * mapi/Makefile.am * mda/lib/Makefile.am * mda/lmtpd/Makefile.am * mda/mda/Makefile.am * mda/mda/tests/Makefile.am * mda/putmail/Makefile.am * messages/Makefile.am * mh/Makefile.am * mh/tests/Makefile.am * mimeview/Makefile.am * movemail/Makefile.am * mu/Makefile.am * mu/libexec/Makefile.am * pop3d/Makefile.am * python/2/libmu_py/Makefile.am * python/2/mailutils/Makefile.am * python/3/libmu_py/Makefile.am * python/3/mailutils/Makefile.am * readmsg/Makefile.am * sieve/Makefile.am * sql/Makefile.am * testsuite/Makefile.am
2019-11-26BugfixSergey Poznyakoff1
* comsat/action.c (run_user_action): Fill env.locus.end with 0s.
2019-11-09Reorganize testsuiteSergey Poznyakoff1
Simplify Makefile.am's in tests subdirectories by moving the common part in a separate file and including it where necessary. Build only one copy of package.m4. Both package.m4 and include file testsuite.am reside in the testsuite directory. Also provide configure options for selecting mda components to build: --disable-build-mda do not build mda --disable-build-lmtpd do not build lmtpd --disable-build-putmail do not build putmail * .gitignore: Update. * Makefile.am [MU_COND_MDA]: Change to MU_COND_MDA_TOOLS * configure.ac: Provide a way to enable/disable building of mda, lmtpd and putmail separately. Build testsuite/package.m4 * testsuite/testsuite.am * testsuite/Makefile.am: Distribute both package.m4.in and package.m4. Include main part from testsuite.am * testsuite/package.m4.in: New file. * comsat/tests/Makefile.am: Include main part from testsuite.am * frm/tests/Makefile.am: Likewise. * imap4d/tests/Makefile.am: Likewise. * libmailutils/tests/Makefile.am: Likewise. * libmu_scm/tests/Makefile.am: Likewise. * libproto/dotmail/tests/Makefile.am: Likewise. * mail/tests/Makefile.am: Likewise. * messages/tests/Makefile.am: Likewise. * mh/tests/Makefile.am: Likewise. * mimeview/tests/Makefile.am: Likewise. * readmsg/tests/Makefile.am: Likewise. * sieve/tests/Makefile.am: Likewise. * mda/.gitignore: Remove. * mda/tests/Makefile.am: Remove. * mda/tests/testsuite.at: Remove. * mda/tests/.gitignore: Remove. * mda/tests/atlocal.in: Remove. * mda/tests/mda.inc: New file. * mda/Makefile.am: Add extra directory level. Add subdirs depending on whether the corresponding component is selected for building. * mda/lmtpd/.gitignore: New file. * mda/lmtpd/Makefile.am: New file. * mda/lmtpd.c: Move to mda/lmtpd/lmtpd.c * mda/lmtpd/tests/.gitignore: New file. * mda/lmtpd/tests/Makefile.am: New file. * mda/lmtpd/tests/atlocal.in: New file. * mda/tests/lmtpd.at: Move to mda/lmtpd/tests/lmtpd.at * mda/lmtpd/tests/testsuite.at: New file. * mda/mda/.gitignore: New file. * mda/mda/Makefile.am: New file. * mda/mda.c: Move to mda/mda/mda.c * mda/mda/tests/.gitignore: New file. * mda/mda/tests/Makefile.am: New file. * mda/mda/tests/atlocal.in: New file. * mda/tests/forward.at: Move to mda/mda/tests/forward.at * mda/tests/mda.at: Move to mda/mda/tests/mda.at * mda/mda/tests/testsuite.at: New file. * mda/putmail/.gitignore: New file. * mda/putmail/Makefile.am: New file. * mda/putmail.c: Move to mda/putmail/putmail.c * mda/putmail/tests/.gitignore: New file. * mda/putmail/tests/Makefile.am: New file. * mda/putmail/tests/atlocal.in: New file. * mda/tests/putmail.at: Move to mda/putmail/tests/putmail.at * mda/putmail/tests/testsuite.at: New file * po/POTFILES.in: Update pathnames * maint/fullcheck.mk: Minor fixes.
2019-09-03comsatd: optional argument to the --test option supplies the name of the tty ↵Sergey Poznyakoff3
to use * NEWS: Document changes. * comsat/action.c (open_default_tty): Remove. (open_tty): Examine the tty device (or file) and construct a suitable filter chain. Use append mode when opening it. * comsat/comsat.c: The --test option takes optional argument. * comsat/tests/testsuite.at: Use local file instead of the tty. * doc/texinfo/programs/comsatd.texi: Document changes.
2019-02-26New autoconf macro for activating mailbox format supportSergey Poznyakoff1
* am/enable.m4 (MU_ENABLE_SUPPORT) (MU_ENABLE_BUILD): Use m4_-prefixed directives. (MU_ENABLE_MAILBOX_FORMAT) (MU_ENABLE_LOCAL_MAILBOX_FORMAT_ (MU_ENABLE_REMOTE_MAILBOX_FORMAT): New macros. (MU_LIB_MAILBOX) (MU_LIB_LOCAL_MAILBOX) (MU_LIB_REMOTE_MAILBOX): New substitution variables. * configure.ac: Use new macros to enable mailbox formats * libproto/Makefile.am: Augment SUBDIRS instead of using Makefile variables. * comsat/Makefile.am: Use MU_LIB_.*MAILBOX macros to link in the necessary libraries. * examples/Makefile.am: Likewise. * examples/cpp/Makefile.am: Likewise. * frm/Makefile.am: Likewise. * imap4d/Makefile.am: Likewise. * include/mailutils/sys/Makefile.am: Likewise. * libmu_scm/Makefile.am: Likewise. * libproto/Makefile.am: Likewise. * maidag/Makefile.am: Likewise. * mail/Makefile.am: Likewise. * messages/Makefile.am: Likewise. * mh/Makefile.am: Likewise. * movemail/Makefile.am: Likewise. * mu/libexec/Makefile.am: Likewise. * pop3d/Makefile.am: Likewise. * python/2/libmu_py/Makefile.am: Likewise. * python/3/libmu_py/Makefile.am: Likewise. * readmsg/Makefile.am: Likewise. * sieve/Makefile.am: Likewise. * testsuite/Makefile.am: Likewise.
2019-01-03Update copyright yearsSergey Poznyakoff9
2018-01-19Version 3.4.90; update copyright yearsSergey Poznyakoff9
2017-11-01Improve socket and SMTP client APISergey Poznyakoff1
Split formatting functions into two distinct families. Functions prefixed with mu_sys_sockadrr deal with struct sockaddr, wherease those starting with mu_sockaddr deal with struct mu_sockaddr. Introduce special format for SMTP EHLO. When sending EHLO to the remote party, use IP address in square brackets if hostname is empty. * libmailutils/sockaddr/Makefile.am (libsockaddr_la_SOURCES): Add fromsock.c * libmailutils/sockaddr/fromsock.c: New function. * libmailutils/sockaddr/str.c (mu_sockaddr_format): Rewrite. (mu_sys_sockaddr_format,mu_sys_sockaddr_to_astr): New functions. * include/mailutils/debug.h (mu_sockaddr_to_astr): Remove prototype. * include/mailutils/sockaddr.h (mu_sockaddr_format): New enum. (mu_sockaddr_format): change signature. (mu_sys_sockaddr_format,mu_sys_sockaddr_to_astr): New prototypes. (mu_sockaddr_from_socket): New prototype. * include/mailutils/stream.h (MU_IOCTL_TCPSTREAM): New ioctl family; (MU_IOCTL_TCP_GETSOCKNAME): New ioctl opcode. * comsat/comsat.c: Use mu_sys_sockaddr_ interface to handle struct sockaddr. * lib/tcpwrap.c: Likewise. * libmailutils/server/ipsrv.c: Likewise. * libmailutils/server/msrv.c: Likewise. * libmailutils/stream/tcp.c (_tcp_ioctl): Handle MU_IOCTL_TCPSTREAM. * libproto/mailer/smtp_ehlo.c (mu_smtp_ehlo): If hostname is empty, use IP address in square brackets.
2017-06-13Switch to new locus typesSergey Poznyakoff1
* include/mailutils/types.hin (mu_locus): Remove. * include/mailutils/diag.h (mu_diag_at_locus): Remove. (mu_diag_at_locus_point,mu_diag_at_locus_range): New protos. * include/mailutils/mailutils.h: Include locus.h * include/mailutils/stream.h (MU_IOCTL_LOGSTREAM_GET_LOCUS) (MU_IOCTL_LOGSTREAM_SET_LOCUS): Remove. * libmailutils/stream/logstream.c (_log_ctl): Reflect this. * libmailutils/tests/logstr.at: Remove the related test. * libmailutils/tests/logstr.c: Ditto. * libmailutils/cfg/Makefile.am: Add new header. * libmailutils/cfg/cfg.h: New file. * libmailutils/cfg/format.c: Use mu_locus_range * libmailutils/cfg/lexer.l: Use the mu_linetrack facility * libmailutils/cfg/parser.y: LIkewise. * libmailutils/diag/diag.c (mu_diag_at_locus): Remove. (mu_diag_at_locus_point,mu_diag_at_locus_range): New protos. * comsat/action.c: Use mu_locus_point and mu_locus_range instead of the removed mu_locus. * include/mailutils/auth.h: Likewise. * include/mailutils/cfg.h: Likewise. * include/mailutils/sieve.h: Likewise. * libmailutils/base/wicket.c: Likewise. * libmailutils/tests/wicket.c: Likewise. * libmu_auth/radius.c: Likewise. * libmu_sieve/actions.c: Likewise. * libmu_sieve/comparator.c: Likewise. * libmu_sieve/extensions/moderator.c: Likewise. * libmu_sieve/mem.c: Likewise. * libmu_sieve/prog.c: Likewise. * libmu_sieve/require.c: Likewise. * libmu_sieve/runtime.c: Likewise. * libmu_sieve/sieve-priv.h: Likewise. * libmu_sieve/sieve.l: Use the mu_linetrack facility. * libmu_sieve/sieve.y: Likewise. * libmu_sieve/util.c: Use mu_locus_point and mu_locus_range instead of the removed mu_locus * libmu_sieve/variables.c: Likewise. * mail/source.c: Likewise. * mu/libexec/dbm.c: Likewise. * mu/libexec/logger.c: Likewise. * mu/libexec/wicket.c: Likewise. * sieve/sieve.c: Likewise. * sieve/tests/i-numeric.at: Update expected locations
2017-01-01Happy GNU YearSergey Poznyakoff9
2016-11-02Improve configuration file handling.Sergey Poznyakoff2
* include/mailutils/cfg.h (mu_cfg_parse_hints): Rename site_rcfile to site_file, custom_rcfile to custom_file. Remove append_tree and data fields. (MU_PARSE_CONFIG_GLOBAL,MU_CFG_PARSE_PROGRAM): Remove. (MU_PARSE_CONFIG_VERBOSE): Rename to MU_CF_VERBOSE. (MU_PARSE_CONFIG_DUMP): Rename to MU_CF_DUMP. (MU_CFG_FMT_LOCUS): Rename to MU_CF_FMT_LOCUS. (MU_CFG_FMT_VALUE_ONLY): Rename to MU_CF_FMT_VALUE_ONLY. (MU_CFG_FMT_PARAM_PATH): Rename to MU_CF_FMT_PARAM_PATH. (MU_CFG_COMPATIBILITY,MU_CFG_DEPRECATED): Remove. (mu_parse_config, mu_get_config): Remove deprecated functions. * libmailutils/cli/cli.c (mu_general_help_text): New global. (app_data): New struct. (init_options): Construct configuration option group depending on which configuration files are in use. (mu_cli_ext): Don't use per-user configuration files for servers. Pass pointer to app_data structure as po.po_data (mu_cli): Set MU_CFHINT_PER_USER_FILE flag by default. * mail/testsuite/lib/mail.exp: Rewrite invocation of the mu_init command. * include/mailutils/cli.h (mu_cli_setup) <server>: New field. * comsat/comsat.c (cli): Mark as server. (main): Bugfix: pass pointer to server to mu_cli. * imap4d/imap4d.c (cli): Mark as server. * pop3d/pop3d.c: Likewise. * comsat/tests/testsuite.at: Use the --no-site-config option. * imap4d/tests/testsuite.at: Likewise. * libmailutils/cfg/driver.c: Update. * libmailutils/cfg/format.c: Update. * libmailutils/cfg/lexer.l: Update. * libmailutils/cfg/parser.y: Update. * mu/acl.c: Update. * pop3d/testsuite/lib/pop3d.exp: Likewise. * mu/mu.c: Don't read configuration files. * mu/query.c: Fix args_doc * testsuite/lib/mailutils.exp (mu_init): Change option handling. Set --no-config option by default.
2016-10-30Improve opool APISergey Poznyakoff1
* configure.ac: Version 2.99.993 * NEWS: Update. * include/mailutils/opool.h (MU_OPOOL_DEFAULT) (MU_OPOOL_ENOMEMABRT): New defines. (mu_opool_create): Change meaning of the 2nd argument. All uses updated. (mu_opool_free, mu_opool_dup): New proto. * libmailutils/base/opool.c (_mu_opool) <memerr>: Replace with flags. <head,tail,free>: Rename. (mu_opool_free, mu_opool_dup): New functions. (mu_opool_head): Bugfix.
2016-10-22Provide extended interface to mu_cli.Sergey Poznyakoff1
* include/mailutils/cfg.h (MU_CFG_APPEND_TREE): New flag. * include/mailutils/cli.h (mu_version_copyright): New extern. (mu_cli_ext): New proto. * libmailutils/cfg/parser.y (mu_cfg_parse_config): Check for MU_CFG_APPEND_TREE bit set before accessing hints->append_tree. * libmailutils/cli/cli.c (param_set): Likewise. (mu_cli_ext): New function. (mu_cli): Rewrite as an entry point to mu_cli_ext. * comsat/comsat.c: Remove inclusion of obsolete headers. * mu/help.c: Likewise. * pop3d/extra.c: Likewise.
2016-10-19Rename MU_APP_NEW_LIBRARIES back to MU_APP_LIBRARIES. Version 2.99.991.Sergey Poznyakoff1
2016-10-16Convert comsat to mu_cliSergey Poznyakoff2
2016-10-08Use mu_c_type_t throughout the code. Get rid of mu_cfg_param_data_type.Sergey Poznyakoff1
* include/mailutils/cfg.h (mu_cfg_param_data_type): Remove. (mu_cfg_param_type): New enum. (mu_cfg_param) <type>: Change type to int. (mu_cfg_cidr): Remove. (mu_cfg_parse_boolean): Remove. All uses updated. * include/mailutils/util.h (mu_c_void): New constant. (mu_c_type_str): New extern/ * libmailutils/string/str_to_c.c (mu_c_type_str): New global. * libmailutils/cfg/format.c (mu_cfg_data_type_string): Rename to mu_c_type_string; change argument type. All uses updated. * libmailutils/cfg/parser.y: Use mu_str_to_c for value conversion. * libmailutils/tests/.gitignore: Update. * libmailutils/tests/Makefile.am: Add strtoc.at; build strtoc * libmailutils/tests/strtoc.at: New file. * libmailutils/tests/strtoc.c: New file. * libmailutils/tests/testsuite.at: Include strtoc.at * comsat/comsat.c: Use mu_c_type_t types. * dotlock/dotlock.c: Likewise. * imap4d/imap4d.c: Likewise. * lib/manlock.c: Likewise. * lib/tcpwrap.c: Likewise. * libmailutils/server/msrv.c: Likewise. * libmu_argp/muinit.c: Likewise. * libmu_cfg/common.c: Likewise. * libmu_cfg/gsasl.c: Likewise. * libmu_cfg/ldap.c: Likewise. * libmu_cfg/pam.c: Likewise. * libmu_cfg/radius.c: Likewise. * libmu_cfg/sieve.c: Likewise. * libmu_cfg/sql.c: Likewise. * libmu_cfg/tls.c: Likewise. * libmu_cfg/virtdomain.c: Likewise. * maidag/maidag.c: Likewise. * mimeview/mimeview.c: Likewise. * movemail/movemail.c: Likewise. * pop3d/pop3d.c: Likewise. * readmsg/readmsg.c: Likewise. * sieve/sieve.c: Likewise.
2016-08-22Allow to configure the length of the backlog queue for TCP serversSergey Poznyakoff1
New statement backlog is provided in the server block. * include/mailutils/server.h (mu_m_server_cfg_init): Pass mu_m_server_t as first argument. * libmailutils/server/msrv.c (mu_m_server_cfg_init): Pass mu_m_server_t as first argument. Customize available statements depending on the type of server (tcp vs udp). New statement "backlog" available for tcp servers. * comsat/comsat.c: Update call to mu_m_server_cfg_init * imap4d/imap4d.c: Likewise. * pop3d/pop3d.c: Likewise. * maidag/maidag.c: Likewise.
2016-01-22Update copyright yearsSergey Poznyakoff9
2015-07-02Version 2.99.99Sergey Poznyakoff1
* configure.ac: Version 2.99.99 * NEWS: Update. * libmu_argp/mailutils.c: New file. * libmu_argp/Makefile.am: Add mailutils.c * libmu_argp/cmdline.c (all_cmdline_capa): Add mu_mailutils_cmdline. (mu_libargp_init): Register modflags function. * libmu_argp/mu_argp.c (mu_build_argp): Retain negative group numbers. (argp_capa): New member: modflags. (mu_register_argp_capa): Take pointer to modflags function as 3rd parameter. (mu_build_argp): Use modflags member to alter argp flags. (mu_argp_build): Take pointer to flags as its third argument. * libmu_argp/muinit.c (mu_app_init): Pass pointer to flags to mu_argp_build. * libmu_cfg/init.c (mu_libcfg_init): Silently ignore unknown groups * include/mailutils/libargp.h (mu_mailutils_cmdline): New extern. (mu_cmdline_capa): New member: modflags. (mu_argp_build): Change signature. (mu_register_argp_capa): Change signature. * libmailutils/cfg/gocs.c (std_gocs_table): Add dummy entry for "mailutils" * mu/Makefile.am (bin_PROGRAMS): Rename to "mailutils". * mu/dispatch.c (dispatch_docstring): Use mu_program_name instead of the hardcoded name. * mu/mu.c: Use "mailutils" capability. * mu/mailutils-config.in: Rename to mu/mailutils-config * comsat/comsat.c: Use "mailutils" capability. * dotlock/dotlock.c: Likewise. * examples/muauth.c: Likewise. * examples/muemail.c: Likewise. * frm/frm.c: Likewise. * frm/from.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.
2015-06-28Fix compilation warningsSergey Poznyakoff1
* configure.ac: Check for intptr_t * comsat/action.c (need_crlf): Use intermediate cast to intptr_t. * imap4d/imap4d.c (cb2_group, mu_get_user_groups): Likewise. * libmailutils/stream/file_stream.c (fd_ioctl): Likewise. * libmailutils/stream/mapfile_stream.c (_mapfile_ioctl): Likewise. * libmailutils/stream/tcp.c (_tcp_ioctl): Likewise. * maidag/maidag.c (cb2_group): Likewise. * frm/common.c (puts_bidi): Fix the type of 3rd parameter to fribidi_log2vis * include/mailutils/body.h: Use MU_DEPRECATED instead of\ __attribute__ ((deprecated)). * include/mailutils/cfg.h: Likewise. * include/mailutils/header.h: Likewise. * include/mailutils/libargp.h: Likewise. * include/mailutils/mailbox.h: Likewise. * include/mailutils/mailer.h: Likewise. * include/mailutils/registrar.h: Likewise. * include/mailutils/message.h: Likewise. (mu_message_set_stream): Remove deprecation marker.
2015-03-02Update copyright yearsSergey Poznyakoff9
2014-02-26Use AM_CPPFLAGS instead of INCLUDES; upgrade gintSergey Poznyakoff1
2014-02-05Update copyright years.Sergey Poznyakoff9
2012-07-16Remove dependency on obstack. Use mu_opool_t instead.Sergey Poznyakoff1
* include/mailutils/opool.h (mu_opool_alloc): New proto. * libmailutils/base/opool.c (mu_opool_alloc): New function. (mu_opool_appendz): Do not append trailing null character. * libmailutils/cfg/parser.y (mu_cfg_tree_create_node): Reflect the change in mu_opool_appendz. * comsat/action.c: Use mu_opool_t instead of struct obstack. * lib/mailcap.c: Likewise. * libmailutils/url/urlstr.c: Likewise. * mh/burst.c: Likewise. * mh/mh_fmtgram.y: Likewise. * mh/mh_format.c: Likewise. * mh/mh_format.h: Likewise. * mh/mhn.c: Likewise. * mh/repl.c: Likewise. * mh/whatnowenv.c: Likewise. * mimeview/mimetypes.l: Likewise. * mimeview/mimeview.h: Likewise. * gnulib.modules: Remove obstack.
2012-06-06Fix comsat testsuite.Sergey Poznyakoff2
* comsat/tests/atlocal.in (MH_SUPPORT) (MAILDIR_SUPPORT): New variables. * comsat/tests/testsuite.at: Disable test cases if their prerequisite features are not compiled in.
2012-03-11Fix the use of struct utmp/utmpx in comsatd.Sergey Poznyakoff1
* am/utmp.m4: Check if struct utmp has ut_user or ut_name members. * comsat/comsat.c [HAVE_UTMPX_H]: Define UTMP as a typedef of struct utmpx. Define ut_user, if necessary. (find_user): Use ut_user instead of (backward-compatible) ut_name.
2012-01-05Happy GNU YearSergey Poznyakoff9
2011-12-08Move date/time declarations into a separate header: mailutils/datetime.hSergey Poznyakoff1
Additionally, do not typedef mu_timezone, leave it in struct namespace.
2011-11-04Implement pop3s and imap4s in respective servers.Sergey Poznyakoff1
* comsat/comsat.c (comsat_prefork,comsat_connection): Change signatures. * imap4d/imap4d.c: Implement imaps. * imap4d/imap4d.h (io_setio): Change signature. (tls_encryption_on): New proto. * imap4d/io.c (io_setio): Change signature. Initialize TLS stream if requested. * imap4d/starttls.c (tls_encryption_on): New function. * include/mailutils/server.h (mu_srv_config): New struct. (mu_m_server_conn_fp, mu_m_server_prefork_fp): Remove typedefs. (mu_m_server_handler_fp): New typedef. (mu_m_server_set_conn): Change signature. (mu_m_server_set_prefork): Change signature. (mu_m_server_set_app_data_size) (mu_m_server_set_config_size): New prototype. (mu_m_server_cfg_init): Change signature. * include/mailutils/tls.h (mu_init_tls_libs): Change signature. * lib/tcpwrap.c: Include tcpwrap.h (mu_tcp_wrapper_daemon): Fix declaration. (mu_tcp_wrapper_prefork): Change signature. * lib/tcpwrap.h (mu_tcp_wrapper_prefork): Change signature * libmailutils/server/msrv.c (_mu_m_server) <conn,prefork>: Change data type. All uses updated. <app_data_size>: New member. (m_srv_config): Remove struct. Replaced with mu_srv_config from tls.h (mu_m_server_set_conn): Change signature. (mu_m_server_set_prefork): Change signature. (mu_m_server_set_app_data_size) (mu_m_server_set_config_size): New functions. (add_server): Allocate app_data_size additional bytes of data. (mu_m_server_cfg_init): Take one argument. * libmu_auth/tls.c (mu_tls_module_init): Update call to mu_init_tls_libs. Don't call mu_file_safety_check with NULL argument. (mu_init_tls_libs): Rewrite. Prepare x509 here, instead of doing it each time a TLS stream is created. (mu_deinit_tls_libs): Free x509, if exists. (_tls_server_open): Update call to mu_init_tls_libs. Remove x509 initialization. * libmu_cfg/tls.c (cb2_safety_checks): Fix typos. * maidag/lmtp.c (lmtp_connection): Change signature. * maidag/maidag.c (main): Update call to mu_m_server_cfg_init. * maidag/maidag.h (lmtp_connection): Change signature. * pop3d/extra.c (pop3d_setio): Initialize TLS stream, if requested. * pop3d/pop3d.c: Implement pops. * pop3d/pop3d.h (pop3d_setio): Change prototype.
2011-10-22Fixes in the testsuite & some minor fixes.Sergey Poznyakoff2
* comsat/comsat.c (main): Use real UID to determine user name. Don't rely on environment variables. * maidag/util.c (maidag_error): Re-initialize va_list before reusing it. * mh/ali.c (ali_print_name_list): Change printing loop to correctly handle empty lists. * mh/mh_whatnow.c (quit): Print newline before returning. * comsat/tests/testsuite.at: Skip tests if run as root. * maidag/tests/forward.at: Skip test if run as root. * mh/tests/ali.at: Ignore comment lines in /etc/passwd and /etc/group. Make sure awk is run with a valid stdin. Some implementations (true awk, in particular) try to close stdin even if it is not used and bail out if unable to do so. * mh/tests/atlocal.in (mimeflt): Make sure awk is run with a valid stdin (see above). * mh/tests/anno.at: Always use semicolon before closing curly brace in sed expressions. * mh/tests/mark.at: Likewise. * mh/tests/pick.at: Likewise. * testsuite/testsuite.inc: Likewise. * mh/tests/comp.at: Reflect changes to mh_whatnow.c. * mh/tests/mhn.at: Don't rely on a particular tar output format.
2011-06-08Various minor fixes.Sergey Poznyakoff1
* include/mailutils/diag.h (mu_full_program_name): New extern. * libmailutils/diag/diag.c (mu_full_program_name): New global. (mu_set_program_name): Set mu_full_program_name. (mu_diag_at_locus): Fix format specifier. * libmailutils/diag/bt.c: Use mu_full_program_name instead of program_invocation_name. * libmailutils/diag/wd.c (mu_wd): Likewise. * comsat/comsat.c: Fix format specifiers. * lib/mailcap.c: Likewise. * libmu_sieve/util.c: Cast formatted arguments to match format specs. * mh/mh_getopt.c: Likewise. * libmailutils/cidr/fromstr.c: Add missing includes. * libproto/mailer/smtp.c: Likewise. * libproto/pop/mbox.c: Likewise. * testsuite/smtpsend.c: Likewise. * mu/getarg.c: Likewise. * mu/imap.c: Likewise. * mu/pop.c (com_connect): Protect TLS code with #ifdef. * mu/Makefile.am (EXTRA_DIST): Add mu-setup.awk. * mail/summary.c (mail_summary): Fix data types of the counters.
2011-03-17Bugfixes.Sergey Poznyakoff1
* comsat/action.c (action_echo): Set omit_newline. * libmailutils/mailbox/mbx_default.c: Return 0 on success. Fix memory overrun. * libproto/mailer/smtp.c (smtp_open): Protect tls-related code with #ifdef WITH_TLS. * libproto/pop/mbox.c (pop_open): Likewise. * mu/imap.c (com_connect): Likewise. * mh/mhn.c (split_args): Preserve quotes. (mhn_compose_command): Handle type arguments (%a escape). (mhn_show_command): Likewise. (store_handler): Fix call to mh_getyn. (edit_mime): Pass typeargs to mhn_compose_command. Fix test for missing filename. * mh/tests/ali.at (ali04): The test wrongly assumed that the `root' group has some members. * mh/tests/folder.at: Always sort the output from find. * mh/tests/rmf.at: Likewise. * mh/tests/mhn.at: Likewise. Filter out timestamps from the tar output produced by mhn. * tests/testsuite.at (MH_SETUP): Define moreproc. * mh/tests/mhparam.at: Account for changes in mh_profile
2011-01-02Update copyright years.Sergey Poznyakoff9
Happy GNU year!
2010-12-10Remove MU_STREAM_AUTOCLOSE flag. Use mu_stream_unref, if necessary.Sergey Poznyakoff1
* examples/mta.c: Use MU_STREAM_FD_AUTOCLOSE. * imap4d/io.c: Likewise. * libmailutils/stream/file_stream.c: Likewise. * libmailutils/stream/prog_stream.c: Likewise. * libmailutils/stream/socket_stream.c: Likewise. * libmailutils/stream/temp_file_stream.c: Likewise. * maidag/lmtp.c: Likewise. * pop3d/extra.c: Likewise. * imap4d/preauth.c: Do not use MU_STREAM_AUTOCLOSE. Instead unref the transport stream after creating the derived one. * libmailutils/base/rfc2047.c: Likewise. * libmailutils/stream/fltstream.c: Likewise. * libmailutils/tests/fltst.c: Likewise. * libmu_auth/ldap.c: Likewise. * libmu_auth/tls.c: Likewise. * libmu_sieve/extensions/vacation.c: Likewise. * libproto/pop/pop3_stream.c: Likewise. * mail/decode.c: Likewise. * mh/mhn.c: Likewise. * libmailutils/filter/filter_iconv.c: Do not handle MU_STREAM_AUTOCLOSE. * libmailutils/stream/rdcache_stream.c: Likewise. * libmailutils/stream/streamref.c: Likewise. * libmailutils/stream/xscript-stream.c: Likewise. * include/mailutils/stream.h (MU_STREAM_AUTOCLOSE): Rename to MU_STREAM_FD_AUTOCLOSE.
2010-12-08Minor improvementSergey Poznyakoff1
* examples/config/dot.biffrc: Update. * comsat/comsat.c (main): In test mode, normalize biffrc names that begin with ./ or ../
2010-12-08comsat: provide a fine-grained control over where biffrc errors are outputSergey Poznyakoff3
* comsat/comsat.c (biffrc_errors): New variable. (comsat_cfg_param): New statements: biffrc-errors-to-tty and biffrc-errors-to-err (main): In test mode, set biffrc_errors to BIFFRC_ERRORS_TO_ERR. * comsat/comsat.h (BIFFRC_ERRORS_TO_TTY) (BIFFRC_ERRORS_TO_ERR): New flags. (biffrc_errors): New variable. * comsat/action.c (report_error): Consult biffrc_errors.
2010-12-08Minor improvements in logstream and related code.Sergey Poznyakoff1
* include/mailutils/stream.h (MU_IOCTL_LOGSTREAM_SET_LOCUS_LINE) (MU_IOCTL_LOGSTREAM_SET_LOCUS_COL): New subcodes. * libmailutils/stream/logstream.c (_log_ctl): Handle two new subcodes. * comsat/action.c (eval_biffrc): Use new ioctl subcode to update the line number.
2010-12-08Implement line number output in linecon and inline-comment filters.Sergey Poznyakoff1
* libmailutils/filter/inline-comment.c: Implement line number info facility. * libmailutils/filter/linecon.c: Likewise. * libmailutils/stream/logstream.c (_log_done, _log_close): Always close/destroy the underlying transport stream. * comsat/action.c: Rewrite using a table-driven parser. Use line-info facility of the linecon filter.
2010-12-08comsat: improve biffrc evaluation.Sergey Poznyakoff6
* comsat/.gitignore: Add biff.rc.h * comsat/Makefile.am (comsatd_SOURCES, BUILT_SOURCES): Add biff.rc.h (EXTRA_DIST): Add biffrc.sed and biff.rc * comsat/action.c (default_action): Include biff.rc.h. (biffrc_environ): New struct. (eval_biffrc): New function. (run_user_action): Rewrite via eval_biffrc. Default action is evaluated if biff.rc cannot be opened, or it contains the "default" keyword. * comsat/tests/testsuite.at: Add "default" statement where necessary.
2010-12-08comsat: improve tty handling, add testsuite.Sergey Poznyakoff8
* comsat/action.c (need_crlf, _open_tty, open_tty): Moved from comsat.c (open_default_tty): New function. (run_user_action): Take device name as first argument. Reuse wordsplit memory. * comsat/comsat.c (notify_user): Update invocation of run_user_action. * comsat/comsat.h (open_tty): Remove prototype. (run_user_action): Change signature. * configure.ac: Add comsat tests. * comsat/Makefile.am (SUBDIRS): Add tests. * comsat/tests/.gitignore: New file. * comsat/tests/Makefile.am: New file. * comsat/tests/atlocal.in: New file. * comsat/tests/testsuite.at: New file.
2010-12-07comsat: add a way to specify alternative biffrc file name; new biffrc ↵Sergey Poznyakoff3
statement: tty * comsat/comsat.c (options): New option --file. (biffrc): New variable. (comsatd_parse_opt): Handle the --file option. (open_tty): New function. (notify_user): Open the tty using open_tty function and a default set of filters. (main): Hanlde --file option. * comsat/action.c (run_user_action): Implement the `tty' statement. * comsat/comsat.h (biffrc): New extern. (open_tty): New function. mu: accept a chain of filters. * mu/filter.c (filter_doc, filter_docstring): Update. (mutool_filter): Accept a filter chain.

Return to:

Send suggestions and report system problems to the System administrator.