path: root/mh/tests/
AgeCommit message (Collapse)AuthorFiles
2017-06-11Fix the -nodraftfolder and -nowhatnowproc options.Sergey Poznyakoff1
The commit 744c4a9c didn't take into account the -nodraftfolder and -nowhatnowproc options, which can be used to cancel the effect of the corresponding facilities. This commit fixes it. * mh/mh_getopt.c (mh_getopt_ext): New function. * mh/mh_getopt.h (mh_getopt_ext): New prototype. (mh_optinit): New struct. * mh/tests/ Test the use of Draft-Folder * mh/tests/ Likewise. * mh/tests/ Likewise. * mh/comp.c (main): use mh_getopt_ext to properly process draftfolder and whatnowproc. * mh/forw.c: Likewise. * mh/repl.c: Likewise. * mh/mh.h (mh_whom): Remove. (mh_whom_header, mh_whom_file, mh_whom_message): New protos. * mh/mh_alias.y (mh_read_aliases): Don't read aliases twice. * mh/mh_whatnow.c (whom): Use mh_whom_file. * mh/mh_whom.c (mh_whom): Rewrite and rename to mh_whom_file. (mh_whom_header, mh_whom_message): New functions. * mh/whom.c: Use mh_getopt_ext. Interpret command line arguments, depending on whether the draftfile facility is in use.
2017-06-07Fix tests when logical and physical CWD differSergey Poznyakoff1
MH testsuite produced false negatives when run in a directory accessed by its logical name (symlink). To fix this, avoiding at the same time the use of non-portable "pwd -P" & "pwd -L", this commit adds a filter utility that replaces both logical and physical cwd with a dot on output. The MH testsuite is updated to use this utility. * testsuite/cwdrepl.c: New utility * testsuite/ Build cwdrepl * testsuite/.gitignore: Update. * testsuite/ New test. * testsuite/ Include new test. * mh/tests/ (PATH): Add testsuite (remove_curdir): Remove function. * mh/tests/ Use cwdrepl, fix expected output. * mh/tests/ Likewise. * mh/tests/ Likewise. * mh/tests/ Likewise. * mh/tests/ Likewise.
2017-01-01Happy GNU YearSergey Poznyakoff1
2016-01-22Update copyright yearsSergey Poznyakoff1
2015-03-02Update copyright yearsSergey Poznyakoff1
2014-02-05Update copyright years.Sergey Poznyakoff1
2012-01-05Happy GNU YearSergey Poznyakoff1
2011-10-21Testsuite: add banners before groups of related tests.Sergey Poznyakoff1
2011-01-02Update copyright years.Sergey Poznyakoff1
Happy GNU year!
2010-11-26mh: further improvements in mnh & mh testsuite.Sergey Poznyakoff1
* mh/mhn.c (_mhn_profile_get): Try mhn-<prefix>-<type> if mhn-<prefix>-<type>/<subtype> does not exist. (normalize_path): Use mu_normalize_path. (store_handler) <store_to_file>: Honor mhn-<prefix>, if set. * tests/ (remove_curdir): New function. * mh/tests/ Implement more -store tests. * mh/tests/ (MH_SETUP): Set curdir for use by other testcases. * mh/tests/ Use remove_curdir to sort out the cwd. * mh/tests/ Likewise. * mh/tests/ Likewise. * mh/tests/ Likewise. * mh/tests/ Likewise.
2010-11-24mh: minor changes in forw and repl; provide a set of traditional scan formats.Sergey Poznyakoff1
* mh/.gitignore: Update. * mh/compcommon.c (mh_comp_draft): Rewrite using mh_find_file and simplify. All callers changed. * mh/mh.h (mh_comp_draft): Change signature. * mh/comp.c (opt_handler) <ARGP_KEY_FINI>: Make sure formfile is initialized. * mh/forw.c: Likewise. * mh/repl.c (opt_handler): Remove unused variable. * mh/tests/ (compcmd): Remove -form. * mh/tests/ (forwcmd): Likewise. * mh/etc/.gitignore: New file. * mh/etc/ New file. * mh/etc/forwcomps: New file. * mh/etc/scan.default: New file. * mh/etc/scan.mailx: New file. * mh/etc/scan.size: New file. * mh/etc/scan.time: New file. * mh/etc/scan.timely: New file.
2010-11-24mh: move format files to a separate directory.Sergey Poznyakoff1
* mh/etc: New directory. * mh/ New file. * mh/components: Move to mh/etc. * mh/mailutils-mh.eli: Move to mh/etc. * mh/mhl.format: Move to mh/etc. * mh/mhl.forward: Move to mh/etc. * mh/mhl.repl: Move to mh/etc. * mh/mhl.usenet: Move to mh/etc. * mh/replcomps: Move to mh/etc. * mh/replgroupcomps: Move to mh/etc. * (AC_CONFIG_FILES): Add mh/etc/Makefile. * mh/ (SUBDIRS): Add etc. Move mhlib_DATA and related statements to mh/etc/ * mh/comp.c (formfile): Remove const qualifier. (opt_handler): Use mh_find_file to set formfile. * mh/forw.c: Likewise. * mh/mh_init.c (mh_find_file): Make sure *resolved_name is always set to the last tried name. * mh/tests/ Remove directory components from the -from argument. * mh/tests/ Likewise. * mh/tests/ Likewise. * mh/tests/ (MH_SETUP): Change mhetcdir value.
2010-11-24mh: fix the use of mhl.forward in forw.Sergey Poznyakoff1
* mh/mhl.forward: New file. * mh/forw.c (mh_option): the -format option is boolean. (mhl_filter): Rename to mhl_filter_file. (opt_handler) <ARG_FORMAT>: Use default mhl.filter. <ARG_NOFORMAT>: Set encap_clear. <ARG_FILTER>: Use mh_find_file to determine filter file name. (finish_draft): Use MHL filter file if encap == encap_mhl. * mh/mh.h (mh_find_file): New prototype. * mh/mh_init.c (mh_find_file): New file. (mh_read_formfile): Use mh_find_file to locate the file. * mh/tests/ Test forw -format. * mh/tests/ Update the -all test. * tests/ (MH_SETUP): Set the "mhetcdir" component. * mh/scan.c (opt_handler): Exit if mh_read_formfile failed.
2010-11-23mh: improve forw; add tests.Sergey Poznyakoff1
* mh/forw.c (options): New option --file. (input_file): New variable. (opt_handler): Handle --file. (finish_draft): Remove a leftover path hack. Implement raw file forwarding. (main): Minor fix. * mh/mh_getopt.c (mh_option_init): Limit match_len to the actual length of the option string. * mh/tests/ New file. * mh/tests/ (TESTSUITE_AT): Add * mh/tests/ Include * mh/tests/ Add more keywords.

Return to:

Send suggestions and report system problems to the System administrator.