π FLIST(1mh)
flist, flists β list the number of nmh messages in given sequences
| Use Case | Command | Description |
|---|---|---|
| π List unseen messages in current folder | flist | Shows count of unseen messages in current folder |
| π List unseen messages in all folders | flists or flist -all | Shows count of unseen messages across all folders |
| π Search specific folders | flist +folder1 +folder2 | Search specified folders for sequences |
| π Only show folders with messages | flist -noshowzero | Suppress output for folders with zero messages in sequence |
| π Recursive search through subfolders | flist -recurse | Search subfolders recursively |
| β‘ Fast mode β folder names only | flist -fast | Display only folder names, suppress counts |
| π€ Alphabetical sort | flist -alpha | Sort folders alphabetically |
| π― Priority sort via profile | flist -noalpha | Sort using Flist-Order profile entry |
flist [-help] [-version] [+folder1 [+folder2 ...]] [-sequence name1 [-sequence name2 ...]]
[-all | -noall] [-showzero | -noshowzero] [-recurse | -norecurse] [-fast | -nofast]
[-alpha | -noalpha]
flists is equivalent to flist -all
π flist is used to search a list of folders and display the number of messages in these folders that are in a given sequence or set of sequences (for example the βunseenβ sequence). This is especially useful if you use some mechanism such as slocal or procmail (typically in conjunction with rcvstore) to pre-sort your mail into different folders before you view it.
π By default, the command flist will search the current folder for the given sequence or sequences (usually βunseenβ). If (possibly multiple) folders are specified on the command line with +folder, then all these folders are searched for the given sequence(s). π flist will display for each folder searched, the number of messages in each of the specified sequences, and the total number of messages.
π·οΈ The -sequence switch specifies the sequence to which messages should belong. This switch may be given multiple times to specify multiple sequences. If it is not given, then the default is to search for all the sequences specified by the βUnseen-Sequenceβ profile component. For more details about sequences, read the mh-sequence(5) man page.
π Typically, flist will produce a line for each sequence, for every folder that is searched, even those which do not contain any messages in the given sequence. Specifying -noshowzero will cause flist to print only those folder/sequence combinations where the folder has a non-zero number of messages in the given sequence.
π If -recurse is given, then for each folder that is searched, flist will also recursively descend into those folders to search subfolders for the given sequence.
β‘ If -fast is given, only the names of the folders searched will be displayed, and flist will suppress all other output. If this option is used in conjunction with -noshowzero, then flist will only print the names of those folders searched that contain messages in at least one of the specified sequences.
π If the -all switch is given (and no folders are specified with +folder), then flist will search all the folders in the top level of the users nmh directory. These folders are all preceded by the read-only folders, which occur as βatr-cur-β entries in the user's nmh context.
π An example of the output of flist -all is:
/work/Mail has 5 in sequence unseen (private); out of 46
inbox+ has 10 in sequence unseen ; out of 153
junklist has 0 in sequence unseen ; out of 63
postmaster has 1 in sequence unseen ; out of 3
β The β+β after inbox indicates that it is the current folder.
π The βprivateβ flag indicates that the given sequence for that folder is private. See the mh-sequence(5) man page for details about private sequences.
π If the option -all and +folder are both specified, then flist will search this folder, and all its first level subfolders for the given sequence. You may specify multiple folders in this way.
π If flist is invoked by a name ending with βsβ (e.g. flists), then the switch -all is assumed by default.
π€ The sorting order for the listing is alphabetical (with -alpha), or in a priority order defined by the βFlist-Orderβ profile entry (with -noalpha). Each item in the βFlist-Orderβ is a folder name or a folder name pattern that uses * to match zero or more characters. Longer matching patterns have precedence over shorter matching patterns. For example:
Flist-Order: personal petproject mh* * admin *junk
π This order puts a few interesting folders first, such as those with mail addressed to you personally, those about a pet project, and those about mh-related things. It places uninteresting folders at the end, and it puts everything else in the middle in alphabetical order.
$HOME/.mh_profile β The user's profile.π If +folder is given, it will become the current folder. If multiple folders are given, the last one specified will become the current folder.
π nmh-1.7.1 Β· 1999-04-30 Β· FLIST(1mh)
Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-04 18:43 @216.73.216.150
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)