maddy icon indicating copy to clipboard operation
maddy copied to clipboard

Delivery to a system command

Open foxcpp opened this issue 5 years ago • 1 comments

See #157.

For compatibility with existing software, it is a good idea to make our implementation reasonably similar to the Postfix pipe transport: http://www.postfix.org/pipe.8.html

foxcpp avatar Feb 29 '20 23:02 foxcpp

A workaround that seems to work today is to use a system command filter, and deliver to dummy afterwards. As an example, the following copies the message to /tmp/:

msgpipeline copy_to_tmp {
    default_destination {
        check {
            command /usr/bin/cp /dev/stdin /tmp/{msg_id}.txt
        }

        deliver_to dummy
    }
}

cuu508 avatar Jan 29 '24 12:01 cuu508