home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / HATCH / WT134.ZIP / WWIVTOSS.MOD < prev   
Text File  |  1996-10-18  |  5KB  |  91 lines

  1. Simple mod to bypass BY: line problems with WWIV/Fido.
  2.  
  3. ** Note: This mod has been proposed to Wayne Bell for inclusion in
  4.         WWIV 4.25.  WWIVToss will function normally with or without
  5.         this mod in place.  Addition of this mod will allow you to
  6.         modify your standard BY: line without worrying about messing
  7.         up Outgoing Fidonet messages.
  8.  
  9. ** Note: As of 9/4/96, this mod has been made a standard feature in WWIV
  10.         starting with 4.25!!!!!
  11.  
  12. Most WWIV/Fido programs require the BY: line to correctly set the TO:
  13. field in Fidonet messages.  However, a lot of people like to modify
  14. their BY: line, which forces outgoing messages for Fidonet to have
  15. the TO: field set to ALL...which ticks Fidonetters off to no end.
  16.  
  17. This mod fixes that problem.  It inserts a hidden code (diamond-0)
  18. in the beginning of a message which contains the name of the author
  19. of the post which is being responded to.  This code is only inserted
  20. if one of the export-to networks is a FIDONET type in INIT. (See warning
  21. at end of document!)
  22.  
  23. WWIVToss will look for either BY: or the FidoAddr: line when
  24. trying to determine the Fidonet TO: field.  Since the FidoAddr:
  25. field is placed BEFORE the RE: and BY: lines, WWIVToss will give
  26. preference to that, falling back on the BY: line if it cannot find the
  27. FidoAddr: line.
  28.  
  29. This code is invisible to the user, as it is hidden with a diamond-0
  30. code, much like the Network Routing Information.  It is stripped out
  31. when exporting to Fidonet, and will not be seen by anybody except
  32. the WWIVToss Program.  The amount of bytes it adds to a message will
  33. be negligible, as we are talking about a maximum of 80 characters
  34. per message.  Since this code will generally only appear in
  35. messages posted from a system that is running WWIVToss, the effect
  36. on networks will be non-existent.
  37.  
  38. In MSGBASE.C:
  39.         in function 'void inmsg(etc)'
  40.  
  41.     At approximately line #938 (stock code)
  42.  
  43.     if (irt[0]) {                                               /* Exists */
  44.       if (irt_name[0] && strcmp(aux, "EMAIL"))                  /* Add */
  45.       {                                                         /* Add */
  46.           if (xsubs[curlsub].num_nets)                          /* Add */
  47.           {                                                     /* Add */
  48.               for (i=0; i<xsubs[curlsub].num_nets; i++)         /* Add */
  49.               {                                                 /* Add */
  50.                     xnp=&xsubs[curlsub].nets[i];                /* Add */
  51.                     if (net_networks[xnp->net_num].type)        /* Add */
  52.                     {                                           /* Add */
  53.                         sprintf(s,"0FidoAddr: %s",irt_name);   /* Add */
  54.                         addline(b,s,&l1);                       /* Add */
  55.                         break;                                  /* Add */
  56.                     }                                           /* Add */
  57.               }                                                 /* Add */
  58.           }                                                     /* Add */
  59.       }                                                         /* Add */
  60.       sprintf(s,"%s%s",get_string(940),irt);                    /* Exists */
  61.       addline(b,s,&l1);                                         /* Exists */
  62.       if (irt_sub[0]) {                                         /* Exists */
  63.         sprintf(s,"%s%s", get_string(1509), irt_sub);           /* Exists */
  64.         addline(b,s,&l1);                                       /* Exists */
  65.       }                                                         /* Exists */
  66.  
  67.       if (irt_name[0] && strcmp(aux, "EMAIL")) {                /* Exists */
  68.         sprintf(s,"%s%s",get_string(941),irt_name);             /* Exists */
  69.         addline(b,s,&l1);                                       /* Exists */
  70.       }                                                         /* Exists */
  71.       addline(b,"",&l1);                                        /* Exists */
  72.     }                                                           /* Exists */
  73.                                                                 /* Exists */
  74.     if (fsed) {                                                 /* Exists */
  75.  
  76. And that's all there is to it.
  77.  
  78.         *** Important Note: As of this writing (WWIV Ver. 4.24a and Net
  79.         Ver 36), there are some bugs in the way the WWIV Software works.
  80.         If you want to gate a sub on Fidonet, you MUST either turn OFF
  81.         Network Validation, or set the network type in INIT to WWIVNET.
  82.         For some reason, the network2 software does NOT set the "Net Val"
  83.         flag on incoming Fidonet messages.  And if the sub is set for
  84.         Network Validation and the network type is Fidonet, messages will
  85.         NOT be gated across to non-Fidonet networks.  Therefore, if you
  86.         want to gate a Fidonet echo to WWIV or vice-versa, you MUST either
  87.         set Network Validation to NO or set the network type to WWIVNet.
  88.         I am in the process of talking to Wayne and getting this changed.
  89.         ***
  90.  
  91.