- 03 May, 2015 4 commits
-
-
* readmsg/readmsg.c: Bail out unless arguments are present. * doc/texinfo/programs.texi: Update.
Sergey Poznyakoff authored -
The Config file applies to all output formats, which is wrong. Use a dedicated configuration file for html output formats, and default settings for the rest. * doc/texinfo/Makefile.am (GENDOCS): Add html-specific configuration file. * doc/texinfo/Config: Rename to doc/texinfo/html.init (with changes). * doc/texinfo/programs.texi: Fix sectioning.
Sergey Poznyakoff authored -
* mail/util.c (util_command_list): Use util_screen_columns instead of util_getcols. (util_getcols): Don't use COLUMNS. (util_getlines): Don't use LINES. * mail/mail.c: Don't force COLUMNS and LINES (they are normally not exported, so setting them will cause util_getcols and util_getlines to return wrong results). Set variable "columns" from envvar COLUMNS, if set to a numeric value. Set variable "screen" from envvar LINES, if set to a numeric value. * mail/from.c (format_headline): Use util_screen_columns instead of util_getcols. * mail/mailvar.c (mailvar_print,mail_variable): Likewise. * mail/print.c (mail_print_msg): Likewise.
Sergey Poznyakoff authored -
The _mu_mailbox_pattern variable is supposed to be set only from configuration file. However, the mu_mailbox_url function would also set it as a side effect. This produced strange results; in particular unsetting HOME variable caused mail utilities to ignore MAIL variable as well (as reported by Dan Jacobson on 2015-04-30, <87vbgemcc7.fsf@jidanni.org>). * configure.ac (MU_PATH_MAILDIR): Don't end with a slash. * libmailutils/mailbox/mbx_default.c (mu_normalize_mailbox_url): Use mu_make_file_name. (mu_mailbox_url): Don't set _mu_mailbox_pattern.
Sergey Poznyakoff authored
-
- 27 Apr, 2015 1 commit
-
-
Setting non-existing variable in bin/mail at the start of the session caused further calls to set (without arguments) to malfunction. This reveiled bugs in list mapping functions. On the other hand, invoking completion after "set var=" caused bin/mail to coredump. * libmailutils/list/gmap.c (mu_list_gmap): Initialize rc. * libmailutils/list/map.c: Always initialize *res. * mail/mailvar.c (mailvar_list_copy): The call to mu_list_map does not necessarily create the list. Create it, if it doesn't. (mailvar_iterate_next): Redo the loop: check if there are items to iterate over.
Sergey Poznyakoff authored
-
- 02 Mar, 2015 2 commits
-
-
* doc/texinfo/Config: Rewrite. * doc/texinfo/Makefile.am: Use Makeinfo 5 instead of texi2htm * doc/texinfo/gendocs_template: Remove ps * doc/imprimatur: Upgrade. * doc/texinfo/gendocs.sh: New file. * doc/texinfo/rendition.texi: Remove. * doc/texinfo/programs.texi: Bugfixes
Sergey Poznyakoff authored -
-
- 08 Dec, 2014 1 commit
-
-
* libmailutils/base/fgetpwent.c: Place struct passwd at the beginning of the buffer. Account for eventual missing newline at the end of file.
Sergey Poznyakoff authored
-
- 07 Dec, 2014 1 commit
-
-
* libmailutils/base/fgetpwent.c: Rewrite from scratch. * ChangeLog.amend: Update.
Sergey Poznyakoff authored
-
- 06 Dec, 2014 1 commit
-
-
* libmailutils/mailbox/fsfolder.c: Fix debugging categories * libproto/maildir/mbox.c (maildir_opendir) (maildir_msg_finish_delivery) (maildir_scan0): Log errors. (maildir_flush,maildir_deliver_new): Return EACCES if the mailbox is read-only.
Sergey Poznyakoff authored
-
- 05 Dec, 2014 1 commit
-
-
New imap4d statement "retain-groups" instructs it to retain the named supplementary user groups when switching to the user privileges (previously, imap4d just switched to <user>:mail). Read-only mailboxes are handled graciously: SELECT succeeds on such mailboxes, bug marks them explicitly as read-only. * imap4d/imap4d.c (user_retain_groups): New global. New config statement "retain-groups". (mu_get_user_groups): New function. (imap4d_session_setup0): Use mu_switch_to_privs instead of just setuid. * imap4d/list.c (imap4d_list): Fix handling of LIST "" "/path/to/mbox" * imap4d/select.c (imap4d_select0): Retry opening in read-only mode if failed to open for read-write. * libproto/maildir/mbox.c (maildir_mkfilename) (mk_info_filename): Change return value and signature. All uses changed. (maildir_scan0): Don't shuffle messages if mailbox is opened read-only. * libproto/maildir/folder.c: Update call to maildir_mkfilename. * libproto/maildir/maildir.h (maildir_mkfilename): Change prototype.
Sergey Poznyakoff authored
-
- 03 Dec, 2014 1 commit
-
-
* mail/mail.c (mail_mainloop): Check command length before trying to access its last byte.
Sergey Poznyakoff authored
-
- 14 Aug, 2014 1 commit
- 10 Aug, 2014 1 commit
-
-
* imap4d/search.c (imap4d_search0): Use parsebuf.err_mesg if defined, otherwise fall back to the general "parse error" message. * include/mailutils/datetime.h (MU_DATETIME_INTERNALDATE): Use %e for day. Day can be one-digit decimal. * libmailutils/datetime/scantime.c (mu_scan_datetime): Skip initial ws for %e. * mu/imap.c (com_search): Print newline after the "no matches" message.
Sergey Poznyakoff authored
-
- 27 Jul, 2014 1 commit
-
-
This patch adds a convenience library libmuscript that provides scripting capability easy to use in MU applications. Currently used by maidag and inc. * include/mailutils/util.h (mu_stpcpy): 2nd arg is const. * libmailutils/string/stpcpy.c: Likewise. * lib/.gitignore: Update. * lib/Makefile.am: New library libmuscript.a * lib/muscript.h: New file. * lib/muscript_priv.h: New file. * lib/script.c: New file. * maidag/guile.c: Rename to ... * lib/guile.c: ... this * maidag/python.c: Rename to ... * lib/python.c: ... this * maidag/sieve.c: Rename to ... * lib/sieve.c: ... this * maidag/Makefile.am (maidag_LDADD): Add libmuscript.a (maidag_SOURCES): Update. * maidag/maidag.c (script_handler): Change type to mu_script_t. * maidag/maidag.h: Include muscript.h * maidag/script.c: Rewrite via libmuscript * mh/Makefile.am (inc_LDADD): New variable. * mh/inc.c (options): New options --language and --script. (mh_option): New options -language and -script. (incdat) <handler,descr>: New members. (incmbx): Optionally process each message through a script. If it is marked as deleted upon return, don't incorporate it. (main): Set mh as the default mailbox scheme. Initialize scripting subsystem and deallocate it when finished. * mh/mh_getopt.h (ARG_LANG, ARG_SCRIPT): New constants.
Sergey Poznyakoff authored
-
- 26 Jul, 2014 1 commit
-
-
* bootstrap.conf: Create and populate lib/gnu, if necessary. * configure.ac (MU_APP_COMMON_INCLUDES): Update. (AC_CONFIG_FILES): Build lib/gnu/Makefile * lib/Makefile.am (libmuaux_a_SOURCES): Add all objects from gnu/ * po/POTFILES.in: Update. * examples/.gitignore: Update.
Sergey Poznyakoff authored
-
- 17 Jul, 2014 2 commits
-
-
* examples/echosrv.c: Fix typo. * libmailutils/sockaddr/url.c: Likewise. * mh/mhn.c: Likewise. * mh/folder.c (roll_back): Fix conditional. * THANKS: Update.
Sergey Poznyakoff authored
-
- 07 Jul, 2014 3 commits
-
-
-
* libmailutils/filter/iconvflt.c (format_octal): New function. (_icvt_decoder): Fix size calculations before returning mu_filter_moreoutput. Use format_octal instead of sprintf to avoid memory overwrite with the terminating nul characteter.
Sergey Poznyakoff authored
-
- 05 Jul, 2014 1 commit
-
-
* libmailutils/filter/xml.c: New file. * include/mailutils/filter.h (mu_xml_filter): New extern. * libmailutils/filter/Makefile.am (libfilter_la_SOURCES): Add xml.c * libmailutils/filter/filter.c (mu_filter_get_list): Register mu_xml_filter. * libmailutils/tests/xml.at: New file. * libmailutils/tests/Makefile.am: Add xml.at * libmailutils/tests/testsuite.at: Likewise.
Sergey Poznyakoff authored
-
- 01 Jul, 2014 1 commit
-
-
* include/mailutils/filter.h (mu_htmlent_filter): New extern. * libmailutils/filter/Makefile.am: Add htmlent.c * libmailutils/filter/filter.c (mu_filter_get_list): Register mu_htmlent_filter. * libmailutils/filter/htmlent.c: New file. * libmailutils/tests/htmlent.at: New testcase. * libmailutils/tests/Makefile.am: Add new testcase. * libmailutils/tests/testsuite.at: Likewise.
Sergey Poznyakoff authored
-
- 17 Jun, 2014 1 commit
-
-
Without this, `mk_info_filename' generates filenames of the following form when the flag set is empty: 1402217787.M664911P5957Q143.hostname:2 The original Maildir spec (http://cr.yp.to/proto/maildir.html), however, mandates that filenames must be of the form `uniq:info', with `info' starting with "2,"--including a comma. This patch removes the "cleanup" performed by `mk_info_filename' as that there is no rationale for it in mailutils' source code history, and as it breaks Gnus' "nnmaildir" backend (Cf. `nnmaildir--add-flag'). * libproto/maildir/mbox.c (mk_info_filename): Keep comma at the end of filename when the flags suffix is empty.
Damien Diederen authored
-
- 21 May, 2014 1 commit
-
-
* libmailutils/mailbox/attribute.c (mu_attribute_is_equal): Fix comparison. * libmailutils/mailbox/biffnotify.c: Add missing includes.
Sergey Poznyakoff authored
-
- 15 Apr, 2014 1 commit
-
-
* frm/frm.c (frm): Initialize counters. * frm/tests/testsuite.at: Test multiple mailboxes.
Sergey Poznyakoff authored
-
- 26 Feb, 2014 5 commits
-
-
* imap4d/imap4d.c [WITH_TLS] (cb_tls_required): Conditional compilation. * imap4d/imap4d.h [!WITH_TLS] (tls_encryption_on): Empty define. * pop3d/pop3d.c [!WITH_TLS] (tls_available): Empty define. * libmu_scm/mu_mailbox.c (mu_scm_mailbox_print): Fix format string.
Sergey Poznyakoff authored -
* libproto/imap/id.c: Make sure returned mu_assoc_t is valid even if no untagged response was received (equivalent to NIL).
Sergey Poznyakoff authored -
Remove deprecated types and function calls. Make cipher, mac, and other priorities configurable. * include/mailutils/sys/tls-stream.h (_mu_tls_stream): Use gnutls_session_t. * include/mailutils/tls.h (mu_tls_module_config): New member: priorities. * libmu_auth/tls.c: Remove deprecated types. (intialize_tls_session): Make priorities configurable. (prepare_client_session): Set default priorities. * libmu_cfg/tls.c: New configuration statement: ssl-priorities.
Sergey Poznyakoff authored -
-
-
- 06 Feb, 2014 2 commits
-
-
* mh/mh_getopt.c (mh_getopt): Correctly handle traditional options that begin with "no" (e.g. "notify"). * mh/inc.c (mh_option): Accept -notify (single-dash).
Sergey Poznyakoff authored -
* include/mailutils/mailbox.h (mu_mailbox_set_notify) (mu_mailbox_unset_notify): New protos. * include/mailutils/sys/mailbox.h (_mu_mailbox) <notify_user> <notify_fd,notify_sa>: New members. * libmailutils/mailbox/Makefile.am (libmailbox_la_SOURCES): Add biffnotify.c * libmailutils/mailbox/biffnotify.c: New file. * libmailutils/mailbox/mailbox.c (_mailbox_create_from_record): Initialize notify_fd. (mu_mailbox_destroy): Free notify_sa. (mu_mailbox_close): Close notify_fd. (mu_mailbox_flush): Rewrite to handle append-only mailboxes effectively. * libmailutils/server/msrv.c (server_cfg_param): Fix docstring. * libmailutils/stream/file_stream.c (fd_open): Open fd read-write if both MU_STREAM_APPEND and MU_STREAM_READ are requested. * libproto/mbox/mbox.c (mbox_expunge0): Rescan the mailbox if messages_count == 0. Special handling for append-only mailboxes. * maidag/deliver.c: Use library notification mechanism. * mh/inc.c: New option --notify. * movemail/movemail.c: Likewise.
Sergey Poznyakoff authored
-
- 05 Feb, 2014 1 commit
-
-
- 04 Feb, 2014 3 commits
-
-
* imap4d/imap4d.c (imap4d_connection): Use global TLS setting if no local one was supplied. (main): Use global TLS setting in inetd mode. * pop3d/pop3d.c (main): Use global TLS setting in inetd mode.
Sergey Poznyakoff authored -
* libmailutils/auth/system.c: Check return from crypt before passing it to strcmp. * libmu_auth/sql.c: Likewise.
Sergey Poznyakoff authored -
-
- 24 Dec, 2013 1 commit
-
-
The bug was introduced in commit 6e2a3758. The ACLs allow administrators to limit access to IMAP services to particular users or users belonging to particular groups. * imap4d/authenticate.c (imap4d_auth_capability): Take session pointer as argument. Don't report authentication capabilities if tls is required. (imap4d_authenticate): Fix conditional. * imap4d/capability.c (imap4d_capability): Update call to imap4d_auth_capability. * imap4d/imap4d.c (cb_tls_required): Set tls_mode. (auth_deny_user_list,auth_allow_user_list) (auth_deny_group_list,auth_allow_group_list): New statics. (check_user_groups,imap_check_group_list): New static functions. (imap4d_cfg_param) <allow-users,deny-users> <allow-groups,deny-groups>: New configuration statements. (imap4d_session_setup0): Check allow/deny lists. * imap4d/imap4d.h (imap4d_auth_capability): Change signature. * pop3d/pop3d.c (cb_tls_required): Set tls_mode. * bootstrap (gnulib_extra_files): Update.
Sergey Poznyakoff authored
-
- 17 Dec, 2013 1 commit
-
-
* mh/inc.c (main): Update the unseen sequence only if some new messages were incorporated.
Sergey Poznyakoff authored
-
- 30 Nov, 2013 1 commit
-
-
* libproto/imap/appmsg.c (mu_imap_append_message): Fix conditional. * libproto/imap/mbox.c (_imap_mbx_append_message): Fix error checking. * libproto/imap/url.c (_mu_imap_url_init) (_mu_imaps_url_init): Set _get_path member. This allows the user to specify an URL without explicit path, implying INBOX.
Sergey Poznyakoff authored
-