From 05fec6c1ab3c9701cb029b352b441c7e5294335c Mon Sep 17 00:00:00 2001 From: in2 Date: Thu, 12 Feb 2004 07:14:52 +0000 Subject: discard duplicated articles git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1530 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- innbbsd/bbslink.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'innbbsd') diff --git a/innbbsd/bbslink.c b/innbbsd/bbslink.c index 93655560..51bdb3a7 100644 --- a/innbbsd/bbslink.c +++ b/innbbsd/bbslink.c @@ -847,7 +847,8 @@ post_article(node, site, sover, textline) bbslog(" :Err: %d %s of <%s>\n", status, (char *)tcpmessage(), msgid); if (Verbose) printf(":Err: %d %s of <%s>\n", status, (char *)tcpmessage(), msgid); - if (!strstr(tcpmessage(), "Article not posted")) + if (!strstr(tcpmessage(), "Article not posted")&& + !strstr(tcpmessage(), "Duplicate")) queuefeed(node, textline); return 0; } @@ -861,7 +862,8 @@ post_article(node, site, sover, textline) return 0; } else { bbslog(" :Err: %d %s of <%s>\n", status, (char *)tcpmessage(), msgid); - if (!strstr(tcpmessage(), "Article not posted")) + if (!strstr(tcpmessage(), "Article not posted")&& + !strstr(tcpmessage(), "435 Duplicate")) queuefeed(node, textline); return 0; } @@ -874,7 +876,8 @@ post_article(node, site, sover, textline) bbslog(" :Err: %d %s of <%s>\n", status, (char *)tcpmessage(), msgid); if (Verbose) printf(":Err: %d %s of <%s>\n", status, (char *)tcpmessage(), msgid); - if (!strstr(tcpmessage(), "Article not posted")) + if (!strstr(tcpmessage(), "Article not posted")&& + !strstr(tcpmessage(), "Duplicate")) queuefeed(node, textline); return 0; } -- cgit v1.2.3