Re: Aging Dependencies?

Wolfgang Denk <[email protected]> Fri, 20 Apr 2012 16:31:12 +0200
Newsgroups gmane.mail.exmh.user,gmane.mail.exmh.devel
Message-ID <[email protected]>
Dear Ken Hornstein,

In message <[email protected]> you wrote:
>
> It looks like the issues are: either mmencode needs a home, or we need to
> switch exmh to a package that is more recent than the first Clinton
> administration.
> 
> It occurs to me that mmencode could have a home in nmh (well, I guess exmh
> uses "mimencode", but same thing really).  Although I see exmh can use
> recode if available.  Maybe this is a non-problem?

Eventually the attached script is sufficient?


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
All this doesn't alter anything, you know. The world is still full of
stupid people. They don't use their brains. They don't seem  to  want
to think straight.                    - Terry Pratchett, _Soul Music_

_______________________________________________
Exmh-users mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/exmh-users
mmencode (text/plain, 610 B)
#!/bin/sh

# Synopsis:
#	mimencode [-u] [-b] [-q] [file name]
#
# -u : decode rather than encode
# -b : use "base64" encoding (default)
# -q : use "quoted-printable" encoding

# Default: encode to base64
ENCODE="../base64"
DECODE="/base64.."

ACTION="encode"

while [ $# -gt 0 ]
do
	case "$1" in
	-u)	ACTION="decode"
		shift
		;;
	-b)	ENCODE="../base64"
		DECODE="/base64.."
		shift
		;;
	-q)	ENCODE="../qp"
		DECODE="/qp.."
		shift
		;;
	--)	shift
		break
		;;
	*)	break
		;;
	esac
done

if [ ${ACTION} = "encode" ]
then
	CONVERT="${ENCODE}"
else
	CONVERT="${DECODE}"
fi

cat "$@" | recode -f -q "${CONVERT}"