- 26 Dec, 2016 1 commit
-
-
* libmu_sieve/sieve.y (sieve_parse): Make sure 0 is properly promoted to sieve_instr_t.
Sergey Poznyakoff authored
-
- 25 Dec, 2016 2 commits
-
-
* include/mailutils/message.h (mu_attachment_create) (mu_attachment_copy_from_stream) (mu_attachment_copy_from_file): New functions. * libmailutils/mime/attachment.c: Likewise. (mu_message_create_attachment): Rewrite using the three functions above.
Sergey Poznyakoff authored -
* libmailutils/string/strcount.c (mu_str_count): Take an array of (ASCII) characters to count occurrences of. Optionally store individual counts in an array passed as the 3rd argument. * include/mailutils/cstr.h (mu_str_count): Change proto. (mu_c_str_escape, mu_c_str_escape_trans) (mu_c_str_unescape_inplace, mu_c_str_unescape) (mu_c_str_unescape_trans): New protos. * libmailutils/string/cstrescape.c: New file. * libmailutils/string/cstrunescape.c: New file. * libmailutils/string/Makefile.am: Add new files.
Sergey Poznyakoff authored
-
- 22 Dec, 2016 1 commit
-
-
* include/mailutils/util.h (mu_c_storage_t): New data type. * mu/stat.c: New file. * mu/Makefile.am: Add stat * doc/texinfo/programs.texi: Document mailutils stat
Sergey Poznyakoff authored
-
- 21 Dec, 2016 2 commits
-
-
* libproto/imap/mbox.c (_imap_message_unseen): Fix type of pointer returned by mu_list_head * libproto/imap/resproc.c (parse_response_code): Fix parser
Sergey Poznyakoff authored -
* imap4d/list.c (imap4d_list): Move the longest directory prefix to the reference. * imap4d/tests/list.at: New testcase. * libmu_sieve/tests.c: Fix bug introduced by previous commit
Sergey Poznyakoff authored
-
- 20 Dec, 2016 2 commits
-
-
* libmu_sieve/tests.c (retrieve_address): Treat MU_ERR_EMPTY_ADDRESS as MU_ERR_NOENT. This complements 678d9367
Sergey Poznyakoff authored -
* libmu_sieve/sieve.y (mu_sieve_machine_clone): Fix memory allocation. * mh/pick.c: Remove unused functions.
Sergey Poznyakoff authored
-
- 19 Dec, 2016 5 commits
-
-
The commit didn't take into account all possible option/argument combinations. * mh/pick.c (main): Preprocess command line prior to parsing it, expanding --COMP NAME in -component COMP -pattern NAME. * mh/mh_getopt.c: Revert fb84d1e3 * mh/mh_getopt.h: Likewise.
Sergey Poznyakoff authored -
* configure.ac: Assume tokyo|kyoto cabinet will pull the necessary dependencies. Add GINT_LDADD if necessary * gint: Upgrade
Sergey Poznyakoff authored -
* configure.ac (MU_PRI_OFF_T): Define to the printf format spec suitable for printing mu_off_t. Don't use [ ] instead of test. * include/mailutils/types.hin (MU_PRI_OFF_T): New define. * include/mailutils/Makefile.am (type.h): Pass MU_PRI_OFF_T * examples/mboxsize.c: New file. * examples/Makefile.am: Build mboxsize
Sergey Poznyakoff authored -
Exclude from calculation any eventual nested mailboxes. * libproto/maildir/mbox.c: Provide the mailbox_size method. * libproto/mh/mbox.c: Likewise.
Sergey Poznyakoff authored -
* configure.ac: Fallback to guile installation prefix, if 'guile-config info bindir' returns empty string. * doc/texinfo/programs.texi: Minor fix. * mail/mailline.c (ml_readline_init): Don't use obsolete CPPFunction type. * mu/shell.c (mutool_initialize_readline): Likewise. * scheme/sieve2scm.scmi: Fix typo. * sieve/sieve.c (main): Fix initialization of Sieve environment variables "location" and "post".
Sergey Poznyakoff authored
-
- 17 Dec, 2016 3 commits
-
-
-
* examples/rename.c: Remove. * examples/fcopy.c: New file. * examples/fremove.c: New file. * examples/frename.c: New file. * examples/Makefile.am: Update. * include/mailutils/util.h (mu_rename_file): Add flags. (mu_remove_file): New function. (MU_COPY_OVERWRITE): New flag. * libmailutils/base/renamefile.c: New file. * libmailutils/base/Makefile.am: Add newe file. * libmailutils/base/copyfile.c: Fix error handling. * libmailutils/base/renamefile.c (mu_rename_file): Refuse to proceed if the destination file exists and MU_COPY_OVERWRITE flag is not set * libmailutils/diag/errors (MU_ERR_REMOVE_SOURCE) (MU_ERR_RESTORE_META): New errors * imap4d/rename.c (imap4d_rename): Use mu_rename_file * mh/forw.c: Likewise. * mh/mh_whatnow.c: Likewise. * mh/mhn.c: Likewise. * mh/send.c: Likewise. * include/mailutils/cstr.h (mu_str_count): New proto. * include/mailutils/util.h (mu_file_name_is_safe): New proto. * libmailutils/string/safefilename.c: New file. * libmailutils/string/strcount.c: New file. * libmailutils/string/Makefile.am: Update.
Sergey Poznyakoff authored -
* libmailutils/base/copyfile.c: New file. * libmailutils/base/renamefile.c: New file. * include/mailutils/util.h (mu_copy_file) (mu_rename_file): New protos. * libmailutils/base/Makefile.am: Add new files. * examples/rename.c: New file. * examples/Makefile.am: Add new files. * NEWS: Update.
Sergey Poznyakoff authored
-
- 16 Dec, 2016 1 commit
-
-
- 15 Dec, 2016 2 commits
-
-
* libmu_scm/mu_scm.c: Export mu-mailer. * libmu_scm/mu_message.c (scm_mu_message_send): Fix a typo.
Sergey Poznyakoff authored -
* include/mailutils/registrar.h: Swap MU_MAILDIR_PRIO and MU_MH_PRIO (mu_record_is_local) (mu_registrar_apply_filter): New protos. * libmailutils/base/registrar.c (mu_registrar_set_default_scheme): Use mu_registrar_set_default_record. (mu_record_is_local): New function. (mu_record_get_url): Use it. (mu_registrar_apply_filter): New function.
Sergey Poznyakoff authored
-
- 14 Dec, 2016 4 commits
-
-
-
* mh/mh_getopt.c (mh_getopt0): New function. (mh_getopt): Rewrite as alternative entry point to . * mh/mh_getopt.h (mh_getopt0): New proto. * mh/pick.c: Use mh_getopt0 * mh/tests/pick.at: Add new testcase.
Sergey Poznyakoff authored -
* libproto/imap/tag.c: Initialize allocated slot to 0 * mu/imap.c: Fix number of elements to allocate
Sergey Poznyakoff authored -
* include/mailutils/argcv.h: Restore * include/mailutils/Makefile.am: Add back argcv.h
Sergey Poznyakoff authored
-
- 13 Dec, 2016 10 commits
-
-
* libmu_sieve/runtime.c (mu_sieve_abort): Jump with code MU_ERR_FAILURE. * libmu_sieve/tests.c (retrieve_address): Tolerate empty addresses. (retrieve_header): Return reasonable error code. * maidag/script.c (script_apply): If the script failed, return 0.
Sergey Poznyakoff authored -
-
* configure.ac: version 3.1 * NEWS: Likewise. * libmu_sieve/comparator.c: Attend to FIXMEs. * libmu_sieve/conf.c: Likewise. * libmu_sieve/prog.c: Likewise. * libmu_sieve/runtime.c: Likewise. * libmu_sieve/sieve.y: Likewise. * libmu_sieve/util.c: Likewise. * libmu_sieve/variables.c: Likewise. * po/POTFILES.in: Add new files.
Sergey Poznyakoff authored -
* libmu_sieve/util.c (mu_sieve_value_get): Treat actual string and expected string list as equivalent types.
Sergey Poznyakoff authored -
* libmailutils/string/wordsplit.c (mu_wordsplit_perror): Use %s format specifier
Sergey Poznyakoff authored -
-
* libmu_sieve/sieve.y: Fix compilation of chained elsif conditions. * sieve/sieve.c: Define the location environment item.
Sergey Poznyakoff authored -
* NEWS: Update. * doc/texinfo/libmu_sieve.texi: Update. * doc/texinfo/sieve.texi: Document extensions * libmu_sieve/comparator.c (mu_sieve_match_part_checker): Check the type of the 2nd argument. * sieve/sieve.c: Define "location" and "phase" environment items. * sieve/tests/pipetest.at: Use "pipe" as the capability string.
Sergey Poznyakoff authored -
* include/mailutils/sieve.h (mu_sieve_get_mailbox) (mu_sieve_get_argc): New protos. * libmu_sieve/runtime.c: New functions.
Sergey Poznyakoff authored -
* libmailutils/string/wordsplit.c: Change ordering of expansions so that command expansion occurs first. This fixes nested expansions and command expansions occurring after variable expansions. * libmailutils/tests/wordsplit.at: Add more tests.
Sergey Poznyakoff authored
-
- 12 Dec, 2016 5 commits
-
-
-
* mh/mh.h (mh_whatnow_env) <nowhatnowproc>: New member. * mh/compcommon.c (check_draft_disposition): Return DISP_REPLACE if nowhatnowproc is set. * mh/mh_whatnow.c (mh_whatnowproc): Return 0 if nowhatnowproc is set. * mh/comp.c: Fix -nowhatnowproc * mh/forw.c: Likewise. * mh/repl.c: Likewise.
Sergey Poznyakoff authored -
* libmailutils/base/ctparse.c (parse_type) (parse_subtype): Fix memory allocation
Sergey Poznyakoff authored -
-
* sieve/tests/environment.at: New testcase. * sieve/tests/Makefile.am: Add new file. * sieve/tests/testsuite.at: Include new file. * lib/muscript.h (mu_script_init): Change signature. * lib/muscript_priv.h (mu_script_fun) <script_init>: Likewise. * lib/guile.c (scheme_init): Update. * lib/python.c (python_init): Update. * lib/script.c (mu_script_init): Pass environment to the script_init method. * lib/sieve.c (sieve_init): Set sieve environment. * maidag/script.c (apply_script): Set environment. * mh/inc.c: Likewise.
Sergey Poznyakoff authored
-
- 11 Dec, 2016 1 commit
-
-
* include/mailutils/sieve.h (mu_sieve_require_environment): New proto. * libmu_sieve/Makefile.am: Add environment.c * libmu_sieve/environment.c: New file. * libmu_sieve/require.c: Handle "environment" keyword. * libmu_sieve/sieve-priv.h (mu_sieve_machine) <exenv>: New member. * libmu_sieve/sieve.l: Bugfixes * libmu_sieve/variables.c: Add missing static qualifiers * sieve/sieve.c: New option --environment
Sergey Poznyakoff authored
-
- 10 Dec, 2016 1 commit
-
-