Examples

The following examples are copied from the procmailex man-page. Feel free to have a look into it (actually it is quite a good idea). Of course we changed the wording a bit (to fit it into the queueing idea).

Sort out all mail coming from the scuba-dive mailing list into the scuba queue.
:0
* ^TOscuba
| formail -I "X-OTRS-Queue: scuba"
Forward all mail from peter about compilers into the william queue.
:0
* ^From.*peter
* ^Subject:.*compilers
| formail -I "X-OTRS-Queue: william"
And here a last example.
# --
# Examples for queue presorting.
# --

:0 fhw :
* ^List-Id:.*OpenAntiVirus
| formail -I "X-OTRS-Queue: OpenAntiVirus"

:0 fhw :
* ^Sender:.*example.com
| formail -I "X-OTRS-Queue: example"

:0 fhw :
* TO:.*BUGTRAQ
| formail -I "X-OTRS-Queue: BUGTRAQ"
Please have a look into the procmailex man-page for more examples.