On Mon, May 18, 2009 at 09:42:08AM -0500, Noel Jones wrote:

> IF /^Received: .*by mail.my.domain/
> IF /no client certificate/
> /(.*)\(No client certificate requested\)(.*)/
>   REPLACE $1 $2
> ENDIF
> ENDIF

This will leave a blank line in the middle of the folded header, which
violates RFC5322. With PCRE:

    # If $mail_name is not "Postfix" adjust accordingly...
    /^(Received: from \S+ \S+ \S+\n\t\([^\n]*\)\n)\t\(No client certificate 
requested\)\n((?:\t\([^\n]*\)\n)*?\tby mail\.example\.com \(Postfix\).*)/
        REPLACE ${1}${2}

This deals with optional "(Authenticated sender: ...)" comments between
the TLS comments and "by mtahost ...". It errs on the side of not removing
the client cert comment if at all in doubt, by making sure that all the
expected elements are in the expected form and place.

This said, the whole thing is a waste of time. Just leave the comment
there, it does no harm.

-- 
        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:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to