mail2sms offers search and replace, conditional rules, conditional search and
replace etc to create a custom output. It can optionally pipe its output into
a specified program.
All this is controlled with the config file, which this man page intend to
The config file contains a series of control commands.
Each entry has the form:
Values are either written plainly and whitespaces left and right of the words
are cut off, or within quotes ("). If the value is quoted, you must escape
quotes to be able to have them in the string, as in: " \" ".
This is the command that sets or control a certain item or the flow of the
config file starting from here.
This parameter depends on the command. It may also be left out depending on
Fields should be separated by any number of
TAB characters and a colon (:).
The available commands are of a few different kinds, and therefore this
description has a few different sections that describe the commands in each
(number sign) indicates the beginning of a comment; characters up to the end
of the line are not interpreted by routines which parses the file.
Basically, there are two kinds of keywords. The first is the one read and
dealt with in real-time when read, they may also build strings that define
output format, command to run etc.. The other type is the keywords that build
a tree of regular expressions with accompanying actions. It is important to
understand the difference.