From: Victor Duchovni (no email)
Date: Thu Jun 09 2005 - 08:45:41 EDT
On Thu, Jun 09, 2005 at 03:29:23PM +0300, Atte Peltomaki wrote:
> In the filter script, where the mail is shoveled in, I pipe it to
> maildrop in this fashion:
>
> cat mail | maildrop -A "`gen_hdr.py`" ./.mailfilter | $SENDMAIL BLAA
Replace with:
set -e
# on systems that don't have mktemp, build one!
tmp=`mktemp /tmp/mail.XXXXXX`
trap "rm -f $tmp" 0
maildrop -A "`gen_hdr.py`" ./.mailfilter < mail > $tmp
/usr/sbin/sendmail -i "$@" < $tmp
Pipe content can be truncated with the reader unable to distiguish
message end from premature termination of the filter.
-- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:?body=unsubscribe%20postfix-users>
|
|
|