test-envelop-subadress-ref.siv 377 Bytes
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1 2 3 4 5 6 7
require "envelope";
require "subaddress";
require "fileinto";

#SCRIPTNAME: Script part 0
# In this example the same user account receives mail for both
# "ken@example.com" and "postmaster@example.com"
8

Laurent Montel's avatar
Laurent Montel committed
9 10 11 12 13 14
# File all messages to postmaster into a single mailbox,
# ignoring the :detail part.
if envelope :user :is "to" "postmaster"
{
    fileinto "inbox.postmaster";
    stop;
Laurent Montel's avatar
Laurent Montel committed
15
}