1 .TH FOLDER %manext1% 2016-08-29 "%nmhversion%"
6 folder, folders \- set/list current nmh folder/message
15 .RB [ \-all " | " \-noall ]
16 .RB [ \-create " | " \-nocreate ]
17 .RB [ \-fast " | " \-nofast ]
18 .RB [ \-header " | " \-noheader ]
19 .RB [ \-recurse " | " \-norecurse ]
20 .RB [ \-total " | " \-nototal ]
21 .RB [ \-list " | " \-nolist ]
22 .RB [ \-push " | " \-pop ]
23 .RB [ \-pack " | " \-nopack ]
25 .RB [ \-verbose " | " \-noverbose ]
37 switch (the default), it lists: the current folder, the number
38 of messages in it and their range (low-high), the folder's
39 current message, and an indication of extra files, if any.
44 .ta \w'/rnd/phyl/Mail/EP 'u +\w'has ddd messages 'u +\w'(ddd\-ddd); 'u
45 inbox+ has \016 messages (\0\03\-\022); cur=\0\05.
53 are specified, they will become the current folder and/or message.
56 argument is given, this corresponds to a \*(lqcd\*(rq operation
59 argument is given, this corresponds roughly to a \*(lqpwd\*(rq
60 operation in the shell.)
62 If the specified (or default) folder doesn't exist,
64 will ask the user if the folder should be created; when
65 standard input is not a tty, the answer is assumed to be
71 to create new folders without query.
72 (This is an easy way to create an empty folder for later use.)
77 to print an error message and exit without creating a folder.
79 .\" note - this doesn't work at present
80 .\" If `\-noprint' is specified,
81 .\" a `+folder' and/or `msg' may still be specified
82 .\" to set the current folder and/or message,
83 .\" but the folder summary will not be printed.
84 .SS "Multiple Folders"
87 will produce a summary line for each top-level folder in the user's
89 directory, sorted alphabetically. (If
91 is invoked by a name ending with \*(lqs\*(rq (e.g.
94 is assumed.) Specifying
98 will include a line for all sub-folders.
99 These folders are all preceded by any read-only folders, which occur as
100 .RI \*(lq atr\-cur\- \*(rq
101 entries in the user's
103 context. For example:
107 .ta \w'/rnd/phyl/Mail/EP 'u +\w'has ddd messages 'u +\w'(ddd\-ddd); 'u
108 FOLDER \0\0\0\0\0\0# MESSAGES RANGE CUR (OTHERS)
109 /var/work/folder has \035 messages (\01\-\035); cur=23.
110 /usr/bugs/Mail has \082 messages (\01\-108); cur=82.
111 ff has \0no messages.
112 inbox+ has \016 messages (\03\-\022); cur=\05.
113 mh has \076 messages (15\-\076); cur=70.
114 notes has \0\02 messages (\01\-\0\02); cur=\01.
115 ucom has 124 messages (\01\-124); cur=\06; (others).
116 .ta \w'/rnd/phyl/Mail/EP has 'u
117 TOTAL = 339 messages in 7 folders
121 The \*(lq+\*(rq after
123 indicates that it is the current folder.
124 The \*(lq(others)\*(rq indicates that the folder
126 contains files which aren't messages;
127 these may either be sub-folders, or files that
128 don't belong under the
132 The header is output if either the
136 switches are specified. It is suppressed by
139 The folder and message totals are output if either the
143 switches are specified. They are suppressed by
148 is given, only the folder name (or names, in the case of
151 (This is faster because the folders need not be read.)
159 will, in addition to setting the current folder, list the top-level
160 sub-folders for the current folder (with
162 or list all sub-folders under the current folder recursively (with
167 is supplied, together with
171 it will become the current message of
173 (if it had been supplied)
174 or the current folder.
178 switch lists each folder recursively, so its use effectively
179 defeats the speed enhancement of
181 since each folder must be searched for sub-folders.
182 Nevertheless, the combination of these options is useful.
183 .SS "Compacting a Folder"
186 switch will compress the message names in the designated folders,
187 removing holes in message numbering. The
191 to tell the user the general actions it is taking to compress the folder.
192 .SS "The Folder Stack"
197 to push the current folder
202 argument the current folder. If
204 is not given, the current folder and the
207 are exchanged. This corresponds to the
208 \*(lqpushd\*(rq operation in the shell.
214 to discard the top of the
216 after setting the current folder to that value.
219 argument is allowed. This corresponds to the \*(lqpopd\*(rq
220 operation in the shell. The
224 switches are mutually exclusive: the last occurrence of either one
225 overrides any previous occurrence of the other.
226 The use of either of these switches also sets
238 argument is allowed. After a successful
244 action is taken, unless a
246 switch follows them on the command line. This corresponds
247 to the \*(lqdirs\*(rq operation in the shell. The
258 .SH "PROFILE COMPONENTS"
262 To determine the user's nmh directory.
265 To find the default current folder.
268 To set mode when creating a new folder.
271 To determine the folder stack.
272 .\" ^lsproc:~^Program to list the contents of a folder
319 are given, they will become the current folder and/or message.
321 There is no way to restore the default behavior
322 (to ask the user whether to create a non-existent folder)