{
    my $dt = $DB->get_prop("qmail", "DeliveryType");
    my $di = $DB->get_prop("qmail", "DeliveryInstruction");

    return unless ($dt and $di);

    return unless ($dt eq 'program' and $di eq 'sortspam');

    $DB->set_prop("qmail", "DeliveryType", "");
    $DB->set_prop("qmail", "DeliveryInstruction", "");
}
