Steps for installing the na-net software on your own system.


1).  You need to modify the configuration file on your system
     so that all mail beginning with "na" is send to the 
     program "namailer".   The sendmail configuration file
     used on our system can be found in the file "sendmail.cf"


2).  You need to insert the following two lines in a cron file.

     56 23 * * * /usr/cfs1/nanet/CRON/daily_mail
     * * * * * /usr/cfs1/nanet/nanet_daemon

     The first entry causes the daily usage report to be send to
     all people in the file usage.addresses.

     The second entry checks every minute to see if any new
     mail messages have arrived.
 

3).  You will need to change all path names pointing to files.
     e.g.

     fp_message = fopen("/usr/cfs1/nanet/message.txt", "w");
        to 
     fp_message = fopen("???", "w");


4).  We recommend setting up 2 accounts.  One called "nanet" and the other 
     something like "nacomb".  The second one is where the digest is send from.  
     The reason is because a lot of mail my be returned.  We are currently 
     getting around one megabyte of error messages every month.  Mail returned 
     to this account "nacomb" is then deleted immediately.  The main 
     reason for this is because some addresses are "exploders", which causes 
     mail sent to some addresses to be forwarded to yet more addresses
     Examples of exploder addresses are:  nagroup@cs.ucla.edu and  
     num-analysis@aerospace.aero.org.  The problem is with these lists and 
     not the na-net software.

5).  Create a file /usr/spool/mail/collect.
     This is where all mail send to na.digest will be stored.


The following summarizes the files used in the nanet.

~nanet
-----
addresses.txt       -- contains the addresses of all people who should receive the current 
                       message (usually only one address).  However, when someone changes 
                       their address, mail is sent to both the old and new address. 
convert*            -- updates all files when a change occurs 
convert.c           -- source code 
debug               -- contains debug information on all mail send today
debug1              -- contains debug information on all mail send yesterday
debug2              -- contains debug information on all mail send 2 days ago 
debug3              -- contains debug information on all mail send 3 days ago 
debug4              -- contains debug information on all mail send 4 days ago 
debug5              -- contains debug information on all mail send 5 days ago 
debug6              -- contains debug information on all mail send 6 days ago 
help.txt            -- help file for using the nanet.  
incoming.mail       -- all mail received in the past minute.   
log.txt             -- log of all messages sent to the nanet.    
message.txt         -- the message to be returned or forwarded 
namailer*           -- is invoked by sendmail 
namailer.c          -- source code 
nanet.c             -- source code for nanet
nanet.o             -- executable     
netlib.database     -- not yet implemented
netlib.help         -- help information on the whitepages 
Makefile            -- for compiling the nanet code        
README              -- the file you are currently reading     
nanet_daemon*       -- is invoked every minute     
netlib.o            -- executable
nanet_daemon.c      -- source code - invoked every minute      
next_mail.message   -- processes the next incoming nanet mail 
process.mail        -- contains all mail that has not been processed yet.
nanet_names.comb    -- combined list of all nanet members   
nanet_names.master  -- master file of members 
nanet_names.na      -- sorted according to nanet key. 
nanet_names.lasti   -- list of all nanet members according to lastname    
send_mail*          -- executable
store               -- temporarily stores the current message
temp.nanet_update   -- used for updating a file
temp.netlib_update  -- used for updating a file
netlib.c            -- for the whitepages not yet implemented.




~nanet/CRON
-----------
daily_mail.c        -- source code which provides an analysis of that days mail 
usage.addresses     -- addresses where the analysis will be send.
usage.txt           -- the message to be sent
daily_mail*         -- executable 


~nacomb
---------------
message.txt         -- the digest message
send_digest*        -- executable  
send_one_message.c  -- sends the digest to one person
nanet_names.comb    -- a list of all people who should receive the digest 
send_digest.c       -- source code 
README              -- instruction on reading and operating the digest 
next.address        -- the address of the next person who should receive the digest. 
send_one_message*   -- executable


