home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / TELECOM / philmail.lzh / philmail.doc < prev    next >
Text File  |  1992-06-27  |  4KB  |  131 lines

  1. This is the doc file for "philmail"
  2.   V1.0  June 26, 1992
  3.  
  4. philmail is basically a mail reader. 
  5. With one exception. see "SPECIAL", below.
  6. Please read THIS ENTIRE FILE. Inportant information is contained herein.
  7.  
  8. philmail does everything but delete mail articles, because that gets messy.
  9. It DOES save individual articles, however, and also reply, show titles, and
  10. a few more nifty things.
  11. Overall, I consider it a "nice" interface.
  12.  
  13. For optimal use, define the environment variables
  14.  
  15. MAIL     (as your desired mail location, eg /dd/spool/mail/philb)
  16. EDITOR   (your preferred editor to use)
  17.  
  18. As a default, philmail will open up your MAIL file and read the stuff therein.
  19. Also, whenever replying to mail, or just sending mail, it will attempt to 
  20. fork off EDITOR. 
  21.  
  22. If the fork fails, it will attempt to drop back to line mode.
  23. line mode is the traditional 
  24.  
  25. "keep typing until done, edit only the current line"
  26.  
  27. you _MUST_ _DEFINE_ the environment variable "SENDMAIL"
  28. as:
  29.    setenv SENDMAIL /dd/cmds/rmail  (or whereever)
  30. or:
  31.   play with the source in the relavant place
  32.  
  33.  if you want to use this on your home machine , with uucp, instead of
  34.  regular "mail"
  35.  
  36. **OR**:
  37.   you could rename philmail to plain old "mail", and it should
  38. figure out things from there. Note:
  39. you must NOT CALL IT AS  "/dd/cmds/mail" for this to work.
  40. If you DO call it as /dd/cmds/mail, it will not work that way, unless
  41. you have the SENDMAIL var set.
  42.  
  43. UNfortunately, this rmail feature is as yet untested by me :-(
  44.  
  45. but I have confidance in my programming. Do you?  :-)
  46.  
  47.      SPECIAL: 
  48.     ---------
  49. I designed this as an OFF-LINE reader for UNIX systems.
  50. For this purpose, follow the following proceedure:
  51.  [ It SEEMS long.. don't worry, it isn't really]
  52.  
  53.   FIRST, on your UNIX system, 
  54.       a) enter mail
  55.       b) s * mailfile
  56.       c) d *
  57.       d) q
  58.   You now have a file called "mailfile", with all your unread mail.
  59.   
  60.   Now download "mailfile" to your home system any way you like, not
  61.   forgetting to replace UNIX linefeeds with CRs. VERY IMPORTANT.
  62.   
  63.   SECOND, on your HOME system,
  64.      a) read your mail 
  65.         presuming you downloaded it as "mailfile", you can:
  66.           "philmail -f mailfile"
  67.     or just
  68.            "philmail"  
  69.        if your MAIL var is set to "mailfile"
  70.      b) reply to any mail with 'r' or 'R'.  this will make a 
  71.            "mail.xxxxx" for EACH REPLY.
  72.      c) make any NEW, UNRELATED mail by 
  73.          "philmail address@goes.here"
  74.      d) batch upload ALL "mail.xxxx" files.
  75.  
  76.    LASTLY, on the UNIX system,
  77.      You now have a bunch of "mail.xxxx" files on your unix system.
  78.      ( DON'T FORGET TO CR->LF CONVERT)
  79.      luckily, you can very easily use a SIMPLE shell-script to send ALL
  80.      the mail files you made.
  81.      one for "csh" can be made as following
  82.  -------------------------------------------------------
  83. #!/bin/csh
  84. # this is a file, I call it "sendallmail"
  85. # you must set it executable by "chmod 0755 sendallmail"
  86. # The "-t" for sendmail, makes it look in the mail for who to send it to
  87. #   instead of telling it on the command line
  88.  
  89. foreach i (mail.*)
  90. /usr/lib/sendmail -t <$i
  91. echo sent "$i"
  92. end
  93.  
  94. # end of file
  95.   ---------------------------------------------
  96. #!/bin/sh
  97. # this is the SAME THING, but using "sh". use EITHER
  98. # this file, or the above file.
  99.  
  100. for i in mail.*
  101. do
  102. /usr/lib/sendmail -t <"$i"
  103. echo send "$i"
  104. done
  105.  
  106. #end of file
  107.  
  108.   --------------------------------------------------
  109.  
  110. I know the csh file works.. the /bin/sh file is a guess.
  111. note that YOUR sendmail may be in a different place. but it shouldn't be.
  112.  
  113.  
  114.    ****************************************
  115. CoCo Porting notes:
  116. Okay, folks for all getenv() values, you're going to have to hardcode.
  117. No big deal. just go for it.
  118. Also, you're going to have to hardcode the char * "progname".
  119. OOPS: ALSO,
  120.   in mail(), "readmail.c"
  121.   you are going to have to substitute something for _getsys();
  122.   No big deal. I use that to make a temporary filename.
  123.   You can just use anything that gets time in seconds.
  124.  
  125.  
  126. Sorry: I do not have an active coco, so I ain't about to go fiddle and 
  127. compile it.
  128.  
  129. So give it a shot yourself! Compile, and enjoy, I hope.
  130.  
  131.