home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / news / transport / cnews / msgidd / msgidd.shar / ihave.c.diffs next >
Encoding:
Text File  |  1992-07-26  |  1.2 KB  |  67 lines

  1. *** /tmp/,RCSt1a17184    Wed Feb 13 11:37:06 1991
  2. --- ihave.c    Wed Feb 13 11:24:55 1991
  3. ***************
  4. *** 1,8 ****
  5.   #ifndef lint
  6. ! static char    *sccsid = "@(#)$Header: ihave.c,v 1.18 90/12/23 11:49:59 vixie Locked $";
  7.   #endif
  8.   
  9.   #include "common.h"
  10.   
  11.   #ifdef LOG
  12.   int    ih_accepted;
  13. --- 1,11 ----
  14.   #ifndef lint
  15. ! static char    *sccsid = "@(#)$Header: ihave.c,v 1.18 90/12/23 11:49:59 sob Exp $";
  16.   #endif
  17.   
  18.   #include "common.h"
  19. + #ifdef MSGID
  20. + #include "msgid.h"
  21. + #endif /*MSGID*/
  22.   
  23.   #ifdef LOG
  24.   int    ih_accepted;
  25. ***************
  26. *** 23,28 ****
  27. --- 26,32 ----
  28.       char        errbuf[2 * NNTP_STRLEN];
  29.       int        retcode;
  30.       register char    *cp;
  31. +     int        dup = 0;
  32.     
  33.       if (!canxfer)
  34.           {
  35. ***************
  36. *** 42,49 ****
  37.           return;
  38.       }
  39.   
  40. !     cp = gethistent(argv[1], 1);
  41. !     if (cp != NULL) {
  42.           printf("%d Got it.\r\n", ERR_GOTIT);
  43.           (void) fflush(stdout);
  44.   #ifdef LOG
  45. --- 46,66 ----
  46.           return;
  47.       }
  48.   
  49. ! #ifdef MSGID
  50. !     if (msgid(argv[1], MADD))
  51. !         dup++;
  52. ! #endif /*MSGID*/
  53. !     if (!dup) {
  54. !         cp = gethistent(argv[1], 1);
  55. !         if (cp != NULL) {
  56. !             dup++;
  57. ! #ifdef MSGID
  58. !             (void) msgid(argv[1], MOLD);
  59. ! #endif /*MSGID*/
  60. !         }
  61. !     }
  62. !     if (dup) {
  63.           printf("%d Got it.\r\n", ERR_GOTIT);
  64.           (void) fflush(stdout);
  65.   #ifdef LOG
  66.