.SS ASSIGNMENTS
Assignment is specified in a following way:
.P
-.B "Lvalue = Rvalue ;"
+\fILvalue\fB = \fIRvalue\fB ;\fP
.P
Lvalue is a variable identifier. Rvalue can be variable, a constant (either a
string constant that must be given in double quotes or an integer) or an
.B "-> ;"
means "deliver the e-mail to the default mailbox and exit".
.TP
-.B "-> expression ;"
+\fB-> \fIexpression\fB ;\fP
means "deliver the e-mail the mailbox specified behind arrow and exit"
.TP
-\fB->\fI pipe \fBexpression ;\fP
+\fB-> pipe \fIexpression\fB ;\fP
means "pipe the e-mail to the external program specified behind pipe
keyword". Output of the program is stored in
.B $LAST_OUTPUT
.B $LAST_EXIT_CODE
variable.
.TP
-\fB-> \fIfilter\fB expression\fB ;\fP
+\fB-> filter \fIexpression\fB ;\fP
means "pipe the e-mail to the external program and replace it with output of the program". All the header variables,
.B $MAIL_LEN
and
.B $LAST_EXIT_CODE
are set accordingly.
.TP
-\fB-> \fIdiscard\fB ;\fP
+\fB-> discard ;\fP
means just "discard the email and exit".
.TP
-\fB -> \fImail\fB expression ;\fP
+\fB-> mail \fIexpression\fB ;\fP
means "forward the e-mail to the address specifed behind the mail keyword and exit"
.TP -1
If action fails, the e-mail is delivered to the default mailbox.
Some of the actions (delivery or forwarding an e-mail) can have keyword copy
in front of the arrow, ie.
.P
-\fIcopy\fB -> $mailbox;\fP
+\fBcopy -> $mailbox ;\fP
.P
When copy is specified, the program does not exit after doing an action but
continues reading the rules. It also does not deliver to the default mailbox if
.SS CONDITIONS
Conditional execution of commands can be specified in a following way:
.P
-\fIif\fB (condition) { ... }
+\fBif (\fIcondition\fB) { \fI...\fB }
.P
-\fIif\fB (condtion) { ... } \fIelse\fB { ... }
+\fBif (\fIcondition\fB) { \fI...\fB } else { \fI...\fB }
.P
-\fIif\fB (condition) { ... } \fIelse if\fB { ... } [ \fIelse\fB { ... } ]\fP
+\fBif (\fIcondition\fB) { \fI...\fB } Ielse if { \fI...\fB } \fI[\fB else { \fI...\fB } \fI]\fP
.P
where the condition can be a constant, a variable or an expression consisting
of following operations: