home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / mail / elm / 4187 < prev    next >
Encoding:
Text File  |  1993-01-24  |  2.0 KB  |  40 lines

  1. Newsgroups: comp.mail.elm
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!ddsw1!dattier
  3. From: dattier@ddsw1.mcs.com (DWT)
  4. Subject: Re: Tag and uuencoded files
  5. Message-ID: <C1CFAo.4oG@ddsw1.mcs.com>
  6. Date: Sun, 24 Jan 1993 05:30:23 GMT
  7. References: <1993Jan21.183512.26171@greco-prog.fr>
  8. Organization: Contributor Account at ddsw1, Chicago, Illinois  60657
  9. Lines: 29
  10.  
  11. mendez@taliesin.greco-prog.fr (Marc Mendez) wrote in
  12. <1993Jan21.183512.26171@greco-prog.fr>:
  13.  
  14. | I would like to uudecode files I receive by mail. But I need to keep
  15. | the order of the files (which is not respected all the time in the mail
  16. | list). Can I tag files in the order I want and then uudecode them
  17. | (with a pipe, I suppose) ? If yes, how ?
  18.  
  19. First, there should be no need to uudecode the files in any particular order.
  20. The "begin" header of a uuencode gives the name that the uudecoded file will
  21. have, and if the uuencodes were part of a single distribution every single
  22. one will have a unique name in its "begin" header for the uudecoded version
  23. of its own contents.
  24.  
  25. Second, tagging and piping won't work with uudecode.  It's not Elm's fault:
  26. it's uudecode's problem.  If you tag and pipe, Elm assembles a text of all
  27. tagged messages (in the order of the current display) separated by a row of
  28. hyphens between each two messages and pipes that to one invocation of the
  29. program you specify.  uudecode sees the "end" directive at the bottom of the
  30. first message, exits, and ignores the rest of the pipe.  There is no provision 
  31. in the uuencode standard for "next" or "continue" to mean 'close off the file
  32. you've been writing but look for another file's "begin" line coming up.'
  33.  
  34. formail, which is part of the procmail distribution, can split up a pipe or
  35. an input file into separate messages.  I take care of the task by tagging the
  36. messages and piping them to formail -s uudecode.
  37.  
  38. David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
  39. dattier@ddsw1.mcs.com    CompuServe: 73720,1570    MCI Mail: 426-1818
  40.