8 Sep
2011
8 Sep
'11
12:45 p.m.
On Thu, 2011-09-08 at 12:41 +0300, Timo Sirainen wrote:
I'm not aware of any such bugs ever existing in dovecot-lda. You could check this by having Exim internally deliver mails from that site to some other maildir/mbox file, and check if the empty line exists there also. I don't know the specifics of how to configure Exim this way.
Oh, or another possibility: instead of executing dovecot-lda directly, execute dovecot-lda.sh which contains something like (warning: totally untested):
#!/bin/sh
tmpfile=mktemp
cat > $tmpfile
if grep -q ^From.*transfer.ro; then
cp $tmpfile /tmp/transfer.ro.date +%s
fi
/usr/local/libexec/dovecot/dovecot-lda "$@" < $tmpfile ret=$? rm -f $tmpfile exit $ret