home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume43 / procmail / part10 < prev    next >
Encoding:
Internet Message Format  |  1994-07-05  |  36.0 KB

  1. From: berg@pool.informatik.rwth-aachen.de (Stephen R. van den Berg)
  2. Newsgroups: comp.sources.misc
  3. Subject: v43i065:  procmail - mail processing package v3.03, Part10/10
  4. Date: 5 Jul 1994 20:50:34 -0500
  5. Organization: Sterling Software
  6. Sender: kent@sparky.sterling.com
  7. Approved: kent@sparky.sterling.com
  8. Message-ID: <2vd2la$igb@sparky.sterling.com>
  9. X-Md4-Signature: 50ef9592f6f7ee106adbdde0ef2fe0ab
  10.  
  11. Submitted-by: berg@pool.informatik.rwth-aachen.de (Stephen R. van den Berg)
  12. Posting-number: Volume 43, Issue 65
  13. Archive-name: procmail/part10
  14. Environment: sendmail, ZMailer, smail, MMDF, mailsurr, UNIX, POSIX
  15. Supersedes: procmail: Volume 38, Issue 19-31
  16.  
  17. #! /bin/sh
  18. # This is a shell archive.  Remove anything before this line, then feed it
  19. # into a shell via "sh file" or similar.  To overwrite existing files,
  20. # type "sh file -c".
  21. # Contents:  procmail-3.03/examples/1procmailrc
  22. #   procmail-3.03/examples/1rmail procmail-3.03/examples/2rmail
  23. #   procmail-3.03/examples/3procmailrc procmail-3.03/examples/3rmail
  24. #   procmail-3.03/examples/dirname procmail-3.03/examples/forward
  25. #   procmail-3.03/man/Makefile procmail-3.03/man/Makefile.0
  26. #   procmail-3.03/man/README procmail-3.03/man/mansed
  27. #   procmail-3.03/patchlevel.h procmail-3.03/src/Makefile
  28. #   procmail-3.03/src/acommon.c procmail-3.03/src/acommon.h
  29. #   procmail-3.03/src/common.h procmail-3.03/src/cstdio.h
  30. #   procmail-3.03/src/ecommon.h procmail-3.03/src/exopen.h
  31. #   procmail-3.03/src/fields.h procmail-3.03/src/formail.h
  32. #   procmail-3.03/src/formisc.h procmail-3.03/src/goodies.h
  33. #   procmail-3.03/src/locking.h procmail-3.03/src/mcommon.c
  34. #   procmail-3.03/src/mcommon.h procmail-3.03/src/network.h
  35. #   procmail-3.03/src/pipes.h procmail-3.03/src/regexp.h
  36. #   procmail-3.03/src/robust.h procmail-3.03/src/shell.h
  37. #   procmail-3.03/src/sublib.h
  38. # Wrapped by kent@sparky on Tue Jul  5 20:42:16 1994
  39. PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin:$PATH ; export PATH
  40. echo If this archive is complete, you will see the following message:
  41. echo '          "shar: End of archive 10 (of 10)."'
  42. if test -f 'procmail-3.03/examples/1procmailrc' -a "${1}" != "-c" ; then 
  43.   echo shar: Will not clobber existing file \"'procmail-3.03/examples/1procmailrc'\"
  44. else
  45.   echo shar: Extracting \"'procmail-3.03/examples/1procmailrc'\" \(644 characters\)
  46.   sed "s/^X//" >'procmail-3.03/examples/1procmailrc' <<'END_OF_FILE'
  47. X# Please check if all the paths in PATH are reachable, remove the ones that
  48. X# are not.
  49. X
  50. XPATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
  51. XMAILDIR=$HOME/Mail    # You'd better make sure it exists
  52. XDEFAULT=$MAILDIR/mbox
  53. XLOGFILE=$MAILDIR/from
  54. XLOCKFILE=$HOME/.lockmail
  55. X
  56. X:0                # Anything from thf
  57. X* ^From.*thf@somewhere.someplace
  58. Xtodd                # will go to $MAILDIR/todd
  59. X
  60. X:0                # Anything from people at uunet
  61. X* ^From.*@uunet
  62. Xuunetbox            # will go to $MAILDIR/uunetbox
  63. X
  64. X:0                # Anything from Henry
  65. X* ^From.*henry
  66. Xhenries                # will go to $MAILDIR/henries
  67. X
  68. X# Anything that has not been delivered by now will go to $DEFAULT
  69. X# using LOCKFILE=$DEFAULT$LOCKEXT
  70. END_OF_FILE
  71.   if test 644 -ne `wc -c <'procmail-3.03/examples/1procmailrc'`; then
  72.     echo shar: \"'procmail-3.03/examples/1procmailrc'\" unpacked with wrong size!
  73.   fi
  74.   # end of 'procmail-3.03/examples/1procmailrc'
  75. fi
  76. if test -f 'procmail-3.03/examples/1rmail' -a "${1}" != "-c" ; then 
  77.   echo shar: Will not clobber existing file \"'procmail-3.03/examples/1rmail'\"
  78. else
  79.   echo shar: Extracting \"'procmail-3.03/examples/1rmail'\" \(400 characters\)
  80.   sed "s/^X//" >'procmail-3.03/examples/1rmail' <<'END_OF_FILE'
  81. X#!/bin/sh
  82. X#
  83. X# specify the mailbox file you want to read on the command line
  84. X#
  85. XMAILDIR=$HOME/Mail
  86. Xcd $MAILDIR
  87. XLOCKFILE=$HOME/.lockmail
  88. Xif lockfile -! -r1 $LOCKFILE
  89. Xthen
  90. X echo Mail is currently arriving, please wait...
  91. X while
  92. X   lockfile -! -4 -r2 $LOCKFILE
  93. X do
  94. X echo Mail is still arriving...
  95. X done
  96. Xfi
  97. Xtrap "rm -f $LOCKFILE;exit 0" 0 1 2 3 15
  98. X#
  99. X# Call you favourite mailer here.
  100. X#
  101. X/usr/ucb/mail -f $*
  102. END_OF_FILE
  103.   if test 400 -ne `wc -c <'procmail-3.03/examples/1rmail'`; then
  104.     echo shar: \"'procmail-3.03/examples/1rmail'\" unpacked with wrong size!
  105.   fi
  106.   # end of 'procmail-3.03/examples/1rmail'
  107. fi
  108. if test -f 'procmail-3.03/examples/2rmail' -a "${1}" != "-c" ; then 
  109.   echo shar: Will not clobber existing file \"'procmail-3.03/examples/2rmail'\"
  110. else
  111.   echo shar: Extracting \"'procmail-3.03/examples/2rmail'\" \(392 characters\)
  112.   sed "s/^X//" >'procmail-3.03/examples/2rmail' <<'END_OF_FILE'
  113. X#!/bin/sh
  114. X#
  115. X# specify the mailbox file you want to read on the command line
  116. X#
  117. XMAILDIR=$HOME/Mail
  118. Xcd $MAILDIR
  119. XLOCKFILE=$1.lock
  120. Xif lockfile -! -r1 $LOCKFILE
  121. Xthen
  122. X echo Mail is currently arriving, please wait...
  123. X while
  124. X   lockfile -! -4 -r2 $LOCKFILE
  125. X do
  126. X echo Mail is still arriving...
  127. X done
  128. Xfi
  129. Xtrap "rm -f $LOCKFILE;exit 0" 0 1 2 3 15
  130. X#
  131. X# Call you favourite mailer here.
  132. X#
  133. X/usr/ucb/mail -f $*
  134. END_OF_FILE
  135.   if test 392 -ne `wc -c <'procmail-3.03/examples/2rmail'`; then
  136.     echo shar: \"'procmail-3.03/examples/2rmail'\" unpacked with wrong size!
  137.   fi
  138.   # end of 'procmail-3.03/examples/2rmail'
  139. fi
  140. if test -f 'procmail-3.03/examples/3procmailrc' -a "${1}" != "-c" ; then 
  141.   echo shar: Will not clobber existing file \"'procmail-3.03/examples/3procmailrc'\"
  142. else
  143.   echo shar: Extracting \"'procmail-3.03/examples/3procmailrc'\" \(1533 characters\)
  144.   sed "s/^X//" >'procmail-3.03/examples/3procmailrc' <<'END_OF_FILE'
  145. X# Please check if all the paths in PATH are reachable, remove the ones that
  146. X# are not.
  147. X
  148. XPATH=$HOME/bin:/usr/bin:/global/bin:/usr/ucb:/bin:/usr/local/bin:
  149. XMAILDIR =    $HOME/Mail    # You'd better make sure it exists
  150. XDEFAULT =    $MAILDIR/mbox
  151. XLOGFILE =    $MAILDIR/from
  152. XLOCKFILE=    $HOME/.lockmail
  153. X
  154. X            # This will create a local lockfile named todd.lock
  155. X:0:            # *if* the condition matches
  156. X* ^From.*thf
  157. Xtodd
  158. X
  159. XLOCKFILE=$MAILDIR/whatever    # This will remove the global lockfile
  160. X                # $HOME/.lockmail and the new lockfile
  161. X                # will be $MAILDIR/whatever
  162. X
  163. X
  164. X                # The next recipe will
  165. X                # filter out all messages from "at"
  166. X                # jobs and will put them in a terse format
  167. X                # (only the date and the body) in
  168. X                # a file called $MAILDIR/atjunk
  169. X:0 fh
  170. X* ^From root
  171. X* ^Subject: Output from "at" job
  172. X|egrep "^Date:"
  173. X                # The next recipe will only be used if
  174. X                # the previous one matched
  175. X:0 A
  176. Xatjunk
  177. X
  178. X
  179. X
  180. XMAILDIR=$HOME/News    # This will change the current directory
  181. X
  182. X
  183. X            # The next recipe will create a local lockfile
  184. X            # named $HOME/News/dustbin.lock (*if* the condition
  185. X            # matches), and will feed the body of the message
  186. X            # through `sort` (sorry, couldn't come up with anything
  187. X            # better :-), after which the result will be
  188. X            # appended to $HOME/News/dustbin
  189. X:0 b:
  190. X* ^Subject:.*rubbish
  191. X|sort >>dustbin
  192. X
  193. X            # The next recipe will use the games directory as a MH
  194. X            # folder (of course you need MH to read the mail then)
  195. X:0
  196. X* ^Subject:.*games
  197. Xgames/.
  198. X
  199. X# Anything not delivered by now will go to $HOME/Mail/mbox
  200. X# Using LOCKFILE=$HOME/Mail/mbox.lock
  201. END_OF_FILE
  202.   if test 1533 -ne `wc -c <'procmail-3.03/examples/3procmailrc'`; then
  203.     echo shar: \"'procmail-3.03/examples/3procmailrc'\" unpacked with wrong size!
  204.   fi
  205.   # end of 'procmail-3.03/examples/3procmailrc'
  206. fi
  207. if test -f 'procmail-3.03/examples/3rmail' -a "${1}" != "-c" ; then 
  208.   echo shar: Will not clobber existing file \"'procmail-3.03/examples/3rmail'\"
  209. else
  210.   echo shar: Extracting \"'procmail-3.03/examples/3rmail'\" \(757 characters\)
  211.   sed "s/^X//" >'procmail-3.03/examples/3rmail' <<'END_OF_FILE'
  212. X#!/bin/sh
  213. X#
  214. X# specify the mailbox file you want to read on the command line
  215. X# Use a relative path from your $HOME directory
  216. X#
  217. X# For this kind of chaotic procmailrc there is no uniform neat solution
  218. X# to determine which lockfiles to use.    I'll give just one (suboptimal)
  219. X# solution here.  Use your imagination to extend it :-).
  220. X#
  221. XMAILDIR=$HOME/Mail
  222. Xcd $HOME            # this means all paths are relative to $HOME
  223. XLOCKFILE=$HOME/.lockmail
  224. XLOCKFILE2=$HOME/Mail/whatever
  225. Xif lockfile -! -r1 $LOCKFILE $LOCKFILE2
  226. Xthen
  227. X echo Mail is currently arriving, please wait...
  228. X while
  229. X   lockfile -! -4 -r2 $LOCKFILE $LOCKFILE2
  230. X do
  231. X echo Mail is still arriving...
  232. X done
  233. Xfi
  234. Xtrap "rm -f $LOCKFILE $LOCKFILE2;exit 0" 0 1 2 3 15
  235. X#
  236. X# Call you favourite mailer here.
  237. X#
  238. X/usr/ucb/mail -f $*
  239. END_OF_FILE
  240.   if test 757 -ne `wc -c <'procmail-3.03/examples/3rmail'`; then
  241.     echo shar: \"'procmail-3.03/examples/3rmail'\" unpacked with wrong size!
  242.   fi
  243.   # end of 'procmail-3.03/examples/3rmail'
  244. fi
  245. if test -f 'procmail-3.03/examples/dirname' -a "${1}" != "-c" ; then 
  246.   echo shar: Will not clobber existing file \"'procmail-3.03/examples/dirname'\"
  247. else
  248.   echo shar: Extracting \"'procmail-3.03/examples/dirname'\" \(537 characters\)
  249.   sed "s/^X//" >'procmail-3.03/examples/dirname' <<'END_OF_FILE'
  250. X#! /bin/sh
  251. X: &&O='cd .' || exec /bin/sh "$0" $argv:q # we're in a csh, feed myself to sh
  252. X$O || exec /bin/sh "$0" "$@"          # we're in a buggy zsh
  253. X#########################################################################
  254. X#    dirname        A substitute, for the deprived            #
  255. X#                                    #
  256. X#    Created by S.R. van den Berg, The Netherlands            #
  257. X#########################################################################
  258. X#$Id: dirname,v 1.3 1994/05/26 14:11:52 berg Exp $
  259. X
  260. Xt=`expr "$1" : "\(.*/\)[^/]*$"`
  261. X
  262. Xif test -z "$t"
  263. Xthen
  264. X  echo .
  265. Xelse
  266. X  echo "$t"
  267. Xfi
  268. END_OF_FILE
  269.   if test 537 -ne `wc -c <'procmail-3.03/examples/dirname'`; then
  270.     echo shar: \"'procmail-3.03/examples/dirname'\" unpacked with wrong size!
  271.   fi
  272.   chmod +x 'procmail-3.03/examples/dirname'
  273.   # end of 'procmail-3.03/examples/dirname'
  274. fi
  275. if test -f 'procmail-3.03/examples/forward' -a "${1}" != "-c" ; then 
  276.   echo shar: Will not clobber existing file \"'procmail-3.03/examples/forward'\"
  277. else
  278.   echo shar: Extracting \"'procmail-3.03/examples/forward'\" \(61 characters\)
  279.   sed "s/^X//" >'procmail-3.03/examples/forward' <<'END_OF_FILE'
  280. X"|IFS=' ';exec /usr/local/bin/procmail -f- #YOUR_LOGIN_NAME"
  281. END_OF_FILE
  282.   if test 61 -ne `wc -c <'procmail-3.03/examples/forward'`; then
  283.     echo shar: \"'procmail-3.03/examples/forward'\" unpacked with wrong size!
  284.   fi
  285.   # end of 'procmail-3.03/examples/forward'
  286. fi
  287. if test -f 'procmail-3.03/man/Makefile' -a "${1}" != "-c" ; then 
  288.   echo shar: Will not clobber existing file \"'procmail-3.03/man/Makefile'\"
  289. else
  290.   echo shar: Extracting \"'procmail-3.03/man/Makefile'\" \(354 characters\)
  291.   sed "s/^X//" >'procmail-3.03/man/Makefile' <<'END_OF_FILE'
  292. X#$Id: Makefile,v 1.6 1994/05/26 14:11:57 berg Exp $
  293. X
  294. XHIDEMAKE=$(MAKE)
  295. X
  296. Xall: init
  297. X    $(HIDEMAKE) make $@
  298. X
  299. X# The only real thing that can be made right now is:
  300. X
  301. Xinit:
  302. X    cd ..; $(MAKE) make init
  303. X
  304. X.PRECIOUS: Makefile
  305. X
  306. XMakefile makefile Makefiles makefiles: init
  307. X
  308. Xprocmail.1 procmailrc.5 procmailsc.5 procmailex.5 lockfile.1 formail.1: init
  309. X    $(HIDEMAKE) make $@
  310. END_OF_FILE
  311.   if test 354 -ne `wc -c <'procmail-3.03/man/Makefile'`; then
  312.     echo shar: \"'procmail-3.03/man/Makefile'\" unpacked with wrong size!
  313.   fi
  314.   # end of 'procmail-3.03/man/Makefile'
  315. fi
  316. if test -f 'procmail-3.03/man/Makefile.0' -a "${1}" != "-c" ; then 
  317.   echo shar: Will not clobber existing file \"'procmail-3.03/man/Makefile.0'\"
  318. else
  319.   echo shar: Extracting \"'procmail-3.03/man/Makefile.0'\" \(560 characters\)
  320.   sed "s/^X//" >'procmail-3.03/man/Makefile.0' <<'END_OF_FILE'
  321. X
  322. X#$Id: Makefile.0,v 1.8 1994/05/26 14:11:59 berg Exp $
  323. X
  324. Xall: $(MANSS)
  325. X
  326. Xmake:
  327. X    @$(SHELL) -c "exit 0"
  328. X
  329. X.PRECIOUS: Makefile
  330. X
  331. X../config.check:
  332. X    @cd ..; $(MAKE) config.check
  333. X
  334. Xman.sed: man_sed
  335. X
  336. Xman_sed:
  337. X    @cd ../src; $(MAKE) ../man/man.sed
  338. X
  339. Xclean:
  340. X    $(RM) $(MANSS) man.sed* _Makefile core
  341. X
  342. XMakefile: ../Makefile Makefile.0
  343. X    @echo "You have made changes to the master Makefile, in order for"
  344. X    @echo "these changes to show through, you will first have to do:"
  345. X    @echo "$(MAKE) makefiles"
  346. X
  347. Xmakefiles Makefiles makefile:
  348. X    cd ..; $(MAKE) makefiles
  349. X
  350. Xinit:
  351. X    cd ..; $(MAKE) $@
  352. END_OF_FILE
  353.   if test 560 -ne `wc -c <'procmail-3.03/man/Makefile.0'`; then
  354.     echo shar: \"'procmail-3.03/man/Makefile.0'\" unpacked with wrong size!
  355.   fi
  356.   # end of 'procmail-3.03/man/Makefile.0'
  357. fi
  358. if test -f 'procmail-3.03/man/README' -a "${1}" != "-c" ; then 
  359.   echo shar: Will not clobber existing file \"'procmail-3.03/man/README'\"
  360. else
  361.   echo shar: Extracting \"'procmail-3.03/man/README'\" \(428 characters\)
  362.   sed "s/^X//" >'procmail-3.03/man/README' <<'END_OF_FILE'
  363. XPlease note that the *.man files in this directory still need to be converted
  364. Xinto their *.1 and *.5 counterparts.  You can convert them by typing "make" in
  365. Xthis directory or in the directory above.
  366. X
  367. XThe man pages *.1 and *.5 can then be displayed as readable plain text
  368. Xby typing something like this:
  369. X
  370. X    nroff -man procmail.1
  371. X
  372. Xor they can be moved to man directories in your MANPATH to be be viewed with
  373. Xthe normal man command.
  374. END_OF_FILE
  375.   if test 428 -ne `wc -c <'procmail-3.03/man/README'`; then
  376.     echo shar: \"'procmail-3.03/man/README'\" unpacked with wrong size!
  377.   fi
  378.   # end of 'procmail-3.03/man/README'
  379. fi
  380. if test -f 'procmail-3.03/man/mansed' -a "${1}" != "-c" ; then 
  381.   echo shar: Will not clobber existing file \"'procmail-3.03/man/mansed'\"
  382. else
  383.   echo shar: Extracting \"'procmail-3.03/man/mansed'\" \(1512 characters\)
  384.   sed "s/^X//" >'procmail-3.03/man/mansed' <<'END_OF_FILE'
  385. X#! /bin/sh
  386. X:
  387. X#$Id: mansed,v 1.21 1994/05/26 14:12:03 berg Exp $
  388. X
  389. Xif test -z "$IFS"
  390. Xthen IFS=" \
  391. X    \
  392. X
  393. X"
  394. X  export IFS
  395. Xfi
  396. X
  397. Xtest 5 != $# &&
  398. X echo "Don't start this script directly, use \`make'" && exit 1
  399. X
  400. XSHELL=$1
  401. XSRC="$2"
  402. XDEST="$3"
  403. XRM="$4"
  404. XDEVNULL=$5
  405. Xexport SHELL SRC DEST RM DEVNULL
  406. X
  407. Xif test ! -f "$DEST"
  408. Xthen
  409. X trap "$RM \"$DEST\";exit 1" 1 2 3 15
  410. Xfi
  411. X
  412. X(cat <<\HERE
  413. X.\"if n .pl +(135i-\n(.pu)
  414. X.de Id
  415. X.ds Rv \\$3
  416. X.ds Dt \\$4
  417. X..
  418. X.rn SH Sh
  419. X.de SH
  420. X.br
  421. X.ne 11
  422. X.Sh "\\$1"
  423. X..
  424. X.rn SS Ss
  425. X.de SS
  426. X.br
  427. X.ne 10
  428. X.Ss "\\$1"
  429. X..
  430. X.rn TP Tp
  431. X.de TP
  432. X.br
  433. X.ne 9
  434. X.Tp \\$1
  435. X..
  436. X.rn RS Rs
  437. X.de RS
  438. X.na
  439. X.nf
  440. X.Rs
  441. X..
  442. X.rn RE Re
  443. X.de RE
  444. X.Re
  445. X.fi
  446. X.ad
  447. X..
  448. X.de Sx
  449. X.PP
  450. X.ne \\$1
  451. X.RS
  452. X..
  453. X.de Ex
  454. X.RE
  455. X.PP
  456. X..
  457. X.ex
  458. XHERE
  459. Xcat "$SRC"
  460. Xexpr "X$DEST" : '.*[18]$' >$DEVNULL && cat <<HERE
  461. X.Sh SOURCE
  462. XThis program is part of the
  463. X.I procmail mail-processing-package
  464. X(@PM_VERSION@) available at your nearest USENET comp.sources.misc archive, or
  465. Xat ftp.informatik.rwth-aachen.de as
  466. X.BR pub/packages/procmail/procmail.tar.gz .
  467. X.Sh MAILINGLIST
  468. XThere exists a mailinglist for questions relating to any program in the
  469. Xprocmail package:
  470. X.RS
  471. X@PM_MAILINGLIST@
  472. X.RS
  473. Xfor submitting questions/answers.
  474. X.RE
  475. X@PM_MAILINGLISTR@
  476. X.RS
  477. Xfor subscription requests.
  478. X.RE
  479. X.RE
  480. XHERE
  481. Xcat <<HERE
  482. X.Sh AUTHOR
  483. XStephen R. van den Berg at RWTH-Aachen, Germany
  484. X.Rs
  485. X@MY_MAIL_ADDR@
  486. X.\" @MY_ALT_MAIL_ADDR@
  487. X.Re
  488. X.\".if n .pl -(\n(.tu-1i)
  489. XHERE
  490. X )| sed -f man.sed |
  491. X if test -f man.sed.1
  492. X then
  493. X   sed -f man.sed.0 | sed -f man.sed.1
  494. X else
  495. X   sed -f man.sed.0
  496. X fi >"$DEST"
  497. X
  498. Xif test -f "$DEST"
  499. Xthen
  500. X exit 0
  501. Xelse
  502. X exit 1
  503. Xfi
  504. END_OF_FILE
  505.   if test 1512 -ne `wc -c <'procmail-3.03/man/mansed'`; then
  506.     echo shar: \"'procmail-3.03/man/mansed'\" unpacked with wrong size!
  507.   fi
  508.   chmod +x 'procmail-3.03/man/mansed'
  509.   # end of 'procmail-3.03/man/mansed'
  510. fi
  511. if test -f 'procmail-3.03/patchlevel.h' -a "${1}" != "-c" ; then 
  512.   echo shar: Will not clobber existing file \"'procmail-3.03/patchlevel.h'\"
  513. else
  514.   echo shar: Extracting \"'procmail-3.03/patchlevel.h'\" \(517 characters\)
  515.   sed "s/^X//" >'procmail-3.03/patchlevel.h' <<'END_OF_FILE'
  516. X#define VERSION "\
  517. Xprocmail v3.03 1994/06/30 written and created by Stephen R. van den Berg\n\
  518. X\t\t\t\tberg@pool.informatik.rwth-aachen.de\n\
  519. X\n\
  520. XSubmit questions/answers to the procmail-related mailinglist by sending to:\n\
  521. X\tprocmail@informatik.rwth-aachen.de\n\
  522. X\n\
  523. XAnd of course, subscription and information requests for this list to:\n\
  524. X\tprocmail-request@informatik.rwth-aachen.de\n"
  525. X
  526. X/* If the formatting or number of newlines of VERSION substantially changes,
  527. X   src/manconf.c needs to be changed as well */
  528. END_OF_FILE
  529.   if test 517 -ne `wc -c <'procmail-3.03/patchlevel.h'`; then
  530.     echo shar: \"'procmail-3.03/patchlevel.h'\" unpacked with wrong size!
  531.   fi
  532.   # end of 'procmail-3.03/patchlevel.h'
  533. fi
  534. if test -f 'procmail-3.03/src/Makefile' -a "${1}" != "-c" ; then 
  535.   echo shar: Will not clobber existing file \"'procmail-3.03/src/Makefile'\"
  536. else
  537.   echo shar: Extracting \"'procmail-3.03/src/Makefile'\" \(361 characters\)
  538.   sed "s/^X//" >'procmail-3.03/src/Makefile' <<'END_OF_FILE'
  539. X#$Id: Makefile,v 1.7 1994/05/26 14:12:19 berg Exp $
  540. X
  541. XHIDEMAKE=$(MAKE)
  542. X
  543. Xall: init
  544. X    $(HIDEMAKE) make $@
  545. X
  546. X# The only real thing that can be made right now is:
  547. X
  548. Xinit:
  549. X    cd ..; $(MAKE) make init
  550. X
  551. X.PRECIOUS: Makefile
  552. X
  553. XMakefile makefile Makefiles makefiles: init
  554. X
  555. Xprocmail lockfile formail multigram mailstat setid ../autoconf.h \
  556. Xautoconf.h: init
  557. X    $(HIDEMAKE) make $@
  558. END_OF_FILE
  559.   if test 361 -ne `wc -c <'procmail-3.03/src/Makefile'`; then
  560.     echo shar: \"'procmail-3.03/src/Makefile'\" unpacked with wrong size!
  561.   fi
  562.   # end of 'procmail-3.03/src/Makefile'
  563. fi
  564. if test -f 'procmail-3.03/src/acommon.c' -a "${1}" != "-c" ; then 
  565.   echo shar: Will not clobber existing file \"'procmail-3.03/src/acommon.c'\"
  566. else
  567.   echo shar: Extracting \"'procmail-3.03/src/acommon.c'\" \(1339 characters\)
  568.   sed "s/^X//" >'procmail-3.03/src/acommon.c' <<'END_OF_FILE'
  569. X/************************************************************************
  570. X *    Some routine common to procmail, formail and lockfile        *
  571. X *                                    *
  572. X *    Copyright (c) 1993-1994, S.R. van den Berg, The Netherlands    *
  573. X *    #include "../README"                        *
  574. X ************************************************************************/
  575. X#ifdef RCS
  576. Xstatic /*const*/char rcsid[]=
  577. X "$Id: acommon.c,v 1.2 1994/06/28 16:55:56 berg Exp $";
  578. X#endif
  579. X#include "includes.h"
  580. X#include "acommon.h"
  581. X#include "robust.h"
  582. X#include "shell.h"
  583. X
  584. Xconst char*hostname P((void))
  585. X{
  586. X#ifdef    NOuname
  587. X#ifndef MAXHOSTNAMELEN
  588. X#define MAXHOSTNAMELEN    64
  589. X#endif
  590. X  static char name[MAXHOSTNAMELEN];
  591. X  gethostname(name,MAXHOSTNAMELEN);name[MAXHOSTNAMELEN-1]='\0';
  592. X#else
  593. X  struct utsname names;static char*name;
  594. X  if(name)
  595. X     free(name);
  596. X  Uname(&names);
  597. X  if(!(name=malloc(strlen(names.nodename)+1)))
  598. X     return "";              /* can happen when called from within lockfile */
  599. X  strcpy(name,names.nodename);
  600. X#endif
  601. X  return name;
  602. X}
  603. X
  604. Xchar*ultoan(val,dest)unsigned long val;char*dest;     /* convert to a number */
  605. X{ register i;                     /* within the set [0-9A-Za-z-_] */
  606. X  do
  607. X   { i=val&0x3f;               /* collating sequence dependency! */
  608. X     *dest++=i+(i<10?'0':i<10+26?'A'-10:i<10+26+26?'a'-10-26:
  609. X      i==10+26+26?'-'-10-26-26:'_'-10-26-27);
  610. X   }
  611. X  while(val>>=6);
  612. X  *dest='\0';
  613. X  return dest;
  614. X}
  615. END_OF_FILE
  616.   if test 1339 -ne `wc -c <'procmail-3.03/src/acommon.c'`; then
  617.     echo shar: \"'procmail-3.03/src/acommon.c'\" unpacked with wrong size!
  618.   fi
  619.   # end of 'procmail-3.03/src/acommon.c'
  620. fi
  621. if test -f 'procmail-3.03/src/acommon.h' -a "${1}" != "-c" ; then 
  622.   echo shar: Will not clobber existing file \"'procmail-3.03/src/acommon.h'\"
  623. else
  624.   echo shar: Extracting \"'procmail-3.03/src/acommon.h'\" \(138 characters\)
  625.   sed "s/^X//" >'procmail-3.03/src/acommon.h' <<'END_OF_FILE'
  626. X/*$Id: acommon.h,v 1.1 1994/04/05 15:34:07 berg Exp $*/
  627. X
  628. Xconst char
  629. X *hostname P((void));
  630. Xchar
  631. X *ultoan P((unsigned long val,char*dest));
  632. END_OF_FILE
  633.   if test 138 -ne `wc -c <'procmail-3.03/src/acommon.h'`; then
  634.     echo shar: \"'procmail-3.03/src/acommon.h'\" unpacked with wrong size!
  635.   fi
  636.   # end of 'procmail-3.03/src/acommon.h'
  637. fi
  638. if test -f 'procmail-3.03/src/common.h' -a "${1}" != "-c" ; then 
  639.   echo shar: Will not clobber existing file \"'procmail-3.03/src/common.h'\"
  640. else
  641.   echo shar: Extracting \"'procmail-3.03/src/common.h'\" \(499 characters\)
  642.   sed "s/^X//" >'procmail-3.03/src/common.h' <<'END_OF_FILE'
  643. X/*$Id: common.h,v 1.10 1994/05/26 14:12:28 berg Exp $*/
  644. X
  645. Xvoid
  646. X shexec P((const char*const*argv)),
  647. X detab P((char*p)),
  648. X ultstr P((int minwidth,unsigned long val,char*dest));
  649. Xchar
  650. X *skpspace P((const char*chp));
  651. Xint
  652. X waitfor Q((const pid_t pid)),
  653. X strnIcmp P((const char*a,const char*b,size_t l));
  654. X
  655. X#ifdef NOstrcspn
  656. Xint
  657. X strcspn P((const char*const whole,const char*const sub));
  658. X#endif
  659. X
  660. X#define LENoffset    (TABWIDTH*LENtSTOP)
  661. X#define MAXfoldlen    (LENoffset-STRLEN(sfolder)-1)
  662. X
  663. X#define NO_PROCESS    (-256)
  664. END_OF_FILE
  665.   if test 499 -ne `wc -c <'procmail-3.03/src/common.h'`; then
  666.     echo shar: \"'procmail-3.03/src/common.h'\" unpacked with wrong size!
  667.   fi
  668.   # end of 'procmail-3.03/src/common.h'
  669. fi
  670. if test -f 'procmail-3.03/src/cstdio.h' -a "${1}" != "-c" ; then 
  671.   echo shar: Will not clobber existing file \"'procmail-3.03/src/cstdio.h'\"
  672. else
  673.   echo shar: Extracting \"'procmail-3.03/src/cstdio.h'\" \(376 characters\)
  674.   sed "s/^X//" >'procmail-3.03/src/cstdio.h' <<'END_OF_FILE'
  675. X/*$Id: cstdio.h,v 1.8 1994/05/26 14:12:31 berg Exp $*/
  676. X
  677. Xvoid
  678. X pushrc P((const char*const name)),
  679. X duprcs P((void)),
  680. X closerc P((void)),
  681. X ungetb P((const x)),
  682. X getlline P((char*target));
  683. Xint
  684. X poprc P((void)),
  685. X bopen P((const char*const name)),
  686. X getbl P((char*p)),
  687. X getb P((void)),
  688. X testb P((const x)),
  689. X sgetc P((void)),
  690. X skipspace P((void));
  691. X
  692. Xextern struct dynstring*incnamed;
  693. END_OF_FILE
  694.   if test 376 -ne `wc -c <'procmail-3.03/src/cstdio.h'`; then
  695.     echo shar: \"'procmail-3.03/src/cstdio.h'\" unpacked with wrong size!
  696.   fi
  697.   # end of 'procmail-3.03/src/cstdio.h'
  698. fi
  699. if test -f 'procmail-3.03/src/ecommon.h' -a "${1}" != "-c" ; then 
  700.   echo shar: Will not clobber existing file \"'procmail-3.03/src/ecommon.h'\"
  701. else
  702.   echo shar: Extracting \"'procmail-3.03/src/ecommon.h'\" \(158 characters\)
  703.   sed "s/^X//" >'procmail-3.03/src/ecommon.h' <<'END_OF_FILE'
  704. X/*$Id: ecommon.h,v 1.4 1994/05/26 14:12:33 berg Exp $*/
  705. X
  706. Xvoid
  707. X *tmalloc Q((const size_t len)),
  708. X *trealloc Q((void*old,const size_t len)),
  709. X tfree P((void*a));
  710. END_OF_FILE
  711.   if test 158 -ne `wc -c <'procmail-3.03/src/ecommon.h'`; then
  712.     echo shar: \"'procmail-3.03/src/ecommon.h'\" unpacked with wrong size!
  713.   fi
  714.   # end of 'procmail-3.03/src/ecommon.h'
  715. fi
  716. if test -f 'procmail-3.03/src/exopen.h' -a "${1}" != "-c" ; then 
  717.   echo shar: Will not clobber existing file \"'procmail-3.03/src/exopen.h'\"
  718. else
  719.   echo shar: Extracting \"'procmail-3.03/src/exopen.h'\" \(602 characters\)
  720.   sed "s/^X//" >'procmail-3.03/src/exopen.h' <<'END_OF_FILE'
  721. X/*$Id: exopen.h,v 1.12 1994/05/26 14:12:36 berg Exp $*/
  722. X
  723. Xint
  724. X unique Q((const char*const full,char*p,const mode_t mode,const verbos,
  725. X  const chownit)),
  726. X myrename P((const char*const old,const char*const newn)),
  727. X hlink P((const char*const old,const char*const newn));
  728. X
  729. X#define charsSERIAL    4
  730. X#define UNIQnamelen    (1+charsSERIAL+HOSTNAMElen+1)
  731. X#define bitsSERIAL    (6*charsSERIAL)
  732. X#define maskSERIAL    ((1L<<bitsSERIAL)-1)
  733. X#define rotbSERIAL    2
  734. X#define irotbSERIAL    (1L<<bitsSERIAL-rotbSERIAL)
  735. X#define mrotbSERIAL    ((maskSERIAL&irotbSERIAL-1)+irotbSERIAL)
  736. X
  737. X#define doCHOWN        1
  738. X#define doCHECK        2
  739. X#define doLOCK        4
  740. END_OF_FILE
  741.   if test 602 -ne `wc -c <'procmail-3.03/src/exopen.h'`; then
  742.     echo shar: \"'procmail-3.03/src/exopen.h'\" unpacked with wrong size!
  743.   fi
  744.   # end of 'procmail-3.03/src/exopen.h'
  745. fi
  746. if test -f 'procmail-3.03/src/fields.h' -a "${1}" != "-c" ; then 
  747.   echo shar: Will not clobber existing file \"'procmail-3.03/src/fields.h'\"
  748. else
  749.   echo shar: Extracting \"'procmail-3.03/src/fields.h'\" \(565 characters\)
  750.   sed "s/^X//" >'procmail-3.03/src/fields.h' <<'END_OF_FILE'
  751. X/*$Id: fields.h,v 1.6 1994/05/26 14:12:39 berg Exp $*/
  752. X
  753. Xstruct field
  754. X *findf P((const struct field*const p,struct field**ah)),
  755. X **addfield Q((struct field**pointer,const char*const text,
  756. X  const size_t totlen)),
  757. X *delfield P((struct field**pointer));
  758. Xvoid
  759. X clear_uhead P((struct field*hdr)),
  760. X concatenate P((struct field*const fldp)),
  761. X renfield Q((struct field**const pointer,const size_t oldl,
  762. X  const char*const newname,const size_t newl)),
  763. X flushfield P((struct field**pointer)),
  764. X dispfield P((const struct field*p)),
  765. X addbuf P((void));
  766. Xint
  767. X readhead P((void));
  768. END_OF_FILE
  769.   if test 565 -ne `wc -c <'procmail-3.03/src/fields.h'`; then
  770.     echo shar: \"'procmail-3.03/src/fields.h'\" unpacked with wrong size!
  771.   fi
  772.   # end of 'procmail-3.03/src/fields.h'
  773. fi
  774. if test -f 'procmail-3.03/src/formail.h' -a "${1}" != "-c" ; then 
  775.   echo shar: Will not clobber existing file \"'procmail-3.03/src/formail.h'\"
  776. else
  777.   echo shar: Extracting \"'procmail-3.03/src/formail.h'\" \(1164 characters\)
  778.   sed "s/^X//" >'procmail-3.03/src/formail.h' <<'END_OF_FILE'
  779. X/*$Id: formail.h,v 1.11 1994/05/26 14:12:44 berg Exp $*/
  780. X
  781. X#define Bsize        128
  782. X
  783. X#define NAMEPREFIX    "formail: "
  784. X#define HEAD_DELIMITER    ':'
  785. X
  786. X#define Re        (re+1)
  787. X#define putssn(a,l)    tputssn(a,(size_t)(l))
  788. X#define putcs(a)    (errout=putc(a,mystdout))
  789. X#define lputssn(a,l)    ltputssn(a,(size_t)(l))
  790. X#define PRDO        poutfd[0]
  791. X#define PWRO        poutfd[1]
  792. X#define FLD_HEADSIZ    ((size_t)offsetof(struct field,fld_text[0]))
  793. X
  794. Xstruct saved{const char*const headr;const int lenr;int rexl;char*rexp;};
  795. X
  796. Xextern const char binsh[],sfolder[],couldntw[];
  797. Xextern char ffileno[];
  798. Xextern int errout,oldstdout,quiet,buflast,lenfileno;
  799. Xextern long initfileno;
  800. Xextern pid_t child;
  801. Xextern unsigned long rhash;
  802. Xextern FILE*mystdout;
  803. Xextern int nrskip,nrtotal,retval;
  804. Xextern size_t buflen,buffilled;
  805. Xextern long totallen;
  806. Xextern char*buf,*logsummary;
  807. X
  808. Xextern struct field
  809. X { size_t id_len;
  810. X   union {size_t utot_len;struct field**ufld_ref;} len_fld;
  811. X   struct field*fld_next;
  812. X   char fld_text[255];
  813. X }*rdheader,*xheader,*Xheader,*uheader,*Uheader;
  814. X
  815. X#define tot_len len_fld.utot_len
  816. X#define fld_ref len_fld.ufld_ref
  817. X
  818. Xint
  819. X eqFrom_ P((const char*const a)),
  820. X breakfield Q((const char*const line,size_t len));
  821. END_OF_FILE
  822.   if test 1164 -ne `wc -c <'procmail-3.03/src/formail.h'`; then
  823.     echo shar: \"'procmail-3.03/src/formail.h'\" unpacked with wrong size!
  824.   fi
  825.   # end of 'procmail-3.03/src/formail.h'
  826. fi
  827. if test -f 'procmail-3.03/src/formisc.h' -a "${1}" != "-c" ; then 
  828.   echo shar: Will not clobber existing file \"'procmail-3.03/src/formisc.h'\"
  829. else
  830.   echo shar: Extracting \"'procmail-3.03/src/formisc.h'\" \(542 characters\)
  831.   sed "s/^X//" >'procmail-3.03/src/formisc.h' <<'END_OF_FILE'
  832. X/*$Id: formisc.h,v 1.9 1994/05/26 14:12:49 berg Exp $*/
  833. X
  834. Xvoid
  835. X loadsaved P((const struct saved*const sp)),
  836. X loadbuf Q((const char*const text,const size_t len)),
  837. X loadchar P((const c)),
  838. X elog P((const char*const a)),
  839. X tputssn Q((const char*a,size_t l)),
  840. X ltputssn Q((const char*a,size_t l)),
  841. X lputcs P((const i)),
  842. X startprog P((const char*Const*const argv)),
  843. X nofild P((void)),
  844. X nlog P((const char*const a)),
  845. X logqnl P((const char*const a)),
  846. X closemine P((void)),
  847. X opensink P((void));
  848. Xchar*
  849. X skipwords P((char*start));
  850. Xint
  851. X getline P((void));
  852. END_OF_FILE
  853.   if test 542 -ne `wc -c <'procmail-3.03/src/formisc.h'`; then
  854.     echo shar: \"'procmail-3.03/src/formisc.h'\" unpacked with wrong size!
  855.   fi
  856.   # end of 'procmail-3.03/src/formisc.h'
  857. fi
  858. if test -f 'procmail-3.03/src/goodies.h' -a "${1}" != "-c" ; then 
  859.   echo shar: Will not clobber existing file \"'procmail-3.03/src/goodies.h'\"
  860. else
  861.   echo shar: Extracting \"'procmail-3.03/src/goodies.h'\" \(449 characters\)
  862.   sed "s/^X//" >'procmail-3.03/src/goodies.h' <<'END_OF_FILE'
  863. X/*$Id: goodies.h,v 1.13 1994/05/26 14:12:53 berg Exp $*/
  864. X
  865. Xvoid
  866. X readparse P((char*p,int(*const fpgetc)(),const sarg)),
  867. X ltstr P((const int minwidth,const long val,char*dest)),
  868. X primeStdout P((void)),
  869. X retStdout P((char*const newmyenv)),
  870. X postStdout P((void));
  871. Xconst char
  872. X *sputenv P((const char*const a));
  873. Xdouble
  874. X stod P((const char*str,const char**const ptr));
  875. X
  876. Xextern long Stdfilled;
  877. Xextern const char test[];
  878. X
  879. Xextern const char*Tmnate,*All_args;
  880. END_OF_FILE
  881.   if test 449 -ne `wc -c <'procmail-3.03/src/goodies.h'`; then
  882.     echo shar: \"'procmail-3.03/src/goodies.h'\" unpacked with wrong size!
  883.   fi
  884.   # end of 'procmail-3.03/src/goodies.h'
  885. fi
  886. if test -f 'procmail-3.03/src/locking.h' -a "${1}" != "-c" ; then 
  887.   echo shar: Will not clobber existing file \"'procmail-3.03/src/locking.h'\"
  888. else
  889.   echo shar: Extracting \"'procmail-3.03/src/locking.h'\" \(434 characters\)
  890.   sed "s/^X//" >'procmail-3.03/src/locking.h' <<'END_OF_FILE'
  891. X/*$Id: locking.h,v 1.5 1994/05/26 14:13:03 berg Exp $*/
  892. X
  893. Xvoid
  894. X lockit P((char*name,char**const lockp)),
  895. X lcllock P((void)),
  896. X unlock P((char**const lockp));
  897. Xint
  898. X xcreat Q((const char*const name,const mode_t mode,time_t*const tim,
  899. X  const chownit));
  900. X
  901. X#ifdef NOfcntl_lock
  902. X#ifndef USElockf
  903. X#ifndef USEflock
  904. X#define fdlock(fd)    0
  905. X#define fdunlock()    0
  906. X#endif
  907. X#endif
  908. X#endif
  909. X#ifndef fdlock
  910. Xint
  911. X fdlock P((int fd)),
  912. X fdunlock P((void));
  913. X#endif
  914. END_OF_FILE
  915.   if test 434 -ne `wc -c <'procmail-3.03/src/locking.h'`; then
  916.     echo shar: \"'procmail-3.03/src/locking.h'\" unpacked with wrong size!
  917.   fi
  918.   # end of 'procmail-3.03/src/locking.h'
  919. fi
  920. if test -f 'procmail-3.03/src/mcommon.c' -a "${1}" != "-c" ; then 
  921.   echo shar: Will not clobber existing file \"'procmail-3.03/src/mcommon.c'\"
  922. else
  923.   echo shar: Extracting \"'procmail-3.03/src/mcommon.c'\" \(765 characters\)
  924.   sed "s/^X//" >'procmail-3.03/src/mcommon.c' <<'END_OF_FILE'
  925. X/************************************************************************
  926. X *    Some common routines to all programs but formail        *
  927. X *                                    *
  928. X *    Copyright (c) 1993-1994, S.R. van den Berg, The Netherlands    *
  929. X *    #include "../README"                        *
  930. X ************************************************************************/
  931. X#ifdef RCS
  932. Xstatic /*const*/char rcsid[]=
  933. X "$Id: mcommon.c,v 1.1 1994/04/05 15:35:01 berg Exp $";
  934. X#endif
  935. X#include "includes.h"
  936. X#include "mcommon.h"
  937. X
  938. Xstatic volatile gotsig;
  939. X
  940. Xstatic void fakehandler P((void))
  941. X{ gotsig=1;
  942. X}
  943. X
  944. Xvoid qsignal(sig,action)const int sig;void(*action)P((void));
  945. X{ gotsig=0;
  946. X  if(SIG_IGN==signal(sig,(void(*)())fakehandler))
  947. X     signal(sig,SIG_IGN);
  948. X  else
  949. X   { signal(sig,(void(*)())action);
  950. X     if(gotsig)
  951. X    (*action)();
  952. X   }
  953. X}
  954. END_OF_FILE
  955.   if test 765 -ne `wc -c <'procmail-3.03/src/mcommon.c'`; then
  956.     echo shar: \"'procmail-3.03/src/mcommon.c'\" unpacked with wrong size!
  957.   fi
  958.   # end of 'procmail-3.03/src/mcommon.c'
  959. fi
  960. if test -f 'procmail-3.03/src/mcommon.h' -a "${1}" != "-c" ; then 
  961.   echo shar: Will not clobber existing file \"'procmail-3.03/src/mcommon.h'\"
  962. else
  963.   echo shar: Extracting \"'procmail-3.03/src/mcommon.h'\" \(107 characters\)
  964.   sed "s/^X//" >'procmail-3.03/src/mcommon.h' <<'END_OF_FILE'
  965. X/*$Id: mcommon.h,v 1.1 1994/04/05 15:35:03 berg Exp $*/
  966. X
  967. Xvoid
  968. X qsignal P((const sig,void(*action)(void)));
  969. END_OF_FILE
  970.   if test 107 -ne `wc -c <'procmail-3.03/src/mcommon.h'`; then
  971.     echo shar: \"'procmail-3.03/src/mcommon.h'\" unpacked with wrong size!
  972.   fi
  973.   # end of 'procmail-3.03/src/mcommon.h'
  974. fi
  975. if test -f 'procmail-3.03/src/network.h' -a "${1}" != "-c" ; then 
  976.   echo shar: Will not clobber existing file \"'procmail-3.03/src/network.h'\"
  977. else
  978.   echo shar: Extracting \"'procmail-3.03/src/network.h'\" \(447 characters\)
  979.   sed "s/^X//" >'procmail-3.03/src/network.h' <<'END_OF_FILE'
  980. X/*$Id: network.h,v 1.6 1994/05/26 14:13:17 berg Exp $*/
  981. X
  982. X#include <sys/socket.h>            /* socket() sendto() AF_INET
  983. X                    /* SOCK_DGRAM */
  984. X#include <netdb.h>            /* gethostbyname() getservbyname()
  985. X                    /* getprotobyname() */
  986. X#include <netinet/in.h>            /* htons() struct sockaddr_in */
  987. X
  988. X#ifndef BIFF_serviceport
  989. X#define BIFF_serviceport    COMSATservice
  990. X#endif
  991. X
  992. X#ifndef h_0addr_list
  993. X#define h_0addr_list    h_addr_list[0]              /* POSIX struct member */
  994. X#endif
  995. END_OF_FILE
  996.   if test 447 -ne `wc -c <'procmail-3.03/src/network.h'`; then
  997.     echo shar: \"'procmail-3.03/src/network.h'\" unpacked with wrong size!
  998.   fi
  999.   # end of 'procmail-3.03/src/network.h'
  1000. fi
  1001. if test -f 'procmail-3.03/src/pipes.h' -a "${1}" != "-c" ; then 
  1002.   echo shar: Will not clobber existing file \"'procmail-3.03/src/pipes.h'\"
  1003. else
  1004.   echo shar: Extracting \"'procmail-3.03/src/pipes.h'\" \(686 characters\)
  1005.   sed "s/^X//" >'procmail-3.03/src/pipes.h' <<'END_OF_FILE'
  1006. X/*$Id: pipes.h,v 1.9 1994/05/26 14:13:20 berg Exp $*/
  1007. X
  1008. Xvoid
  1009. X inittmout P((const char*const progname)),
  1010. X ftimeout P((void)),
  1011. X resettmout P((void)),
  1012. X exectrap P((const char*const tp));
  1013. Xint
  1014. X pipthrough P((char*line,char*source,const long len));
  1015. Xlong
  1016. X pipin P((char*const line,char*source,long len));
  1017. Xchar*
  1018. X readdyn P((char*bf,long*const filled)),
  1019. X *fromprog Q((char*name,char*const dest,size_t max));
  1020. X
  1021. X#define PRDO    poutfd[0]
  1022. X#define PWRO    poutfd[1]
  1023. X#define PRDI    pinfd[0]
  1024. X#define PWRI    pinfd[1]
  1025. X#define PRDB    pbackfd[0]
  1026. X#define PWRB    pbackfd[1]
  1027. X
  1028. Xextern const char exitcode[];
  1029. Xextern int setxit;
  1030. Xextern pid_t pidchild;
  1031. Xextern volatile time_t alrmtime;
  1032. Xextern volatile toutflag;
  1033. Xextern int pipw;
  1034. END_OF_FILE
  1035.   if test 686 -ne `wc -c <'procmail-3.03/src/pipes.h'`; then
  1036.     echo shar: \"'procmail-3.03/src/pipes.h'\" unpacked with wrong size!
  1037.   fi
  1038.   # end of 'procmail-3.03/src/pipes.h'
  1039. fi
  1040. if test -f 'procmail-3.03/src/regexp.h' -a "${1}" != "-c" ; then 
  1041.   echo shar: Will not clobber existing file \"'procmail-3.03/src/regexp.h'\"
  1042. else
  1043.   echo shar: Extracting \"'procmail-3.03/src/regexp.h'\" \(289 characters\)
  1044.   sed "s/^X//" >'procmail-3.03/src/regexp.h' <<'END_OF_FILE'
  1045. X/*$Id: regexp.h,v 1.9 1994/05/26 14:13:36 berg Exp $*/
  1046. X
  1047. Xstruct eps{unsigned opc;struct eps*next;
  1048. X union {struct eps*awn;int sopc;} sp;}*
  1049. X bregcomp P((const char*const a,int ign_case));
  1050. Xchar*
  1051. X bregexec Q((struct eps*code,const uchar*const text,const uchar*str,size_t len,
  1052. X  int ign_case));
  1053. END_OF_FILE
  1054.   if test 289 -ne `wc -c <'procmail-3.03/src/regexp.h'`; then
  1055.     echo shar: \"'procmail-3.03/src/regexp.h'\" unpacked with wrong size!
  1056.   fi
  1057.   # end of 'procmail-3.03/src/regexp.h'
  1058. fi
  1059. if test -f 'procmail-3.03/src/robust.h' -a "${1}" != "-c" ; then 
  1060.   echo shar: Will not clobber existing file \"'procmail-3.03/src/robust.h'\"
  1061. else
  1062.   echo shar: Extracting \"'procmail-3.03/src/robust.h'\" \(579 characters\)
  1063.   sed "s/^X//" >'procmail-3.03/src/robust.h' <<'END_OF_FILE'
  1064. X/*$Id: robust.h,v 1.8 1994/05/26 14:13:39 berg Exp $*/
  1065. X
  1066. Xvoid
  1067. X *tmalloc Q((const size_t len)),
  1068. X *trealloc Q((void*const old,const size_t len)),
  1069. X tfree P((void*const p)),
  1070. X opnlog P((const char*file)),
  1071. X ssleep P((const unsigned seconds)),
  1072. X doumask Q((const mode_t mask));
  1073. Xpid_t
  1074. X sfork P((void));
  1075. Xint
  1076. X opena P((const char*const a)),
  1077. X ropen Q((const char*const name,const mode,const mode_t mask)),
  1078. X rpipe P((int fd[2])),
  1079. X rdup P((const p)),
  1080. X rclose P((const fd)),
  1081. X rread P((const fd,void*const a,const len)),
  1082. X rwrite P((const fd,const void*const a,const len));
  1083. X
  1084. Xextern mode_t cumask;
  1085. END_OF_FILE
  1086.   if test 579 -ne `wc -c <'procmail-3.03/src/robust.h'`; then
  1087.     echo shar: \"'procmail-3.03/src/robust.h'\" unpacked with wrong size!
  1088.   fi
  1089.   # end of 'procmail-3.03/src/robust.h'
  1090. fi
  1091. if test -f 'procmail-3.03/src/shell.h' -a "${1}" != "-c" ; then 
  1092.   echo shar: Will not clobber existing file \"'procmail-3.03/src/shell.h'\"
  1093. else
  1094.   echo shar: Extracting \"'procmail-3.03/src/shell.h'\" \(249 characters\)
  1095.   sed "s/^X//" >'procmail-3.03/src/shell.h' <<'END_OF_FILE'
  1096. X/*$Id: shell.h,v 1.5 1994/05/26 14:13:41 berg Exp $*/
  1097. X
  1098. X#ifdef malloc
  1099. X#undef malloc
  1100. X#endif
  1101. X#define malloc(n)    tmalloc((size_t)(n))
  1102. X#define realloc(p,n)    trealloc(p,(size_t)(n))
  1103. X#define free(p)        tfree(p)
  1104. X#define tmemmove(t,f,n) memmove(t,f,(size_t)(n))
  1105. END_OF_FILE
  1106.   if test 249 -ne `wc -c <'procmail-3.03/src/shell.h'`; then
  1107.     echo shar: \"'procmail-3.03/src/shell.h'\" unpacked with wrong size!
  1108.   fi
  1109.   # end of 'procmail-3.03/src/shell.h'
  1110. fi
  1111. if test -f 'procmail-3.03/src/sublib.h' -a "${1}" != "-c" ; then 
  1112.   echo shar: Will not clobber existing file \"'procmail-3.03/src/sublib.h'\"
  1113. else
  1114.   echo shar: Extracting \"'procmail-3.03/src/sublib.h'\" \(401 characters\)
  1115.   sed "s/^X//" >'procmail-3.03/src/sublib.h' <<'END_OF_FILE'
  1116. X/*$Id: sublib.h,v 1.9 1994/05/26 14:13:44 berg Exp $*/
  1117. X
  1118. X#ifdef NOmemmove
  1119. Xvoid
  1120. X *smemmove Q((void*To,const void*From,size_t count));
  1121. X#endif
  1122. X
  1123. X#ifdef NOstrpbrk
  1124. Xchar
  1125. X *strpbrk P((const char*const st,const char*del));
  1126. X#endif
  1127. X
  1128. X#ifdef SLOWstrstr
  1129. Xchar
  1130. X *sstrstr P((const char*const phaystack,const char*const pneedle));
  1131. X#endif
  1132. X
  1133. X#ifdef NOstrtol
  1134. Xlong
  1135. X strtol P((const char*start,const char**const ptr));
  1136. X#endif
  1137. END_OF_FILE
  1138.   if test 401 -ne `wc -c <'procmail-3.03/src/sublib.h'`; then
  1139.     echo shar: \"'procmail-3.03/src/sublib.h'\" unpacked with wrong size!
  1140.   fi
  1141.   # end of 'procmail-3.03/src/sublib.h'
  1142. fi
  1143. echo shar: End of archive 10 \(of 10\).
  1144. cp /dev/null ark10isdone
  1145. MISSING=""
  1146. for I in 1 2 3 4 5 6 7 8 9 10 ; do
  1147.     if test ! -f ark${I}isdone ; then
  1148.     MISSING="${MISSING} ${I}"
  1149.     fi
  1150. done
  1151. if test "${MISSING}" = "" ; then
  1152.     echo You have unpacked all 10 archives.
  1153.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1154. else
  1155.     echo You still must unpack the following archives:
  1156.     echo "        " ${MISSING}
  1157. fi
  1158. exit 0
  1159. exit 0 # Just in case...
  1160.