Co robi FORMAIL użycie. Konsola contents of a mail file to another program, such as a spam filter.

Czy przydatne?

Polecenie formail

Wykonanie, użycie: Filter standard input into mailbox format. Useful for splitting mail digests or passing the contents of a mail file to another program, such as a spam filter, for additional processing. If no sender is apparent, provide the sender foo@bar. By default, escape bogus From lines with >

Opcje wykonania formail w konsoli

+skip

Do not split first skip messages.

-total

Stop after splitting total messages.

-a headerfield

Append headerfield to header, unless it already exists. If headerfield is Message-ID or Resent-Message-ID with no contents, generate a unique message ID.

-b

Do not escape bogus From lines.

-c

When header fields are more than one line long, concatenate the lines.

-d

Do not assume that input must be in strict mailbox format. This option disables recognition of the Content-Length field so you can split digests or use nonstandard mailbox formats.

-e

Allow messages to begin one immediately after the other; do not require empty space between them.

-f

Do not edit non-mailbox-format lines. By default, formail prepends From to such lines.

-i headerfield

Append headerfield whether or not it already exists. Rename each existing headerfield to Old-headerfield, unless it is empty.

-k

For use only with-r. Keep the body as well as the fields specified by -r.

-m minfields

Require at least this many minfields before recognizing the beginning of a new message. Default is 2.

-n

Allow simultaneous formail processes to run.

-p prefix

Escape lines with prefix instead of >.

-q

Do not display write errors, duplicate messages, and mismatched Content-Length fields. This is the default; use -q- to turn it off.

-r

Throw away all existing fields, retaining only X-Loop, and generate autoreply header instead. You can preserve particular fields with the -i option.

-s

Must be the last option; everything following it will be assumed to be its arguments. Divide input to separate mail messages, and pipe them to the program specified or concatenate them to standard output (by default).

-t

Assume sender's return address to be valid. (By default, formail favors machine-generated addresses.)

-u headerfield

Delete all but the first occurrence of headerfield.

-x headerfield

Display the contents of headerfield on a single line.

-z

When necessary, add a space between field names and contents. Remove ("zap") empty fields.

-A headerfield

Append headerfield whether or not it already exists.

-B

Assume that input is in BABYL rmail format.

-D maxlen idcache

Remember old message IDs (in idcache, which will grow no larger than approximately maxlen). When splitting, refuse to output duplicate messages. Otherwise, return true on discovering a duplicate. With -r, look at the sender's mail address instead of the message ID.

-I headerfield

Append headerfield whether or not it already exists. Remove existing fields.

-R oldfield newfield

Change all fields named oldfield to newfield.

-U headerfield

Delete all but the last occurrence of headerfield.

-Y

Format in traditional Berkeley style (i.e., ignore Content-Length fields).

-X headerfield

Display the field name and contents of headerfield on a single line.

Przykłady formail działanie w Słownik polecenie F

Przykład FORMAIL użycie :
Jak użyć the named files so that they are no wider than the specified width. fold breaks lines exactly at the specified width, even in the middle of a word. Reads from standard input when given - as a file co znaczy.
Przykład FORMAIL użycie :
Jak użyć one or more users , including information listed in the files .plan and .project in each user's home directory. You can specify each user either as a login name (exact match) or as a first or krzyżówka.
Przykład FORMAIL użycie :
Jak użyć Analyzer Generator) is a faster variant of lex . It generates a lexical analysis program (named lex.yy.c ) based on the regular expressions and C statements contained in one or more input files . See co to jest.
Przykład FORMAIL użycie :
Jak użyć Display statistics about memory usage: total free, used, physical, swap, shared, and buffers used by the kernel słownik.
Przykład FORMAIL użycie :
Jak użyć Classify the named files according to the type of data they contain. file checks the magic file (usually /usr/share/magic ) to identify some file types czym jest.