silently ignore duplicate inews via mailpost

Harald Dunkel harald.dunkel at aixigo.com
Mon Dec 21 09:45:34 UTC 2020


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


More information about the inn-workers mailing list