On 11/27/01 11:23 AM, David Champion sat at the `puter and typed:
> On 2001.11.27, in <[EMAIL PROTECTED]>,
>       "Thomas Roessler" <[EMAIL PROTECTED]> wrote:
> > 
> > This probably depends on the particular uudecode implementation you 
> > are using...  I've seen uudecode only decode the _first_ attachment.
> 
> Some uudecodes even choke if there's any material in the input stream
> before the "begin" line. These wouldn't accept a full mail message very
> nicely. OTOH, it's been a long time since I noticed one of these; maybe
> they're all extinct.

From uudecode(1) on FreeBSD:

. . .
     Uudecode transforms uuencoded files (or by default, the standard input)
     into the original form.  The resulting file is named name and will have
     the mode of the original file except that setuid and execute bits are not
     retained.  Uudecode ignores any leading and trailing lines.

     The following options are available for uudecode:

     -c     Decode more than one uuencode'd file from file if possible.

     -i     Do not overwrite files.

     -p     Decode file and write output to standard output.

     -s     Do not strip output pathname to base filename.  By default
            uudecode deletes any prefix ending with the last slash '/' for
            security purpose.
. . .

So this version will ignore leading and trailing data, and the -c flag
I used in my example will tell  it to decode multiple encoded files if
possible.

uudeview is another option, as Thomas pointed out, I've used this when
downloading Loony Toons  and old Betty Boop  cartoons from newsgroups.
Just tag all the messages, save them  all to a single file. Then, from
the command line, uudeview will sort  them, attach parts, and save the
decoded portions. I haven't figured out wether it's better to use this
for my email decodings, tho. YMMV

HTH
Lou
-- 
Louis LeBlanc               [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org                     ԿԬ

Hitchcock's Staple Principle:
  The stapler runs out of staples only while you are trying to
  staple something.

Attachment: msg20727/pgp00000.pgp
Description: PGP signature

Reply via email to