- 15 Jun, 2016 1 commit
-
-
* libmailutils/msgset/parse.c (MU_MSGSET_EMPTY): New constant. (parse_msgrange): Don't add any ranges if mode is set to MU_MSGSET_EMPTY. (mu_msgset_parse_imap): Force MU_MSGSET_EMPTY mode if the mailbox is empty. * libmailutils/msgset/print.c (mu_msgset_print): Handle empty message sets. * libmailutils/msgset/trans.c (_mu_msgset_translate_pair): Initialize variable. * libmailutils/tests/Makefile.am (msgset_LDADD): New variable. * libmailutils/tests/msgset.c (parse_msgset): Take mailbox as first argument. (main): New option -mailbox
Sergey Poznyakoff authored
-
- 08 Feb, 2016 1 commit
-
-
* mu/smtp.cÐ(com_list_param): Report if the connection has not been established yet.
Sergey Poznyakoff authored
-
- 22 Jan, 2016 2 commits
-
-
* configure.ac (MU_TCPWRAP_LIBRARIES): New subst variable. Always includes lib/libmutcpwrap.a. If libwrap is present on the system and required, it is included as well * imap4d/Makefile.am (TCPWRAP_LIBRARIES): Replace with MU_TCPWRAP_LIBRARIES. * maidag/Makefile.am: Likewise. * pop3d/Makefile.am: Likewise.
Sergey Poznyakoff authored -
-
- 19 Dec, 2015 1 commit
- 11 Nov, 2015 1 commit
- 10 Nov, 2015 2 commits
-
-
* libmu_argp/mailutils.c: Include argp-namefrob.h * libproto/mailer/smtp_auth.c (get_ticket) (_mu_smtp_fixup_params): Protect with WITH_GSASL
Sergey Poznyakoff authored -
* configure.ac (MU_APP_LIBRARIES): Add libmuaux.la. This complements a41e62b9 and fixes linking on systems that are unable to track dynamic library dependencies.
Sergey Poznyakoff authored
-
- 28 Oct, 2015 1 commit
-
-
- 27 Oct, 2015 7 commits
-
-
* doc/texinfo/sieve.texi: Document recent changes to vacation. * libmu_sieve/extensions/vacation.c (vacation_reply): Handle the "rfc2822" tag: if set together with :file, treat the file as the RFC2822 message. Otherwise, read message body from it. * sieve/tests/vacation.at: Add test for :rfc2822
Sergey Poznyakoff authored -
New tag :header allows to set headers in the reply message generated by the vacation extension.
Sergey Poznyakoff authored -
* libproto/mailer/sendmail.c: Fix typo in debugging message. * po/.gitignore: Update.
Sergey Poznyakoff authored -
When delivering message, the library may need to know the email address of the user on behalf of whom maidag is called. In particular, that happens when using the vacation extension. In that case the library would construct the email by concatenating user name, obtained as a result of mu_get_auth_by_uid, and current domain name. Avoid this by remembering email address the message is being delivered to. * libmailutils/base/usremail.c (mu_set_user_email): NULL argument clears email. (mu_get_user_email): Use EUID instead of UID. * maidag/deliver.c (do_delivery): Set user email prior to delivery. * maidag/maidag.c (default_domain): New variable. (maidag_cfg_param): New setting "domain". * maidag/maidag.h (default_domain): New extern.
Sergey Poznyakoff authored -
* libmailutils/diag/debug.c (mu_debug_log): Account for eventual newlines in the generated message string. * imap4d/io.c (imap4d_init_tls_server): Use mu_stream_strerror.
Sergey Poznyakoff authored -
* libproto/mailer/prog.c (url_to_argv): Free ws only if it was initialized.
Sergey Poznyakoff authored -
* include/mailutils/Makefile.am (errno.h): Use explicit file names instead of implicit variables. * include/mailutils/sys/Makefile.am (debcat.h): Likewise. * libmailutils/diag/Makefile.am (muerrno.c): Likewise. * libmu_argp/Makefile.am (libmu_argp_la_LIBADD): Use relative path to .la,
Sergey Poznyakoff authored
-
- 26 Oct, 2015 1 commit
-
-
* libmu_sieve/extensions/vacation.c (match_addresses): Change arguments: take primary email address as well as a list of aliases. (vacation_reply): Reply if the primary email or one of alias emails are listed in recipient list of the original message. New tag "always_reply" reverts to the old behavior: reply regardless of whether the message is destined for us. Use the current user email as the sender address of the vacation message. New tag "return_address" sets the sender address explicitly. * sieve/tests/vacation.at: Add new tests.
Sergey Poznyakoff authored
-
- 25 Oct, 2015 1 commit
-
-
* libmu_sieve/extensions/vacation.c (build_mime): Fix memory leak. This also flushes the message body stream, so its content becomes visible for the mailer. (noreply_address_p): Rename "addresses" tag to "noreply". (check_db): The "database" tag provides vacation database name. (vacation_reply): Always set message headers. (vacation_tags): Rename "addresses" tag to "noreply". New tag: "database" * sieve/tests/vacation.at: New file. * sieve/tests/Makefile.am (TESTSUITE_AT): Add vacation.at. * sieve/tests/testsuite.at: Include vacation.at. * doc/texinfo/programs.texi: Minor change.
Sergey Poznyakoff authored
-
- 20 Sep, 2015 1 commit
-
-
- 19 Sep, 2015 1 commit
-
-
* include/mailutils/wordsplit.h (MU_WRDSX_WORD) (MU_WRDSX_QUOTE): New constants. (mu_wordsplit_getwords): Rename to mu_wordsplit_get_words. * libmailutils/string/wordsplit.c (mu_wordsplit_getwords): Rename to mu_wordsplit_get_words. * libmailutils/base/userprivs.c (mu_switch_to_privs): Fix memory overrun when retrieving the current pointer. * examples/header.c (main): Use mu_wordsplit_get_words * imap4d/preauth.c (preauth_getvar): Rewrite according to the new API. * libmailutils/imapio/create.c (mu_imapio_create): Use MU_WRDSX_ constants to address ws_escape. * libmailutils/imapio/qstring.c: Likewise. * libmailutils/mailbox/mbx_default.c: Minor fix. * libmailutils/server/acl.c (acl_getvar): Rewrite according to the new API. * libmailutils/tests/wsp.c: Minor fix. * libmailutils/url/create.c (_mu_url_create_internal): Bugfix: alloc url->path. * libmu_sieve/extensions/list.c (retrieve_next_header): Use mu_wordsplit_get_words * libproto/mailer/prog.c (prog_getvar): Rewrite according to the new API. * libproto/mailer/smtp_gsasl.c (get_implemented_mechs): Remove unneeded assignment to ws.ws_wordv. * mh/folder.c: Use mu_wordsplit_get_words. * mh/mhn.c: Likewise. * movemail/movemail.c (movemail_getvar): Rewrite according to the new API.
Sergey Poznyakoff authored
-
- 16 Sep, 2015 1 commit
-
-
The updated version supports tilde and pathname expansion, command substitution and standard shell-like replacement constructs in variable substitution, such as ${X:-V} etc. * include/mailutils/wordsplit.h: Update. * libmailutils/string/wordsplit.c: Update. * libmailutils/tests/wsp.c: Update. * libmailutils/tests/wordsplit.at: Update unescape test. * libmailutils/imapio/create.c (mu_imapio_create): Initialize ws_escape array. * libmailutils/mime/mimehdr.c (_mime_header_parse): Likewise. * libmailutils/tests/modmesg.c: Use mu_wordsplit with MU_WRDSF_NOSPLIT to run expansions on the string. * mu/shell.c (shell_prompt): Likewise.
Sergey Poznyakoff authored
-
- 24 Aug, 2015 1 commit
-
-
- 04 Aug, 2015 2 commits
-
-
- 11 Jul, 2015 3 commits
-
-
-
* include/mailutils/stream.h (MU_IOCTL_TLSSTREAM): New ioctl code. (MU_IOCTL_TLS_GET_CIPHER_INFO): New ioctl opcode. * libmailutils/property/assocprop.c (_assoc_prop_fill) (_assoc_prop_save): allow for NULL stream pointer. * libmu_auth/tls.c (_tls_io_ioctl,_tls_ioctl): Handle MU_IOCTL_TLSSTREAM/MU_IOCTL_TLS_GET_CIPHER_INFO ioctl. * imap4d/io.c (log_cipher): New function. (io_setio, imap4d_init_tls_server): Call log_cipher after successfully establishing the TLS connection. * imap4d/starttls.c (tls_encryption_on): Remove diagnostic output. * pop3d/extra.c (log_cipher): New function. (pop3d_setio,pop3d_init_tls_server): Call log_cipher after successfully establishing the TLS connection.
Sergey Poznyakoff authored -
* libmailutils/mailbox/mbx_default.c (mu_normalize_mailbox_url): don't place / in front of the username. (plus_expand): Use mu_make_file_name and mu_asprintf. Check for errors. (mu_mailbox_create_default): Check for errors.
Sergey Poznyakoff authored
-
- 10 Jul, 2015 1 commit
-
-
Avoid calling gnutls_global_init (via mu_tls_module_init) prior to forking. gnutls_global_init opens at least one file descriptor (/dev/urandom), and closing it will disrupt its operation. Current stable libgnutls (3.3.15) is able to cope with it, but there are plenty of systems running much older versions. * libmailutils/server/msrv.c (mu_m_server_begin): Reset onexit list after forking. * libmu_auth/tls.c (mu_tls_module_init): Don't call mu_init_tls_libs. (_tls_server_open, _tls_client_open): Check return value from mu_init_tls_libs. * imap4d/auth_gsasl.c (auth_gsasl): Use mu_onexit to register onexit functions. * imap4d/imap4d.h (util_atexit): Remove prototype. * imap4d/starttls.c (imap4d_starttls): Don't register mu_deinit_tls_libs: now done by tls library. (starttls_init): Don't call mu_init_tls_libs. * imap4d/util.c (util_atexit): Remove. (util_bye): Update accordingly. * pop3d/extra.c (pop3d_setio): Print informational message after establishing TLS. (pop3d_bye): Don't call mu_deinit_tls_libs: that's done by the library. * pop3d/pop3d.c (main): Don't call mu_init_tls_libs.
Sergey Poznyakoff authored
-
- 09 Jul, 2015 2 commits
-
-
* testsuite/testsuite.inc (MUT_DEFAULT_OPTIONS): New define. * maidag/tests/testsuite.at: Add MUT_DEFAULT_OPTIONS to the options passed to maidag * mail/tests/cols00.at: Use MUT_MAIL_CMD * mail/tests/cols01.at: Likewise. * mail/tests/copy00.at: Likewise. * mail/tests/nohome.at: Likewise. * mail/tests/testsuite.at (MUT_MAIL_CMD): New define. Pass MUT_DEFAULT_OPTIONS to mail. * sieve/tests/testsuite.at: Pass MUT_DEFAULT_OPTIONS to sieve.
Sergey Poznyakoff authored -
* libmailutils/mailbox/mbx_default.c (mu_normalize_mailbox_url): Append ${user} if URL ends with user=$user. Fixes 131ddb25.
Sergey Poznyakoff authored
-
- 07 Jul, 2015 1 commit
-
-
* lib/Makefile.am: Add -version-info to LDFLAGS * libmu_cfg/Makefile.am: Likewise. * libmu_argp/Makefile.am: Use LIBADD to add library dependency Pass -version-info to LDFLAGS
Sergey Poznyakoff authored
-
- 02 Jul, 2015 3 commits
-
-
* libmailutils/cfg/gocs.c (mu_gocs_register): Avoid registering same capability twice.
Sergey Poznyakoff authored -
* 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.
Sergey Poznyakoff authored
-
- 28 Jun, 2015 2 commits
-
-
* libproto/maildir/mbox.c (maildir_msg_finish_delivery): Don't complain if trying to unlink a nonexistent file.
Sergey Poznyakoff authored -
* 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.
Sergey Poznyakoff authored
-
- 27 Jun, 2015 4 commits
-
-
* python/libmu_py/libmu_py.c (_ro): Remove inline qualifier. * python/libmu_py/libmu_py.h: Likewise.
Sergey Poznyakoff authored -
* python/libmu_py/address.c: Use PyInt_FromSize_t to return size_t and similar values. * python/libmu_py/auth.c: Likewise. * python/libmu_py/body.c: Likewise. * python/libmu_py/header.c: Likewise. * python/libmu_py/mailbox.c: Likewise. * python/libmu_py/mailcap.c: Likewise. * python/libmu_py/message.c: Likewise. * python/libmu_py/mime.c: Likewise. * python/libmu_py/sieve.c: Likewise. * python/libmu_py/stream.c: Likewise.
Sergey Poznyakoff authored -
* lib/python.c (python_proc): Pass a copy of mu_program_name as argv[0]. * python/libmu_py/libmu_py.h (ASSERT_INDEX_RANGE): New macro. * python/libmu_py/address.c: Use Py_ssize_t and check returned value range when getting size_t arguments. * python/libmu_py/auth.c: Likewise. * python/libmu_py/folder.c: Likewise. * python/libmu_py/header.c: Likewise. * python/libmu_py/mailbox.c: Likewise. * python/libmu_py/mailcap.c: Likewise. * python/libmu_py/message.c: Likewise. * python/libmu_py/mime.c: Likewise. * python/libmu_py/secret.c: Likewise. * python/libmu_py/stream.c: Likewise.
Sergey Poznyakoff authored -
* lib/muscript.h: Don't include config.h: the caller is responsible for that. * lib/guile.c: Include config.h * lib/python.c: Likewise. * lib/script.c: Likewise. * lib/sieve.c: Likewise.
Sergey Poznyakoff authored
-