Red Hat LINUX 7.2 - OFFICIAL LINUX CUSTOMIZATION GUIDE Guida di Installazione Pagina 215

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 214
Chapter 16. Email 215
be performed. Conditions are checked based on the flags set in the recipe’s first line. Optional special
characters placed after the * character can further control the condition.
The
action-to-perform specifies what is to happen to a message if it matches one of the
conditions. There can only be one action per recipe. In many cases, the name of a mailbox is used
here to direct matching messages into that file, effectively sorting the email. Special action characters
may also be used before the action is specified.
16.5.2.1. Delivering vs. Non-Delivering Recipes
The action used if the recipe matches a particular message determines whether recipe is considered
delivering or non-delivering. A delivering recipe contains an action that writes the message to a file,
sends the message to another program, or forwards the message to another email address. A non-
delivering recipe covers any other actions, such as when a nesting block is used. A nesting block is an
action contained in braces { } that designates additional actions to perform on messages that match
the recipe’s conditions. Nesting blocks can be nested, providing greater control for identifying and
performing actions on messages.
Delivering recipes that match messages causes Procmail to perform the action specified and stop
comparing the message against any other recipes. Messages that match conditions in non-delivering
recipes will continue to be compared against other recipes in the current and following rc files. In
other words, non-delivering recipes cause the message to continue through the recipes after the spec-
ified action is taken on it.
16.5.2.2. Flags
Flags are very important in determining how or if a recipe’s conditions are compared to a message.
The following flags are commonly used:
A Specifies that this recipe will only be used if the last previous recipe without an A or a flag
also matched this message.
To ensure that the action on this last previous matching recipe was successfully completed before
allowing a match on the current recipe, use the a flag instead.
B — Parse the body of the message and look for matching conditions.
b Use the body in any resulting action, such as writing the message to a file or forwarding it.
This is the default behavior.
c — Generate a carbon copy of the email. This is useful with delivering recipes, since the required
action can be performed on the message and a copy of the message can continue being processed
in the rc files.
D Makes the egrep comparison case-sensitive. By default, the comparison process is not case-
sensitive.
E — Similar to the A flag, except that the conditions in this recipe are only compared to the message
if the immediately preceding recipe without an E flag did not match. This is comparable to an else
action.
Use the e flag instead if you only want this recipe checked if the preceding recipe matched but the
action failed.
f — Uses the pipe as a filter.
H — Parses the header of the message and looks for matching conditions. This occurs by default.
h — Uses the header in a resulting action. This is the default behavior.
w Tells Procmail to wait for the specified filter or program to finish and report whether or not it
was successful before considering the message filtered.
Vedere la pagina 214
1 2 ... 210 211 212 213 214 215 216 217 218 219 220 ... 281 282

Commenti su questo manuale

Nessun commento