Updated scan.highlighted to feed an expression to %(zputlit).
[mmh] / man / flist.man
1 .TH FLIST %manext1% "January 1, 2001" "%nmhversion%"
2 .\"
3 .\" %nmhwarning%
4 .\"
5 .SH NAME
6 flist, flists \- list the number of messages in given sequence(s)
7 .SH SYNOPSIS
8 .HP 5
9 .na
10 .B flist
11 .RI [ +folder1
12 .RI [ +folder2
13 \&...]]
14 .RB [ \-sequence
15 .I name1
16 .RB [ \-sequence
17 .I name2
18 \&...]]
19 .RB [ \-all " | " \-noall ]
20 .RB [ \-showzero " | " \-noshowzero ]
21 .RB [ \-recurse " | " \-norecurse ]
22 .RB [ \-fast " | " \-nofast ]
23 .RB [ \-alpha " | " \-noalpha ]
24 .RB [ \-version ]
25 .RB [ \-help ]
26 .PP
27 .HP 5
28 .B flists
29 is equivalent to
30 .B flist
31 .B \-all
32 .ad
33 .SH DESCRIPTION
34 .B Flist
35 is used to search a list of folders and display the number
36 of messages in these folders that are in a given sequence or set of
37 sequences (for example the
38 .RI \*(lq unseen \*(rq
39 sequence). This is especially
40 useful if you use some mechanism such as
41 .B slocal
42 or
43 .B procmail
44 (typically in conjunction with
45 .BR rcvstore )
46 to pre-sort your mail into different folders before you view it.
47 .PP
48 By default, the command
49 .B flist
50 will search the current folder for the given sequence or sequences (usually
51 .RI \*(lq unseen \*(rq).
52 If (possibly multiple) folders are specified on the command line with
53 .IR +folder ,
54 then all these folders are searched for the given sequence(s).
55 .B Flist
56 will display for each folder searched, the number of messages in each of the
57 specified sequences, and the total number of messages.
58 .PP
59 The option
60 .B \-sequence
61 is used to specify the name of a sequence in
62 which to search for.  This option may be used multiple times to specify
63 multiple sequences.  If this is not given, then the default is to search
64 for all the sequences specified by the
65 .RI \*(lq Unseen-Sequence \*(rq
66 profile component. For more details about sequences, read the
67 .IR mh\-sequence (5)
68 man page.
69 .PP
70 Typically,
71 .B flist
72 will produce a line for each sequence, for every
73 folder that is searched, even those which do not contain any messages in
74 the given sequence.  Specifying
75 .B \-noshowzero
76 will cause
77 .B flist
78 to print only those folder/sequence combinations such the folder has a non-zero
79 number of messages in the given specified sequence.
80 .PP
81 If
82 .B \-recurse
83 is given, then for each folder that is search,
84 .B flist
85 will also recursively descend into those folders to search subfolders
86 for the given sequence.
87 .PP
88 If
89 .B \-fast
90 is given, only the names of the folders searched will be displayed, and
91 .B flist
92 will suppress all other output.  If this option is used in conjunction with
93 .BR \-noshowzero ,
94 then
95 .B flist
96 will only print the names of those folders searched that contain messages in
97 in at least one of the specified sequences..SS "Multiple Folders"
98 If the option
99 .B \-all
100 is given (and no folders are specified with
101 .IR +folder ),
102 then
103 .B flist
104 will search all the folders in the top
105 level of the users nmh directory.  These folders are all preceded by
106 the read\-only folders, which occur as
107 .RI \*(lq atr\-cur\- \*(rq
108 entries in the user's
109 .B nmh
110 context.
111 .PP
112 An example of the output of
113 .B flist
114 .B \-all
115 is:
116 .PP
117 .RS 5
118 .nf
119 /work/Mail  has  5 in sequence unseen (private); out of  46
120 inbox+      has 10 in sequence unseen          ; out of 153
121 junklist    has  0 in sequence unseen          ; out of  63
122 postmaster  has  1 in sequence unseen          ; out of   3
123 .fi
124 .RE
125 .PP
126 The \*(lq+\*(rq after
127 .I inbox
128 indicates that it is the current folder.
129 .PP
130 The \*(lqprivate\*(rq flag indicates that the given sequence for
131 that folder is private.  See the
132 .IR mh\-sequence (5)
133 man page for details about private sequences.
134 .PP
135 If the option
136 .B \-all
137 and
138 .I +folder
139 are both specified, then
140 .B flist
141 will search this folder, and all its first level subfolders for the
142 given sequence.  You may specify multiple folders in this way.
143 .PP
144 If
145 .B flist
146 is invoked by a name ending with \*(lqs\*(rq
147 (e.g.
148 .BR flists ),
149 then the switch
150 .B \-all
151 is assumed by default.
152 .PP
153 The sorting order for the listing is alphabetical (with
154 .BR \-alpha ),
155 or in a priority order defined by the
156 .RI \*(lq Flist-Order \*(rq
157 profile entry (with
158 .BR \-noalpha ).
159 Each item in the
160 .RI \*(lq Flist-Order \*(rq
161 is a folder name or a
162 folder name pattern that uses * to match zero or more characters.
163 Longer matching patterns have precedence over shorter matching patterns.
164 For example:
165 .PP
166 .RS 5
167 .nf
168 Flist-Order: personal petproject mh* * admin *junk
169 .fi
170 .RE
171 .PP
172 This order puts a few interesting folders first, such as those with mail
173 addressed to you personally, those about a pet project, and those about
174 mh-related things.  It places uninteresting folders at the end, and it
175 puts everything else in the middle in alphabetical order.
176 .SH FILES
177 .fc ^ ~
178 .nf
179 .ta \w'%etcdir%/ExtraBigFileName  'u
180 ^$HOME/\&.mh\(ruprofile~^The user profile
181 .fi
182 .SH "PROFILE COMPONENTS"
183 .fc ^ ~
184 .nf
185 .ta 2.4i
186 .ta \w'ExtraBigProfileName  'u
187 ^Path:~^To determine the user's nmh directory
188 ^mh-sequences:~^File that contains public sequences
189 ^Unseen-Sequence:~^The name of the unseen message sequence
190 ^Flist-Order:~^To sort folders by priority
191 .fi
192 .SH "SEE ALSO"
193 .IR folder (1),
194 .IR rcvstore (1),
195 .IR slocal (1),
196 .IR mh\-sequence (5)
197 .SH DEFAULTS
198 .nf
199 .RB ` -sequence "' defaults to Unseen-Sequence profile entry"
200 .RB ` \-showzero '
201 .RB ` \-noall '
202 .RB ` \-norecurse '
203 .RB ` \-noalpha '
204 .RB ` \-nofast '
205 .fi
206 .SH CONTEXT
207 If
208 .I +folder
209 is given, it will become the current folder.
210 If multiple folders are given, the last one specified will
211 become the current folder.