home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / misc / 22181 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.4 KB  |  43 lines

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!arakis.fdn.org!gamb.fdn.org!diablo!ld
  3. From: ld@diablo.fdn.org (Laurent Demay)
  4. Subject: Re: NeXTmail format ?
  5. Message-ID: <1992Nov20.183309.3354@diablo.fdn.org>
  6. Sender: ld@diablo.fdn.org (Laurent Demay)
  7. Reply-To: ld@diablo.fdn.org (Laurent Demay)
  8. Organization: Home
  9. References: <1992Nov19.141907.4918@cs.mcgill.ca>
  10. Date: Fri, 20 Nov 1992 18:33:09 GMT
  11. Lines: 30
  12.  
  13. In article <1992Nov19.141907.4918@cs.mcgill.ca> popaul@cs.mcgill.ca (Paul  
  14. Terray) writes:
  15. > I read my mail through different system so I cannot use NeXTmail, but as
  16. > I use elm, I can filter all NeXTmail to another program. But what I want
  17. > to know is the format of the NeXTmail. I know it is uuencode with index
  18. > containing the text, but I don't know anything about the header.
  19. > Could someone help me ?
  20.  
  21. I get a script Readmail it extract the attachments and read the index.rtf witch is the main file of the mail.
  22.  
  23. #!/bin/csh
  24. if ( $#argv != 1 ) then 
  25.     echo usage: "readmail filename"
  26. else
  27.     set uudecodename=`awk ' /^begin [0-9]/ { print $3 } ' $1`
  28.  
  29.     uudecode $1
  30.     chmod 600 $uudecodename
  31.     mv $uudecodename ${uudecodename}.Z
  32.     uncompress ${uudecodename}.Z
  33.     tar xf $uudecodename
  34.     /usr/bin/rtf-ascii index.rtf  | more
  35. endifReadmail it extract the attachments and read
  36. -- 
  37. Laurent Demay (NeXT developer) |    I
  38. voice     : (33 1) 45 74 43 07 |   /_\
  39. fax       : (33 1) 44 09 80 73 |  / _ \ 
  40. NeXT-mail : ld@diablo.fdn.org  | / / \ \ PARIS (FRANCE)
  41.