Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] garbled envelope-from in milter-greylist 4.0.1

2008-09-12 by manu@netbsd.org

Petar Bogdanovic <petar@...> wrote:

> It only happens when the envelope from contains a `=':

That chunk of code could be the culprit, in milter-greylist.c. However,
I have trouble to see where it could be wrong.

        /*
         * Strip anything before the last '=' in the
         * source address. This avoid problems with
         * mailing lists using a unique sender address
         * for each retry.
         */
        if ((idx = rindex(tmpfrom, '=')) == NULL)
                idx = tmpfrom; 
        
        strncpy(priv->priv_from, idx, ADDRLEN);
        priv->priv_from[ADDRLEN] = '\0';

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.