diff options
author | James Raynard <jraynard@FreeBSD.org> | 1997-11-13 23:14:58 +0000 |
---|---|---|
committer | James Raynard <jraynard@FreeBSD.org> | 1997-11-13 23:14:58 +0000 |
commit | 450506ee5f9211b882d4c30188f1cb288ce61cfa (patch) | |
tree | 9523bca7da6ad5961954c74b376d34caa7e0a430 /news/slurp/files/patch-ad | |
parent | Upgrade, 1.03a -> 1.03e (diff) |
Add site exclusions patches. Some cleanup.
Notes
Notes:
svn path=/head/; revision=8606
Diffstat (limited to 'news/slurp/files/patch-ad')
-rw-r--r-- | news/slurp/files/patch-ad | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/news/slurp/files/patch-ad b/news/slurp/files/patch-ad new file mode 100644 index 000000000000..ee108d18d11f --- /dev/null +++ b/news/slurp/files/patch-ad @@ -0,0 +1,38 @@ +--- newnews.c.orig Sun Nov 9 18:17:14 1997 ++++ newnews.c Sun Nov 9 18:19:29 1997 +@@ -158,10 +158,16 @@ + process_id (char *msgid) + { + char *cp; ++#ifdef SITEEXCLUDING ++ char *host; ++#endif /*SITEXCLUDING*/ + + /* Modify the message id appropriate to C-News history files */ + if ((cp = strchr (msgid, '@')) != NULL) + { ++#ifdef SITEEXCLUDING ++ host = cp; ++#endif /*SITEXCLUDING*/ + for (; *cp != '\0'; cp++) + if (isupper (*cp)) + *cp = tolower (*cp); +@@ -169,6 +175,18 @@ + + if (debug_flag) + (void) fprintf (stderr, "-> %s", msgid); ++ ++#ifdef SITEEXCLUDING ++ if((host)&&(site_check(host))) ++ { ++ if (debug_flag) ++ (void) fprintf (stderr, " (Excluded host %s)", host); ++ /* Excluded host */ ++ site_droparticle(msgid); ++ exclart++; ++ return; ++ } ++#endif /*SITEXCLUDING*/ + + /* If hit maximum cache size, then store in a temporary file */ + #ifdef MAXCACHE |