On Fri, Sep 12, 2003 at 02:57:29PM -0500, Ben Lutgens wrote:
> On Wednesday, Sep 10, 2003, at 16:41 US/Central, Bob Tanner wrote:
> 
> >Anyone have a nice procmail receipe for converting uuencoded files 
> >into "real"
> >attachements?
> 
> first hit on google when searching for "procmail uuencode"
> 
> http://www.csoft.net/~dummy/robert/software/procmail/mime.shtml

Which seems to do the opposite of what Bob wants ;).  It uses
uuencode to convert images, etc into text.

This recipe from the third hit
(http://www.procmail.org/SmartList-3.15/SmartList/examples/putfile)
on Google from "procmail uudecode
attachment" does part of what Bob wants:

:0 bw
  * ^Content-Transfer-Encoding:[         ]*(x-)?uuencode
  | sed -e "s:^begin [0-7]*[0-7]\([0-7]\)[0-7].*$:begin 6\14
$file:" | \
     uudecode >$file

which decodes the attachment to a file.  You could then pipe it
through to mpack.  The details of getting it to work shouldn't be
too difficult.

-- 
Jim Crumley                  |Twin Cities Linux Users Group Mailing List (TCLUG)
crumley at fields.space.umn.edu |Minneapolis/St. Paul, Minnesota 
Ruthless Debian Zealot       |http://www.mn-linux.org/ 
Never laugh at live dragons  |Dmitry's free,Jon's next? http://faircopyright.org

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list