Commit 0baee414 0baee414bcfa5dac5cb309e86800ada84f0eaefa by Sergey Poznyakoff

Update

1 parent 4fe27f2a
2006-05-17 Sergey Poznyakoff <gray@gnu.org.ua>
* mh/folder.c: Improve compatibility with nmh: if a folder is
specified along with -all, set the recursion depth to 2 (unless
-recurse has also been given).
(print_header,print_total): Default to -1
(recurse): Removed in favor of max_depth.
(has_folder,max_depth): New variable.
(OPTION_IS_SET): New macro.
(opt_handler): Updated for new variable usage.
(_scan): Depth argument is now size_t
Take into account max_depth.
(action_print): Use OPTION_IS_SET with the three-state variables
(main): Properly set/clear show_all and max_depth.
2006-05-16 Sergey Poznyakoff <gray@gnu.org.ua>
* mh/folder.c (opt_handler): Allow -noheader and -nototal to be
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002, 2003,
2005 Free Software Foundation, Inc.
2005, 2006 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -877,6 +877,10 @@ main (int argc, char **argv)
opt_handler, NULL, &index);
if (has_folder)
{
/* If a +folder is given along with the -all switch, folder will, in
addition to setting the current folder, list the top-level
subfolders for the current folder (with -norecurse) or list all
sub-folders under the current folder recursively (with -recurse). */
if (show_all && max_depth)
max_depth = 2;
show_all = 0;
......