Re: Milter: Removing multiple headers with the same name

2019-03-04 Thread Vsevolod Stakhov
Wietse, On 04/03/2019 15:34, Wietse Venema wrote: > Vsevolod Stakhov: >> I don't call any library, I have my own implementation of the milter >> protocol. It checks for any errors that could arise but there are no >> errors of course, or I would have not asked this question. > > Could that be a p

Re: Milter: Removing multiple headers with the same name

2019-03-04 Thread Wietse Venema
Vsevolod Stakhov: > I don't call any library, I have my own implementation of the milter > protocol. It checks for any errors that could arise but there are no > errors of course, or I would have not asked this question. Could that be a problem? Before I sink any time into this, does the problem a

Re: Milter: Removing multiple headers with the same name

2019-03-04 Thread Vsevolod Stakhov
On 04/03/2019 15:23, Vsevolod Stakhov wrote: > Bill, > > On 04/03/2019 15:11, Bill Cole wrote: >> On 4 Mar 2019, at 6:58, Vsevolod Stakhov wrote: >> >>> Hello, >>> >>> I'm trying to debug one issue with the milter interface in Postfix. I >>> want to remove multiple headers with the same name, for

Re: Milter: Removing multiple headers with the same name

2019-03-04 Thread Vsevolod Stakhov
Bill, On 04/03/2019 15:11, Bill Cole wrote: > On 4 Mar 2019, at 6:58, Vsevolod Stakhov wrote: > >> Hello, >> >> I'm trying to debug one issue with the milter interface in Postfix. I >> want to remove multiple headers with the same name, for example: >> >> X-Spam-Flag: No >> X-Spam-Flag: No >> X-S

Re: Milter: Removing multiple headers with the same name

2019-03-04 Thread Claus Assmann
On Mon, Mar 04, 2019, Bill Cole wrote: > Again, I have not tested this but I know that chgheader CAN return an error > and would expect it to do so when passed an out-of-range index. Did you check the documentation? > Return values exist for good reasons. One of them is to help novice coders > a

Re: Milter: Removing multiple headers with the same name

2019-03-04 Thread Bill Cole
On 4 Mar 2019, at 6:58, Vsevolod Stakhov wrote: Hello, I'm trying to debug one issue with the milter interface in Postfix. I want to remove multiple headers with the same name, for example: X-Spam-Flag: No X-Spam-Flag: No X-Spam-Flag: Not really X-Spam-Flag: No To do that, I track headers on