Send inn-workers mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.isc.org/mailman/listinfo/inn-workers
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of inn-workers digest..."
Today's Topics:
1. Re: silently ignore duplicate inews via mailpost (Harald Dunkel)
----------------------------------------------------------------------
Message: 1
Date: Mon, 21 Dec 2020 10:45:34 +0100
From: Harald Dunkel <[email protected]>
To: [email protected]
Subject: Re: silently ignore duplicate inews via mailpost
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed
Hi Julien,
On 12/18/20 11:10 PM, Julien ?LIE wrote:
>
> Is it possible for you to modify mailpost?
>
> If that is the case, near line 538, just change:
>
> if (@inews) {
> ??? chomp @inews ;
> ??? mailArtAndDie ("inews failed: @inews") ;
> }
>
> to:
>
> if (@inews) {
> ??? chomp @inews ;
> ??? mailArtAndDie ("inews failed: @inews")
> ??????? unless ($inews[0] =~ /441 435 Duplicate/g);
> }
>
>
> I believe it will fix the problem you're facing.
> Please tell me if that does the trick (now that you know how to reproduce it,
> you may try to trigger it).
>
I have modified mailpost as suggested, but the problem is not that
easy to reproduce. Obviously there is a race condition between
sendmail/mailpost and inews. I would guess that usually sendmail
is faster and that inews dropped the duplicate article without
complaining.
Regards
Harri
------------------------------
Subject: Digest Footer
_______________________________________________
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers
------------------------------
End of inn-workers Digest, Vol 126, Issue 13
********************************************