Previous | Contents | Index |
filter
Channel Keyword
The filter
channel keyword enables message filtering on
the channels to which it is applied. The keyword has one required
parameter which specifies the path to the filter files associated with
each envelope recipient who receives mail via the channel.
The syntax for the filter
channel keyword is
filter URL-pattern |
URL-pattern
is a URL which, after
processing special substitution sequences, yields the path to the
filter file for a given recipient address.
URL-pattern
can contain special substitution
sequences which, when encountered, are replaced with strings derived
from the recipient address,
local-part@host.domain |
Sequence | Substitution string |
---|---|
$$
|
Substitute in the $ character |
$A ,
$a
|
Substitute in the address,
local-part@
host.domain
|
$D ,
$d
|
Substitute in
host.domain
|
$H ,
$h
|
Substitute in
host
|
$L ,
$l
|
Substitute in
local-part
|
$S ,
$s
|
Substitute in subaddress or folder name. Used for
fileinto channel keyword only.
|
$U ,
$u
|
Substitute in
local-part
less any underscore or tilde prefixes and less any subaddress
postfix
|
$~
|
Substitute in the file path for the home directory associated with the local part of the address |
The filter
channel keyword can be used to specify filters
for the l (lowercase "L"), msgstore, and popstore channels.
Suggested usages of the filter
channel keyword are given
in Section 16.2.1.1 and Section 16.2.1.2.
16.2.1.1 Keyword Usage with the Local Channel
For the local channel, the suggested usage on OpenVMS systems is
filter file:///$~PMDF_MAILBOX_FILTER. |
PMDF_MAILBOX_FILTER.;
and the file will be owned by the user.
On UNIX platforms, the suggested usage is
filter file:///pmdf/user/l/$u.filter |
/pmdf/user/
, under the l
(lowercase L
for "l"ocal channel) subdirectory. The mailbox filter files will be
owed by the user pmdf.
Make sure that the /pmdf/user/l directory is owned by the
user pmdf .
|
16.2.1.2 Keyword Usage with the msgstore and popstore Channels
For a msgstore or popstore channel, use
filter popstore:$U |
The PMDF MessageStore considers subaddresses (see Section 3.1.1.6) to
indicate folders for delivery purposes. For msgstore channels that have
mailbox filtering enabled, use of the Sieve fileinto
operator can be enabled via use of the fileinto
channel
keyword on the channel. The usual usage is:
fileinto $U+$S@$D |
fileinto
enabled would look something like:
msgstore filter popstore:$U fileinto $U+$S@$D messagestore-domain-name |
Previous | Next | Contents | Index |