From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,f7fbe013ec43293e,start X-Google-Attributes: gidf678f,public X-Google-Thread: fe14c,f7fbe013ec43293e,start X-Google-Attributes: gidfe14c,public X-Google-Thread: fee84,f7fbe013ec43293e,start X-Google-Attributes: gidfee84,public From: iglesias@draco.acs.uci.edu (Mike Iglesias) Subject: Re: mh/packmbox on DEC Alpha OSF/1 Date: 1995/08/30 Message-ID: <422fij$663@news.service.uci.edu>#1/1 X-Deja-AN: 109153242 references: <421vv8$e4j@hacgate2.hac.com> organization: University of California, Irvine newsgroups: comp.mail.mh,comp.unix.osf.osf1,comp.unix.osf.misc In article <421vv8$e4j@hacgate2.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 /' < $m echo "" done exit