[prev in list] [next in list] [prev in thread] [next in thread]
List: inn-workers
Subject: Re: silently ignore duplicate inews via mailpost
From: Julien_ÉLIE <julien () trigofacile ! com>
Date: 2020-12-21 21:49:50
Message-ID: a339e900-fd1f-1f21-7a5c-3824b79b0d0b () trigofacile ! com
[Download RAW message or body]
Hi Harald,
> 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.
As you're using "-c 15" in the call to mailpost, it sleeps during 15
seconds:
CUSTOMER_BOSS: "|/usr/lib/news/bin/mailpost -c 15 -b /var/tmp -x To:CC
example.projects.CUSTOMER_BOSS"
From: anja@example.com (Anja)
Newsgroups: example.projects.CUSTOMER_BOSS
Cc: CUSTOMER_BOSS <CUSTOMER_BOSS@example.com>
Message-ID: <35ad3dd8-c2bb-8f7b-2615-17e95aadf212@example.com>
Thunderbird sends both an article and an e-mail.
So either you have in that order:
1/ a/ message directly posted to the newsgroup
b/ message posted to the newsgroup by mailpost 15s after having
received the e-mail (but then you would have a Duplicate error)
or:
2/ a/ message posted to the newsgroup by mailpost 15s after having
received the e-mail
b/ message directly posted to the newsgroup (but then Anja receives
an error in Thunderbird because of a Duplicate message-ID)
The first case 1/ would be the most frequent, wouldn't it?
Or I'm missing something in the explanation; what would the race
condition be?
--
Julien ÉLIE
« Quand on retire tout ce qu'on a dit, il reste tout ce qu'on n'a pas
dit. » (Philippe Geluck)
_______________________________________________
inn-workers mailing list
inn-workers@lists.isc.org
https://lists.isc.org/mailman/listinfo/inn-workers
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic