Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| util:smbutil [2018/02/15 21:18] – digital man | util:smbutil [2025/04/08 19:26] (current) – Document to the index dump output (or start to at least) digital man | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | The Synchronet Message Base Utility (smbutil) can be used for several things, but most importantly, | + | The Synchronet Message Base Utility ('' |
| - | The '' | + | The '' |
| smbutil maintenance and/or packing should be done using an // | smbutil maintenance and/or packing should be done using an // | ||
| Line 17: | Line 17: | ||
| **WARNING**: | **WARNING**: | ||
| - | All BBS nodes should be offline when using smbutil with the pack option! To do this, set the smbutil event to be ' | + | All BBS nodes should be offline when using smbutil with the pack command! To do this, set the smbutil event to be ' |
| ==== Syntax ==== | ==== Syntax ==== | ||
| - | smbutil [/opts] cmd < | + | smbutil [-opt] [-opt] cmd [cmd] < |
| + | |||
| + | ===Commands=== | ||
| + | |||
| + | One or more commands ('' | ||
| - | ===cmd=== | ||
| < | < | ||
| l[n] = list msgs starting at number n | l[n] = list msgs starting at number n | ||
| Line 29: | Line 32: | ||
| x[n] = dump msg index at number n | x[n] = dump msg index at number n | ||
| v[n] = view msg headers starting at number n | v[n] = view msg headers starting at number n | ||
| + | V[n] = view msg headers starting at number n verbose | ||
| i[f] = import msg from text file f (or use stdin) | i[f] = import msg from text file f (or use stdin) | ||
| e[f] = import e-mail from text file f (or use stdin) | e[f] = import e-mail from text file f (or use stdin) | ||
| Line 36: | Line 40: | ||
| | | ||
| | | ||
| + | | ||
| | | ||
| + | | ||
| | | ||
| p[k] = pack msg base (k specifies minimum packable Kbytes) | p[k] = pack msg base (k specifies minimum packable Kbytes) | ||
| + | | ||
| + | | ||
| </ | </ | ||
| - | ===opts=== | + | |
| + | Commands without values may be concatenated (e.g. '' | ||
| + | |||
| + | == List == | ||
| + | |||
| + | When listing messages. the displayed fields are: | ||
| + | | IndexNum/ | ||
| + | |||
| + | Vote messages (including polls and ballots) are listed with relevant details following '' | ||
| + | |||
| + | When listing files. the displayed fields are: | ||
| + | | IndeNum/ | ||
| + | |||
| + | **Note: | ||
| + | The [DateTime] and [TimeZone] fields are only included with increasing levels of verbosity (use of the '' | ||
| + | |||
| + | == Index == | ||
| + | |||
| + | When dumping a message base index, the display fields are: | ||
| + | |||
| + | | IndexNum | [TypeCode] | FromHex | ToTex | SubjHex | AttrHex | IndexOffsetHex | DateTime | | ||
| + | |||
| + | When the record is **not** a message, the following TypeCode value mapping is displayed: | ||
| + | ^ Code ^ Type ^ | ||
| + | | V | Ballot | | ||
| + | | P | Poll | | ||
| + | | C | Poll-closure | | ||
| + | | F | File | | ||
| + | |||
| + | ===Options=== | ||
| + | |||
| + | Zero or more options ('' | ||
| < | < | ||
| -c[m] = create message base if it doesn' | -c[m] = create message base if it doesn' | ||
| Line 64: | Line 104: | ||
| ====Examples==== | ====Examples==== | ||
| - | === Mainteance | + | === Maintenance |
| for maintenance and packing (100k or more per sub): | for maintenance and packing (100k or more per sub): | ||
| Line 88: | Line 128: | ||
| | | ||
| This command will instruct smbutil to: | This command will instruct smbutil to: | ||
| - | -continue upon error hen opening a corrupted message base | + | -continue upon error when opening a corrupted message base |
| -re-initialize the SMB/status headers of the message base | -re-initialize the SMB/status headers of the message base | ||
| -change/ | -change/ | ||