Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: mh/packmbox on DEC Alpha OSF/1
  1995-08-30  4:00 mh/packmbox on DEC Alpha OSF/1 schulman
@ 1995-08-30  4:00 ` Mike Iglesias
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Iglesias @ 1995-08-30  4:00 UTC (permalink / raw)


In article <421vv8$e4j@hacgate2.hac.com>,  <schulman@madmax.hrl.hac.com> wrote:
>
>Does anyone have a packmbox binary for the Alpha?

packmbox is a shell script.  I've included it below.  There is no
man page for it.


-- 
Mike Iglesias                        Internet:    iglesias@draco.acs.uci.edu
University of California, Irvine     phone:       (714) 824-6926
Office of Academic Computing         FAX:         (714) 824-2069


#! /bin/sh
# packmbox - pack an MH folder back into a UUCP-style mbox
# @(#)$Id: packmbox.sh,v 1.16 1992/02/14 17:05:31 jromine Exp $
#
# Defaults:
#    `+folder'	defaults to current folder
#    `msgs' 	defaults to all
#
# Context:
#    Current-Folder
#
# for simplicity (and speed) we don't parse command-line args (much)
case $#/$1 in
   1/-h*) echo "syntax: packmbox [+folder] [msgs] [-help]" 1>&2; exit 0;;
esac

format="%(msg) From \
%<{return-path}%(putstr)%|\
%<(nonnull(mbox{from}))%(putstr)%|nobody%>@\
%<(nonnull(host{from}))%(putstr)%|nowhere%>%> \
%(day{date}) %(month{date}) %2(mday{date}) \
%02(hour{date}):%02(min{date}):%02(sec{date}) \
%(void(year{date}))%<(gt 100)%4(putnum)%|19%02(putnum)%>"

trap 'rm -f /tmp/packm$$; exit 1' 1 2 3 15

scan -noclear -noheader -noreverse -width 256 \
			-format "${format}" $* >/tmp/packm$$
# tricky -- you must do this "cd" after scan has updated the context
cd `mhpath`

exec </tmp/packm$$
rm -f /tmp/packm$$
while read m f
do
    echo "$f"
    sed -e '/^From /s/^/>/' < $m
    echo ""
done
exit



^ permalink raw reply	[flat|nested] 2+ messages in thread

* mh/packmbox on DEC Alpha OSF/1
@ 1995-08-30  4:00 schulman
  1995-08-30  4:00 ` Mike Iglesias
  0 siblings, 1 reply; 2+ messages in thread
From: schulman @ 1995-08-30  4:00 UTC (permalink / raw)



Does anyone have a packmbox binary for the Alpha?

Maybe packmbox is a recent addition that is newer
than the MH version supplied by DEC?

Anyway, I would like if at all possible to avoid
rebuilding MH just for this one addition.

If some kind soul would email me a uuencoded version
I would really appreciate it. (manpage too, if possible).

Thanks much,

Joel
schulman@madmax.hrl.hac.com




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-08-30  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-30  4:00 mh/packmbox on DEC Alpha OSF/1 schulman
1995-08-30  4:00 ` Mike Iglesias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox