diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-02-12 15:14:52 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-02-12 15:14:52 +0800 |
commit | 05fec6c1ab3c9701cb029b352b441c7e5294335c (patch) | |
tree | 3e5aec260250599eb4bafca64f183d9247f6d2b3 /innbbsd | |
parent | 00eee2e00b063991da856cd7e93b0274149e46a7 (diff) | |
download | pttbbs-05fec6c1ab3c9701cb029b352b441c7e5294335c.tar pttbbs-05fec6c1ab3c9701cb029b352b441c7e5294335c.tar.gz pttbbs-05fec6c1ab3c9701cb029b352b441c7e5294335c.tar.bz2 pttbbs-05fec6c1ab3c9701cb029b352b441c7e5294335c.tar.lz pttbbs-05fec6c1ab3c9701cb029b352b441c7e5294335c.tar.xz pttbbs-05fec6c1ab3c9701cb029b352b441c7e5294335c.tar.zst pttbbs-05fec6c1ab3c9701cb029b352b441c7e5294335c.zip |
discard duplicated articles
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1530 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd')
-rw-r--r-- | innbbsd/bbslink.c | 9 |
1 files changed, 6 insertions, 3 deletions
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("<bbslink> :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("<bbslink> :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("<bbslink> :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; } |