home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: 4111
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 50 61 |.sources|.misc.Pa|
|00000020| 74 68 3a 20 73 70 61 72 | 6b 79 21 6b 65 6e 74 0a |th: spar|ky!kent.|
|00000030| 46 72 6f 6d 3a 20 72 61 | 6d 40 65 69 66 66 65 6c |From: ra|m@eiffel|
|00000040| 2e 63 6f 6d 20 28 52 61 | 70 68 61 65 6c 20 4d 61 |.com (Ra|phael Ma|
|00000050| 6e 66 72 65 64 69 29 0a | 53 75 62 6a 65 63 74 3a |nfredi).|Subject:|
|00000060| 20 20 76 33 33 69 31 30 | 36 3a 20 20 6d 61 69 6c | v33i10|6: mail|
|00000070| 61 67 65 6e 74 20 2d 20 | 52 75 6c 65 20 42 61 73 |agent - |Rule Bas|
|00000080| 65 64 20 4d 61 69 6c 20 | 46 69 6c 74 65 72 69 6e |ed Mail |Filterin|
|00000090| 67 2c 20 50 61 72 74 31 | 34 2f 31 37 0a 4d 65 73 |g, Part1|4/17.Mes|
|000000a0| 73 61 67 65 2d 49 44 3a | 20 3c 31 39 39 32 4e 6f |sage-ID:| <1992No|
|000000b0| 76 32 30 2e 32 33 30 38 | 34 31 2e 32 37 31 35 36 |v20.2308|41.27156|
|000000c0| 40 73 70 61 72 6b 79 2e | 69 6d 64 2e 73 74 65 72 |@sparky.|imd.ster|
|000000d0| 6c 69 6e 67 2e 63 6f 6d | 3e 0a 46 6f 6c 6c 6f 77 |ling.com|>.Follow|
|000000e0| 75 70 2d 54 6f 3a 20 63 | 6f 6d 70 2e 73 6f 75 72 |up-To: c|omp.sour|
|000000f0| 63 65 73 2e 64 0a 58 2d | 4d 64 34 2d 53 69 67 6e |ces.d.X-|Md4-Sign|
|00000100| 61 74 75 72 65 3a 20 31 | 31 32 32 34 37 64 62 66 |ature: 1|12247dbf|
|00000110| 62 32 65 66 31 63 34 66 | 34 33 33 31 33 63 39 61 |b2ef1c4f|43313c9a|
|00000120| 32 36 66 61 62 66 36 0a | 53 65 6e 64 65 72 3a 20 |26fabf6.|Sender: |
|00000130| 6b 65 6e 74 40 73 70 61 | 72 6b 79 2e 69 6d 64 2e |kent@spa|rky.imd.|
|00000140| 73 74 65 72 6c 69 6e 67 | 2e 63 6f 6d 20 28 4b 65 |sterling|.com (Ke|
|00000150| 6e 74 20 4c 61 6e 64 66 | 69 65 6c 64 29 0a 4f 72 |nt Landf|ield).Or|
|00000160| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 53 74 65 72 |ganizati|on: Ster|
|00000170| 6c 69 6e 67 20 53 6f 66 | 74 77 61 72 65 0a 52 65 |ling Sof|tware.Re|
|00000180| 66 65 72 65 6e 63 65 73 | 3a 20 3c 63 73 6d 2d 76 |ferences|: <csm-v|
|00000190| 33 33 69 30 39 33 3d 6d | 61 69 6c 61 67 65 6e 74 |33i093=m|ailagent|
|000001a0| 2e 32 33 30 31 31 37 40 | 73 70 61 72 6b 79 2e 49 |.230117@|sparky.I|
|000001b0| 4d 44 2e 53 74 65 72 6c | 69 6e 67 2e 43 4f 4d 3e |MD.Sterl|ing.COM>|
|000001c0| 0a 44 61 74 65 3a 20 46 | 72 69 2c 20 32 30 20 4e |.Date: F|ri, 20 N|
|000001d0| 6f 76 20 31 39 39 32 20 | 32 33 3a 30 38 3a 34 31 |ov 1992 |23:08:41|
|000001e0| 20 47 4d 54 0a 41 70 70 | 72 6f 76 65 64 3a 20 6b | GMT.App|roved: k|
|000001f0| 65 6e 74 40 73 70 61 72 | 6b 79 2e 69 6d 64 2e 73 |ent@spar|ky.imd.s|
|00000200| 74 65 72 6c 69 6e 67 2e | 63 6f 6d 0a 4c 69 6e 65 |terling.|com.Line|
|00000210| 73 3a 20 31 38 34 31 0a | 0a 53 75 62 6d 69 74 74 |s: 1841.|.Submitt|
|00000220| 65 64 2d 62 79 3a 20 72 | 61 6d 40 65 69 66 66 65 |ed-by: r|am@eiffe|
|00000230| 6c 2e 63 6f 6d 20 28 52 | 61 70 68 61 65 6c 20 4d |l.com (R|aphael M|
|00000240| 61 6e 66 72 65 64 69 29 | 0a 50 6f 73 74 69 6e 67 |anfredi)|.Posting|
|00000250| 2d 6e 75 6d 62 65 72 3a | 20 56 6f 6c 75 6d 65 20 |-number:| Volume |
|00000260| 33 33 2c 20 49 73 73 75 | 65 20 31 30 36 0a 41 72 |33, Issu|e 106.Ar|
|00000270| 63 68 69 76 65 2d 6e 61 | 6d 65 3a 20 6d 61 69 6c |chive-na|me: mail|
|00000280| 61 67 65 6e 74 2f 70 61 | 72 74 31 34 0a 45 6e 76 |agent/pa|rt14.Env|
|00000290| 69 72 6f 6e 6d 65 6e 74 | 3a 20 50 65 72 6c 2c 20 |ironment|: Perl, |
|000002a0| 53 65 6e 64 6d 61 69 6c | 2c 20 55 4e 49 58 0a 0a |Sendmail|, UNIX..|
|000002b0| 23 21 20 2f 62 69 6e 2f | 73 68 0a 23 20 54 68 69 |#! /bin/|sh.# Thi|
|000002c0| 73 20 69 73 20 61 20 73 | 68 65 6c 6c 20 61 72 63 |s is a s|hell arc|
|000002d0| 68 69 76 65 2e 20 20 52 | 65 6d 6f 76 65 20 61 6e |hive. R|emove an|
|000002e0| 79 74 68 69 6e 67 20 62 | 65 66 6f 72 65 20 74 68 |ything b|efore th|
|000002f0| 69 73 20 6c 69 6e 65 2c | 20 74 68 65 6e 20 66 65 |is line,| then fe|
|00000300| 65 64 20 69 74 0a 23 20 | 69 6e 74 6f 20 61 20 73 |ed it.# |into a s|
|00000310| 68 65 6c 6c 20 76 69 61 | 20 22 73 68 20 66 69 6c |hell via| "sh fil|
|00000320| 65 22 20 6f 72 20 73 69 | 6d 69 6c 61 72 2e 20 20 |e" or si|milar. |
|00000330| 54 6f 20 6f 76 65 72 77 | 72 69 74 65 20 65 78 69 |To overw|rite exi|
|00000340| 73 74 69 6e 67 20 66 69 | 6c 65 73 2c 0a 23 20 74 |sting fi|les,.# t|
|00000350| 79 70 65 20 22 73 68 20 | 66 69 6c 65 20 2d 63 22 |ype "sh |file -c"|
|00000360| 2e 0a 23 20 43 6f 6e 74 | 65 6e 74 73 3a 20 20 61 |..# Cont|ents: a|
|00000370| 67 65 6e 74 2f 66 69 6c | 65 73 2f 4d 61 6b 65 66 |gent/fil|es/Makef|
|00000380| 69 6c 65 2e 53 48 20 61 | 67 65 6e 74 2f 66 69 6c |ile.SH a|gent/fil|
|00000390| 65 73 2f 6d 61 69 6c 61 | 67 65 6e 74 2e 63 66 0a |es/maila|gent.cf.|
|000003a0| 23 20 20 20 61 67 65 6e | 74 2f 66 69 6c 74 65 72 |# agen|t/filter|
|000003b0| 2f 6c 6f 63 6b 2e 63 20 | 61 67 65 6e 74 2f 66 69 |/lock.c |agent/fi|
|000003c0| 6c 74 65 72 2f 73 79 73 | 65 78 69 74 73 2e 68 20 |lter/sys|exits.h |
|000003d0| 61 67 65 6e 74 2f 6d 68 | 6f 6f 6b 2e 53 48 0a 23 |agent/mh|ook.SH.#|
|000003e0| 20 20 20 61 67 65 6e 74 | 2f 70 6c 2f 62 75 69 6c | agent|/pl/buil|
|000003f0| 74 69 6e 73 2e 70 6c 20 | 61 67 65 6e 74 2f 70 6c |tins.pl |agent/pl|
|00000400| 2f 63 6f 6e 74 65 78 74 | 2e 70 6c 20 61 67 65 6e |/context|.pl agen|
|00000410| 74 2f 70 6c 2f 64 69 73 | 74 72 69 62 73 2e 70 6c |t/pl/dis|tribs.pl|
|00000420| 0a 23 20 20 20 61 67 65 | 6e 74 2f 70 6c 2f 6d 62 |.# age|nt/pl/mb|
|00000430| 6f 78 2e 70 6c 20 61 67 | 65 6e 74 2f 70 6c 2f 70 |ox.pl ag|ent/pl/p|
|00000440| 6c 73 61 76 65 2e 70 6c | 20 61 67 65 6e 74 2f 70 |lsave.pl| agent/p|
|00000450| 6c 2f 70 71 75 65 75 65 | 2e 70 6c 0a 23 20 20 20 |l/pqueue|.pl.# |
|00000460| 61 67 65 6e 74 2f 74 65 | 73 74 2f 4d 61 6b 65 66 |agent/te|st/Makef|
|00000470| 69 6c 65 2e 53 48 20 61 | 67 65 6e 74 2f 74 65 73 |ile.SH a|gent/tes|
|00000480| 74 2f 52 45 41 44 4d 45 | 20 61 67 65 6e 74 2f 74 |t/README| agent/t|
|00000490| 65 73 74 2f 72 75 6c 65 | 73 0a 23 20 20 20 69 6e |est/rule|s.# in|
|000004a0| 73 74 61 6c 6c 2e 53 48 | 0a 23 20 57 72 61 70 70 |stall.SH|.# Wrapp|
|000004b0| 65 64 20 62 79 20 6b 65 | 6e 74 40 73 70 61 72 6b |ed by ke|nt@spark|
|000004c0| 79 20 6f 6e 20 57 65 64 | 20 4e 6f 76 20 31 38 20 |y on Wed| Nov 18 |
|000004d0| 32 32 3a 34 32 3a 33 31 | 20 31 39 39 32 0a 50 41 |22:42:31| 1992.PA|
|000004e0| 54 48 3d 2f 62 69 6e 3a | 2f 75 73 72 2f 62 69 6e |TH=/bin:|/usr/bin|
|000004f0| 3a 2f 75 73 72 2f 75 63 | 62 3a 2f 75 73 72 2f 6c |:/usr/uc|b:/usr/l|
|00000500| 6f 63 61 6c 2f 62 69 6e | 3a 2f 75 73 72 2f 6c 62 |ocal/bin|:/usr/lb|
|00000510| 69 6e 20 3b 20 65 78 70 | 6f 72 74 20 50 41 54 48 |in ; exp|ort PATH|
|00000520| 0a 65 63 68 6f 20 49 66 | 20 74 68 69 73 20 61 72 |.echo If| this ar|
|00000530| 63 68 69 76 65 20 69 73 | 20 63 6f 6d 70 6c 65 74 |chive is| complet|
|00000540| 65 2c 20 79 6f 75 20 77 | 69 6c 6c 20 73 65 65 20 |e, you w|ill see |
|00000550| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |the foll|owing me|
|00000560| 73 73 61 67 65 3a 0a 65 | 63 68 6f 20 27 20 20 20 |ssage:.e|cho ' |
|00000570| 20 20 20 20 20 20 20 22 | 73 68 61 72 3a 20 45 6e | "|shar: En|
|00000580| 64 20 6f 66 20 61 72 63 | 68 69 76 65 20 31 34 20 |d of arc|hive 14 |
|00000590| 28 6f 66 20 31 37 29 2e | 22 27 0a 69 66 20 74 65 |(of 17).|"'.if te|
|000005a0| 73 74 20 2d 66 20 27 61 | 67 65 6e 74 2f 66 69 6c |st -f 'a|gent/fil|
|000005b0| 65 73 2f 4d 61 6b 65 66 | 69 6c 65 2e 53 48 27 20 |es/Makef|ile.SH' |
|000005c0| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|000005d0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|000005e0| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|000005f0| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00000600| 20 66 69 6c 65 20 5c 22 | 27 61 67 65 6e 74 2f 66 | file \"|'agent/f|
|00000610| 69 6c 65 73 2f 4d 61 6b | 65 66 69 6c 65 2e 53 48 |iles/Mak|efile.SH|
|00000620| 27 5c 22 0a 65 6c 73 65 | 0a 20 20 65 63 68 6f 20 |'\".else|. echo |
|00000630| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00000640| 20 5c 22 27 61 67 65 6e | 74 2f 66 69 6c 65 73 2f | \"'agen|t/files/|
|00000650| 4d 61 6b 65 66 69 6c 65 | 2e 53 48 27 5c 22 20 5c |Makefile|.SH'\" \|
|00000660| 28 33 35 31 38 20 63 68 | 61 72 61 63 74 65 72 73 |(3518 ch|aracters|
|00000670| 5c 29 0a 20 20 73 65 64 | 20 22 73 2f 5e 58 2f 2f |\). sed| "s/^X//|
|00000680| 22 20 3e 27 61 67 65 6e | 74 2f 66 69 6c 65 73 2f |" >'agen|t/files/|
|00000690| 4d 61 6b 65 66 69 6c 65 | 2e 53 48 27 20 3c 3c 27 |Makefile|.SH' <<'|
|000006a0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 3a 20 |END_OF_F|ILE'.X: |
|000006b0| 4d 61 6b 65 66 69 6c 65 | 2e 53 48 20 67 65 6e 65 |Makefile|.SH gene|
|000006c0| 72 61 74 65 64 20 66 72 | 6f 6d 20 4a 6d 61 6b 65 |rated fr|om Jmake|
|000006d0| 2e 74 6d 70 6c 20 61 6e | 64 20 4a 6d 61 6b 65 66 |.tmpl an|d Jmakef|
|000006e0| 69 6c 65 20 5b 6a 6d 61 | 6b 65 20 32 2e 38 20 50 |ile [jma|ke 2.8 P|
|000006f0| 4c 31 33 5d 0a 58 3a 20 | 24 58 2d 49 64 3a 20 4a |L13].X: |$X-Id: J|
|00000700| 6d 61 6b 65 2e 74 6d 70 | 6c 2c 76 20 32 2e 38 2e |make.tmp|l,v 2.8.|
|00000710| 31 2e 32 20 39 31 2f 31 | 31 2f 31 38 20 31 33 3a |1.2 91/1|1/18 13:|
|00000720| 32 32 3a 35 34 20 72 61 | 6d 20 45 78 70 20 24 0a |22:54 ra|m Exp $.|
|00000730| 58 0a 58 63 61 73 65 20 | 24 43 4f 4e 46 49 47 20 |X.Xcase |$CONFIG |
|00000740| 69 6e 0a 58 27 27 29 0a | 58 09 69 66 20 74 65 73 |in.X'').|X.if tes|
|00000750| 74 20 21 20 2d 66 20 63 | 6f 6e 66 69 67 2e 73 68 |t ! -f c|onfig.sh|
|00000760| 3b 20 74 68 65 6e 0a 58 | 09 09 6c 6e 20 2e 2e 2f |; then.X|..ln ../|
|00000770| 63 6f 6e 66 69 67 2e 73 | 68 20 2e 20 7c 7c 20 5c |config.s|h . || \|
|00000780| 0a 58 09 09 6c 6e 20 2e | 2e 2f 2e 2e 2f 63 6f 6e |.X..ln .|./../con|
|00000790| 66 69 67 2e 73 68 20 2e | 20 7c 7c 20 5c 0a 58 09 |fig.sh .| || \.X.|
|000007a0| 09 6c 6e 20 2e 2e 2f 2e | 2e 2f 2e 2e 2f 63 6f 6e |.ln ../.|./../con|
|000007b0| 66 69 67 2e 73 68 20 2e | 20 7c 7c 20 5c 0a 58 09 |fig.sh .| || \.X.|
|000007c0| 09 28 65 63 68 6f 20 22 | 43 61 6e 27 74 20 66 69 |.(echo "|Can't fi|
|000007d0| 6e 64 20 63 6f 6e 66 69 | 67 2e 73 68 2e 22 3b 20 |nd confi|g.sh."; |
|000007e0| 65 78 69 74 20 31 29 0a | 58 09 66 69 20 32 3e 2f |exit 1).|X.fi 2>/|
|000007f0| 64 65 76 2f 6e 75 6c 6c | 0a 58 09 2e 20 2e 2f 63 |dev/null|.X.. ./c|
|00000800| 6f 6e 66 69 67 2e 73 68 | 0a 58 09 3b 3b 0a 58 65 |onfig.sh|.X.;;.Xe|
|00000810| 73 61 63 0a 58 63 61 73 | 65 20 22 24 30 22 20 69 |sac.Xcas|e "$0" i|
|00000820| 6e 0a 58 2a 2f 2a 29 20 | 63 64 20 60 65 78 70 72 |n.X*/*) |cd `expr|
|00000830| 20 58 24 30 20 3a 20 27 | 58 5c 28 2e 2a 5c 29 2f | X$0 : '|X\(.*\)/|
|00000840| 27 60 20 3b 3b 0a 58 65 | 73 61 63 0a 58 43 55 52 |'` ;;.Xe|sac.XCUR|
|00000850| 52 45 4e 54 3d 61 67 65 | 6e 74 2f 66 69 6c 65 73 |RENT=age|nt/files|
|00000860| 0a 58 44 49 52 3d 60 65 | 63 68 6f 20 24 43 55 52 |.XDIR=`e|cho $CUR|
|00000870| 52 45 4e 54 2f 20 7c 20 | 73 65 64 20 2d 65 20 27 |RENT/ | |sed -e '|
|00000880| 73 2f 5c 2e 5c 2f 2f 2f | 67 27 60 0a 58 65 63 68 |s/\.\///|g'`.Xech|
|00000890| 6f 20 22 45 78 74 72 61 | 63 74 69 6e 67 20 24 7b |o "Extra|cting ${|
|000008a0| 44 49 52 7d 4d 61 6b 65 | 66 69 6c 65 20 28 77 69 |DIR}Make|file (wi|
|000008b0| 74 68 20 76 61 72 69 61 | 62 6c 65 20 73 75 62 73 |th varia|ble subs|
|000008c0| 74 69 74 75 74 69 6f 6e | 73 29 22 0a 58 44 41 54 |titution|s)".XDAT|
|000008d0| 45 3d 60 64 61 74 65 60 | 0a 58 24 73 70 69 74 73 |E=`date`|.X$spits|
|000008e0| 68 65 6c 6c 20 3e 4d 61 | 6b 65 66 69 6c 65 20 3c |hell >Ma|kefile <|
|000008f0| 3c 21 47 52 4f 4b 21 54 | 48 49 53 21 0a 58 23 23 |<!GROK!T|HIS!.X##|
|00000900| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000910| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000920| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000930| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000940| 23 23 23 23 23 23 0a 58 | 23 20 4d 61 6b 65 66 69 |######.X|# Makefi|
|00000950| 6c 65 20 67 65 6e 65 72 | 61 74 65 64 20 66 72 6f |le gener|ated fro|
|00000960| 6d 20 4d 61 6b 65 66 69 | 6c 65 2e 53 48 20 6f 6e |m Makefi|le.SH on|
|00000970| 20 24 44 41 54 45 0a 58 | 0a 58 53 48 45 4c 4c 20 | $DATE.X|.XSHELL |
|00000980| 3d 20 2f 62 69 6e 2f 73 | 68 0a 58 4a 4d 41 4b 45 |= /bin/s|h.XJMAKE|
|00000990| 20 3d 20 6a 6d 61 6b 65 | 0a 58 54 4f 50 20 3d 20 | = jmake|.XTOP = |
|000009a0| 2e 2e 2f 2e 2e 0a 58 43 | 55 52 52 45 4e 54 20 3d |../...XC|URRENT =|
|000009b0| 20 24 43 55 52 52 45 4e | 54 0a 58 44 49 52 20 3d | $CURREN|T.XDIR =|
|000009c0| 20 24 44 49 52 0a 58 49 | 4e 53 54 41 4c 4c 20 3d | $DIR.XI|NSTALL =|
|000009d0| 20 2e 2e 2f 2e 2e 2f 69 | 6e 73 74 61 6c 6c 0a 58 | ../../i|nstall.X|
|000009e0| 0a 58 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |.X######|########|
|000009f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000a00| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000a10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000a20| 23 23 23 23 23 23 23 23 | 23 23 0a 58 23 20 50 61 |########|##.X# Pa|
|00000a30| 72 61 6d 65 74 65 72 73 | 20 73 65 74 20 62 79 20 |rameters| set by |
|00000a40| 43 6f 6e 66 69 67 75 72 | 65 20 2d 2d 20 65 64 69 |Configur|e -- edi|
|00000a50| 74 20 63 6f 6e 66 69 67 | 2e 73 68 20 69 66 20 63 |t config|.sh if c|
|00000a60| 68 61 6e 67 65 73 20 61 | 72 65 20 6e 65 65 64 65 |hanges a|re neede|
|00000a70| 64 0a 58 0a 58 43 54 41 | 47 53 20 3d 20 63 74 61 |d.X.XCTA|GS = cta|
|00000a80| 67 73 0a 58 4d 41 4b 45 | 20 3d 20 6d 61 6b 65 0a |gs.XMAKE| = make.|
|00000a90| 58 4d 56 20 3d 20 24 6d | 76 0a 58 50 52 49 56 4c |XMV = $m|v.XPRIVL|
|00000aa0| 49 42 20 3d 20 24 70 72 | 69 76 6c 69 62 0a 58 52 |IB = $pr|ivlib.XR|
|00000ab0| 4d 20 3d 20 24 72 6d 20 | 2d 66 0a 58 0a 58 21 47 |M = $rm |-f.X.X!G|
|00000ac0| 52 4f 4b 21 54 48 49 53 | 21 0a 58 24 73 70 69 74 |ROK!THIS|!.X$spit|
|00000ad0| 73 68 65 6c 6c 20 3e 3e | 4d 61 6b 65 66 69 6c 65 |shell >>|Makefile|
|00000ae0| 20 3c 3c 27 21 4e 4f 21 | 53 55 42 53 21 27 0a 58 | <<'!NO!|SUBS!'.X|
|00000af0| 0a 58 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |.X######|########|
|00000b00| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000b10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000b20| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000b30| 23 23 23 23 23 23 23 23 | 23 23 0a 58 23 20 4a 6d |########|##.X# Jm|
|00000b40| 61 6b 65 20 72 75 6c 65 | 73 20 66 6f 72 20 62 75 |ake rule|s for bu|
|00000b50| 69 6c 64 69 6e 67 20 6c | 69 62 72 61 72 69 65 73 |ilding l|ibraries|
|00000b60| 2c 20 70 72 6f 67 72 61 | 6d 73 2c 20 73 63 72 69 |, progra|ms, scri|
|00000b70| 70 74 73 2c 20 61 6e 64 | 20 64 61 74 61 20 66 69 |pts, and| data fi|
|00000b80| 6c 65 73 0a 58 23 20 24 | 58 2d 49 64 3a 20 4a 6d |les.X# $|X-Id: Jm|
|00000b90| 61 6b 65 2e 72 75 6c 65 | 73 2c 76 20 32 2e 38 2e |ake.rule|s,v 2.8.|
|00000ba0| 31 2e 34 20 39 31 2f 31 | 31 2f 31 38 20 31 33 3a |1.4 91/1|1/18 13:|
|00000bb0| 31 39 3a 30 37 20 72 61 | 6d 20 45 78 70 20 24 0a |19:07 ra|m Exp $.|
|00000bc0| 58 0a 58 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |X.X#####|########|
|00000bd0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000be0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000bf0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000c00| 23 23 23 23 23 23 23 23 | 23 23 23 0a 58 23 20 53 |########|###.X# S|
|00000c10| 74 61 72 74 20 6f 66 20 | 4a 6d 61 6b 65 66 69 6c |tart of |Jmakefil|
|00000c20| 65 0a 58 0a 58 23 20 24 | 58 2d 49 64 3a 20 4a 6d |e.X.X# $|X-Id: Jm|
|00000c30| 61 6b 65 66 69 6c 65 2c | 76 20 32 2e 39 20 39 32 |akefile,|v 2.9 92|
|00000c40| 2f 30 37 2f 31 34 20 31 | 36 3a 34 37 3a 33 32 20 |/07/14 1|6:47:32 |
|00000c50| 72 61 6d 20 45 78 70 20 | 24 0a 58 23 0a 58 23 20 |ram Exp |$.X#.X# |
|00000c60| 20 43 6f 70 79 72 69 67 | 68 74 20 28 63 29 20 31 | Copyrig|ht (c) 1|
|00000c70| 39 39 31 2c 20 52 61 70 | 68 61 65 6c 20 4d 61 6e |991, Rap|hael Man|
|00000c80| 66 72 65 64 69 0a 58 23 | 0a 58 23 20 20 59 6f 75 |fredi.X#|.X# You|
|00000c90| 20 6d 61 79 20 72 65 64 | 69 73 74 72 69 62 75 74 | may red|istribut|
|00000ca0| 65 20 6f 6e 6c 79 20 75 | 6e 64 65 72 20 74 68 65 |e only u|nder the|
|00000cb0| 20 74 65 72 6d 73 20 6f | 66 20 74 68 65 20 47 4e | terms o|f the GN|
|00000cc0| 55 20 47 65 6e 65 72 61 | 6c 20 50 75 62 6c 69 63 |U Genera|l Public|
|00000cd0| 0a 58 23 20 20 4c 69 63 | 65 6e 63 65 20 61 73 20 |.X# Lic|ence as |
|00000ce0| 73 70 65 63 69 66 69 65 | 64 20 69 6e 20 74 68 65 |specifie|d in the|
|00000cf0| 20 52 45 41 44 4d 45 20 | 66 69 6c 65 20 74 68 61 | README |file tha|
|00000d00| 74 20 63 6f 6d 65 73 20 | 77 69 74 68 20 64 69 73 |t comes |with dis|
|00000d10| 74 2e 0a 58 23 0a 58 23 | 20 24 58 2d 4c 6f 67 3a |t..X#.X#| $X-Log:|
|00000d20| 09 4a 6d 61 6b 65 66 69 | 6c 65 2c 76 20 24 0a 58 |.Jmakefi|le,v $.X|
|00000d30| 23 20 52 65 76 69 73 69 | 6f 6e 20 32 2e 39 20 20 |# Revisi|on 2.9 |
|00000d40| 39 32 2f 30 37 2f 31 34 | 20 20 31 36 3a 34 37 3a |92/07/14| 16:47:|
|00000d50| 33 32 20 20 72 61 6d 0a | 58 23 20 33 2e 30 20 62 |32 ram.|X# 3.0 b|
|00000d60| 65 74 61 20 62 61 73 65 | 6c 69 6e 65 2e 0a 58 23 |eta base|line..X#|
|00000d70| 0a 58 0a 58 46 49 4c 45 | 53 20 3d 20 61 67 65 6e |.X.XFILE|S = agen|
|00000d80| 74 68 65 6c 70 20 63 6f | 6d 6d 61 6e 64 73 20 64 |thelp co|mmands d|
|00000d90| 69 73 74 72 69 62 73 20 | 66 69 6c 74 65 72 2e 73 |istribs |filter.s|
|00000da0| 68 20 6d 61 69 6c 61 67 | 65 6e 74 2e 63 66 20 70 |h mailag|ent.cf p|
|00000db0| 72 6f 67 6c 69 73 74 20 | 5c 0a 58 09 63 68 6b 61 |roglist |\.X.chka|
|00000dc0| 67 65 6e 74 2e 73 68 0a | 58 0a 58 61 6c 6c 3a 3a |gent.sh.|X.Xall::|
|00000dd0| 0a 58 0a 58 69 6e 73 74 | 61 6c 6c 3a 3a 0a 58 09 |.X.Xinst|all::.X.|
|00000de0| 40 66 6f 72 20 64 69 72 | 20 69 6e 20 24 28 50 52 |@for dir| in $(PR|
|00000df0| 49 56 4c 49 42 29 20 24 | 28 50 52 49 56 4c 49 42 |IVLIB) $|(PRIVLIB|
|00000e00| 29 2f 6d 61 69 6c 61 67 | 65 6e 74 3b 20 64 6f 20 |)/mailag|ent; do |
|00000e10| 5c 0a 58 09 09 63 61 73 | 65 20 27 24 7b 4d 46 4c |\.X..cas|e '${MFL|
|00000e20| 41 47 53 7d 27 20 69 6e | 20 2a 5b 69 5d 2a 29 20 |AGS}' in| *[i]*) |
|00000e30| 73 65 74 20 2b 65 3b 3b | 20 65 73 61 63 3b 20 5c |set +e;;| esac; \|
|00000e40| 0a 58 09 09 28 73 65 74 | 20 2d 78 3b 20 24 28 49 |.X..(set| -x; $(I|
|00000e50| 4e 53 54 41 4c 4c 29 20 | 2d 64 20 24 24 64 69 72 |NSTALL) |-d $$dir|
|00000e60| 29 3b 20 5c 0a 58 09 64 | 6f 6e 65 0a 58 0a 58 64 |); \.X.d|one.X.Xd|
|00000e70| 65 69 6e 73 74 61 6c 6c | 3a 3a 0a 58 09 24 28 52 |einstall|::.X.$(R|
|00000e80| 4d 29 20 2d 72 20 24 28 | 50 52 49 56 4c 49 42 29 |M) -r $(|PRIVLIB)|
|00000e90| 20 24 28 50 52 49 56 4c | 49 42 29 2f 6d 61 69 6c | $(PRIVL|IB)/mail|
|00000ea0| 61 67 65 6e 74 0a 58 0a | 58 69 6e 73 74 61 6c 6c |agent.X.|Xinstall|
|00000eb0| 3a 3a 20 24 28 46 49 4c | 45 53 29 0a 58 09 40 63 |:: $(FIL|ES).X.@c|
|00000ec0| 61 73 65 20 27 24 7b 4d | 46 4c 41 47 53 7d 27 20 |ase '${M|FLAGS}' |
|00000ed0| 69 6e 20 2a 5b 69 5d 2a | 29 20 73 65 74 20 2b 65 |in *[i]*|) set +e|
|00000ee0| 3b 3b 20 65 73 61 63 3b | 20 5c 0a 58 09 66 6f 72 |;; esac;| \.X.for|
|00000ef0| 20 69 20 69 6e 20 24 28 | 46 49 4c 45 53 29 3b 20 | i in $(|FILES); |
|00000f00| 64 6f 20 5c 0a 58 09 09 | 28 73 65 74 20 2d 78 3b |do \.X..|(set -x;|
|00000f10| 20 24 28 49 4e 53 54 41 | 4c 4c 29 20 2d 63 20 2d | $(INSTA|LL) -c -|
|00000f20| 6d 20 34 34 34 20 24 24 | 69 20 24 28 50 52 49 56 |m 444 $$|i $(PRIV|
|00000f30| 4c 49 42 29 2f 6d 61 69 | 6c 61 67 65 6e 74 29 3b |LIB)/mai|lagent);|
|00000f40| 20 5c 0a 58 09 64 6f 6e | 65 0a 58 0a 58 64 65 69 | \.X.don|e.X.Xdei|
|00000f50| 6e 73 74 61 6c 6c 3a 3a | 0a 58 09 40 63 61 73 65 |nstall::|.X.@case|
|00000f60| 20 27 24 7b 4d 46 4c 41 | 47 53 7d 27 20 69 6e 20 | '${MFLA|GS}' in |
|00000f70| 2a 5b 69 5d 2a 29 20 73 | 65 74 20 2b 65 3b 3b 20 |*[i]*) s|et +e;; |
|00000f80| 65 73 61 63 3b 20 5c 0a | 58 09 66 6f 72 20 69 20 |esac; \.|X.for i |
|00000f90| 69 6e 20 24 28 46 49 4c | 45 53 29 3b 20 64 6f 20 |in $(FIL|ES); do |
|00000fa0| 5c 0a 58 09 09 28 73 65 | 74 20 2d 78 3b 20 24 28 |\.X..(se|t -x; $(|
|00000fb0| 52 4d 29 20 24 28 50 52 | 49 56 4c 49 42 29 2f 6d |RM) $(PR|IVLIB)/m|
|00000fc0| 61 69 6c 61 67 65 6e 74 | 2f 24 24 69 29 3b 20 5c |ailagent|/$$i); \|
|00000fd0| 0a 58 09 64 6f 6e 65 0a | 58 0a 58 23 23 23 23 23 |.X.done.|X.X#####|
|00000fe0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ff0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001000| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001010| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001020| 23 23 23 0a 58 23 20 43 | 6f 6d 6d 6f 6e 20 72 75 |###.X# C|ommon ru|
|00001030| 6c 65 73 20 66 6f 72 20 | 61 6c 6c 20 4d 61 6b 65 |les for |all Make|
|00001040| 66 69 6c 65 73 20 2d 2d | 20 64 6f 20 6e 6f 74 20 |files --| do not |
|00001050| 65 64 69 74 0a 58 0a 58 | 65 6d 70 74 79 72 75 6c |edit.X.X|emptyrul|
|00001060| 65 3a 3a 0a 58 0a 58 63 | 6c 65 61 6e 3a 20 6c 6f |e::.X.Xc|lean: lo|
|00001070| 63 61 6c 5f 63 6c 65 61 | 6e 0a 58 72 65 61 6c 63 |cal_clea|n.Xrealc|
|00001080| 6c 65 61 6e 3a 20 6c 6f | 63 61 6c 5f 72 65 61 6c |lean: lo|cal_real|
|00001090| 63 6c 65 61 6e 0a 58 63 | 6c 6f 62 62 65 72 3a 20 |clean.Xc|lobber: |
|000010a0| 6c 6f 63 61 6c 5f 63 6c | 6f 62 62 65 72 0a 58 0a |local_cl|obber.X.|
|000010b0| 58 6c 6f 63 61 6c 5f 63 | 6c 65 61 6e 3a 3a 0a 58 |Xlocal_c|lean::.X|
|000010c0| 09 24 28 52 4d 29 20 63 | 6f 72 65 20 2a 7e 20 2a |.$(RM) c|ore *~ *|
|000010d0| 2e 6f 0a 58 0a 58 6c 6f | 63 61 6c 5f 72 65 61 6c |.o.X.Xlo|cal_real|
|000010e0| 63 6c 65 61 6e 3a 3a 20 | 6c 6f 63 61 6c 5f 63 6c |clean:: |local_cl|
|000010f0| 65 61 6e 0a 58 0a 58 6c | 6f 63 61 6c 5f 63 6c 6f |ean.X.Xl|ocal_clo|
|00001100| 62 62 65 72 3a 3a 20 6c | 6f 63 61 6c 5f 72 65 61 |bber:: l|ocal_rea|
|00001110| 6c 63 6c 65 61 6e 0a 58 | 09 24 28 52 4d 29 20 4d |lclean.X|.$(RM) M|
|00001120| 61 6b 65 66 69 6c 65 20 | 63 6f 6e 66 69 67 2e 73 |akefile |config.s|
|00001130| 68 0a 58 0a 58 4d 61 6b | 65 66 69 6c 65 2e 53 48 |h.X.XMak|efile.SH|
|00001140| 3a 20 4a 6d 61 6b 65 66 | 69 6c 65 0a 58 09 2d 40 |: Jmakef|ile.X.-@|
|00001150| 69 66 20 74 65 73 74 20 | 2d 66 20 24 28 54 4f 50 |if test |-f $(TOP|
|00001160| 29 2f 2e 70 61 63 6b 61 | 67 65 3b 20 74 68 65 6e |)/.packa|ge; then|
|00001170| 20 5c 0a 58 09 09 69 66 | 20 74 65 73 74 20 2d 66 | \.X..if| test -f|
|00001180| 20 4d 61 6b 65 66 69 6c | 65 2e 53 48 3b 20 74 68 | Makefil|e.SH; th|
|00001190| 65 6e 20 5c 0a 58 09 09 | 09 65 63 68 6f 20 22 09 |en \.X..|.echo ".|
|000011a0| 24 28 52 4d 29 20 4d 61 | 6b 65 66 69 6c 65 2e 53 |$(RM) Ma|kefile.S|
|000011b0| 48 7e 3b 20 24 28 4d 56 | 29 20 4d 61 6b 65 66 69 |H~; $(MV|) Makefi|
|000011c0| 6c 65 2e 53 48 20 4d 61 | 6b 65 66 69 6c 65 2e 53 |le.SH Ma|kefile.S|
|000011d0| 48 7e 22 3b 20 5c 0a 58 | 09 09 09 24 28 52 4d 29 |H~"; \.X|...$(RM)|
|000011e0| 20 4d 61 6b 65 66 69 6c | 65 2e 53 48 7e 3b 20 24 | Makefil|e.SH~; $|
|000011f0| 28 4d 56 29 20 4d 61 6b | 65 66 69 6c 65 2e 53 48 |(MV) Mak|efile.SH|
|00001200| 20 4d 61 6b 65 66 69 6c | 65 2e 53 48 7e 3b 20 5c | Makefil|e.SH~; \|
|00001210| 0a 58 09 09 66 69 3b 20 | 5c 0a 58 09 09 65 63 68 |.X..fi; |\.X..ech|
|00001220| 6f 20 22 09 24 28 4a 4d | 41 4b 45 29 20 2d 44 54 |o ".$(JM|AKE) -DT|
|00001230| 4f 50 44 49 52 3d 24 28 | 54 4f 50 29 20 2d 44 43 |OPDIR=$(|TOP) -DC|
|00001240| 55 52 44 49 52 3d 24 28 | 43 55 52 52 45 4e 54 29 |URDIR=$(|CURRENT)|
|00001250| 22 20 3b 20 5c 0a 58 09 | 09 24 28 4a 4d 41 4b 45 |" ; \.X.|.$(JMAKE|
|00001260| 29 20 2d 44 54 4f 50 44 | 49 52 3d 24 28 54 4f 50 |) -DTOPD|IR=$(TOP|
|00001270| 29 20 2d 44 43 55 52 44 | 49 52 3d 24 28 43 55 52 |) -DCURD|IR=$(CUR|
|00001280| 52 45 4e 54 29 20 3b 20 | 5c 0a 58 09 65 6c 73 65 |RENT) ; |\.X.else|
|00001290| 20 74 6f 75 63 68 20 24 | 40 3b 20 65 78 69 74 20 | touch $|@; exit |
|000012a0| 30 3b 20 66 69 0a 58 0a | 58 4d 61 6b 65 66 69 6c |0; fi.X.|XMakefil|
|000012b0| 65 3a 20 4d 61 6b 65 66 | 69 6c 65 2e 53 48 0a 58 |e: Makef|ile.SH.X|
|000012c0| 09 2f 62 69 6e 2f 73 68 | 20 4d 61 6b 65 66 69 6c |./bin/sh| Makefil|
|000012d0| 65 2e 53 48 0a 58 0a 58 | 74 61 67 73 3a 3a 0a 58 |e.SH.X.X|tags::.X|
|000012e0| 09 24 28 43 54 41 47 53 | 29 20 2d 77 20 2a 2e 5b |.$(CTAGS|) -w *.[|
|000012f0| 63 68 5d 0a 58 09 24 28 | 43 54 41 47 53 29 20 2d |ch].X.$(|CTAGS) -|
|00001300| 78 77 20 2a 2e 5b 63 68 | 5d 20 3e 20 74 61 67 73 |xw *.[ch|] > tags|
|00001310| 0a 58 0a 58 6c 6f 63 61 | 6c 5f 63 6c 6f 62 62 65 |.X.Xloca|l_clobbe|
|00001320| 72 3a 3a 0a 58 09 24 28 | 52 4d 29 20 74 61 67 73 |r::.X.$(|RM) tags|
|00001330| 0a 58 0a 58 23 23 23 23 | 23 23 23 23 23 23 23 23 |.X.X####|########|
|00001340| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001350| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001360| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001370| 23 23 23 23 23 23 23 23 | 23 23 23 23 0a 58 23 20 |########|####.X# |
|00001380| 45 6d 70 74 79 20 72 75 | 6c 65 73 20 66 6f 72 20 |Empty ru|les for |
|00001390| 64 69 72 65 63 74 6f 72 | 69 65 73 20 77 69 74 68 |director|ies with|
|000013a0| 20 6e 6f 20 73 75 62 2d | 64 69 72 65 63 74 6f 72 | no sub-|director|
|000013b0| 69 65 73 20 2d 2d 20 64 | 6f 20 6e 6f 74 20 65 64 |ies -- d|o not ed|
|000013c0| 69 74 0a 58 0a 58 69 6e | 73 74 61 6c 6c 3a 3a 0a |it.X.Xin|stall::.|
|000013d0| 58 09 40 65 63 68 6f 20 | 22 69 6e 73 74 61 6c 6c |X.@echo |"install|
|000013e0| 20 69 6e 20 24 28 43 55 | 52 52 45 4e 54 29 20 64 | in $(CU|RRENT) d|
|000013f0| 6f 6e 65 2e 22 0a 58 0a | 58 64 65 69 6e 73 74 61 |one.".X.|Xdeinsta|
|00001400| 6c 6c 3a 3a 0a 58 09 40 | 65 63 68 6f 20 22 64 65 |ll::.X.@|echo "de|
|00001410| 69 6e 73 74 61 6c 6c 20 | 69 6e 20 24 28 43 55 52 |install |in $(CUR|
|00001420| 52 45 4e 54 29 20 64 6f | 6e 65 2e 22 0a 58 0a 58 |RENT) do|ne.".X.X|
|00001430| 69 6e 73 74 61 6c 6c 2e | 6d 61 6e 3a 3a 0a 58 09 |install.|man::.X.|
|00001440| 40 65 63 68 6f 20 22 69 | 6e 73 74 61 6c 6c 2e 6d |@echo "i|nstall.m|
|00001450| 61 6e 20 69 6e 20 24 28 | 43 55 52 52 45 4e 54 29 |an in $(|CURRENT)|
|00001460| 20 64 6f 6e 65 2e 22 0a | 58 0a 58 64 65 69 6e 73 | done.".|X.Xdeins|
|00001470| 74 61 6c 6c 2e 6d 61 6e | 3a 3a 0a 58 09 40 65 63 |tall.man|::.X.@ec|
|00001480| 68 6f 20 22 64 65 69 6e | 73 74 61 6c 6c 2e 6d 61 |ho "dein|stall.ma|
|00001490| 6e 20 69 6e 20 24 28 43 | 55 52 52 45 4e 54 29 20 |n in $(C|URRENT) |
|000014a0| 64 6f 6e 65 2e 22 0a 58 | 0a 58 4d 61 6b 65 66 69 |done.".X|.XMakefi|
|000014b0| 6c 65 73 3a 3a 0a 58 0a | 58 4d 61 6b 65 66 69 6c |les::.X.|XMakefil|
|000014c0| 65 73 2e 53 48 3a 3a 0a | 58 0a 58 21 4e 4f 21 53 |es.SH::.|X.X!NO!S|
|000014d0| 55 42 53 21 0a 58 63 68 | 6d 6f 64 20 36 34 34 20 |UBS!.Xch|mod 644 |
|000014e0| 4d 61 6b 65 66 69 6c 65 | 0a 58 24 65 75 6e 69 63 |Makefile|.X$eunic|
|000014f0| 65 66 69 78 20 4d 61 6b | 65 66 69 6c 65 0a 58 0a |efix Mak|efile.X.|
|00001500| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 20 20 69 66 |END_OF_F|ILE. if|
|00001510| 20 74 65 73 74 20 33 35 | 31 38 20 2d 6e 65 20 60 | test 35|18 -ne `|
|00001520| 77 63 20 2d 63 20 3c 27 | 61 67 65 6e 74 2f 66 69 |wc -c <'|agent/fi|
|00001530| 6c 65 73 2f 4d 61 6b 65 | 66 69 6c 65 2e 53 48 27 |les/Make|file.SH'|
|00001540| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00001550| 20 73 68 61 72 3a 20 5c | 22 27 61 67 65 6e 74 2f | shar: \|"'agent/|
|00001560| 66 69 6c 65 73 2f 4d 61 | 6b 65 66 69 6c 65 2e 53 |files/Ma|kefile.S|
|00001570| 48 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |H'\" unp|acked wi|
|00001580| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 20 |th wrong| size!. |
|00001590| 20 66 69 0a 20 20 63 68 | 6d 6f 64 20 2b 78 20 27 | fi. ch|mod +x '|
|000015a0| 61 67 65 6e 74 2f 66 69 | 6c 65 73 2f 4d 61 6b 65 |agent/fi|les/Make|
|000015b0| 66 69 6c 65 2e 53 48 27 | 0a 20 20 23 20 65 6e 64 |file.SH'|. # end|
|000015c0| 20 6f 66 20 27 61 67 65 | 6e 74 2f 66 69 6c 65 73 | of 'age|nt/files|
|000015d0| 2f 4d 61 6b 65 66 69 6c | 65 2e 53 48 27 0a 66 69 |/Makefil|e.SH'.fi|
|000015e0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 61 67 65 |.if test| -f 'age|
|000015f0| 6e 74 2f 66 69 6c 65 73 | 2f 6d 61 69 6c 61 67 65 |nt/files|/mailage|
|00001600| 6e 74 2e 63 66 27 20 2d | 61 20 22 24 7b 31 7d 22 |nt.cf' -|a "${1}"|
|00001610| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00001620| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00001630| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00001640| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00001650| 61 67 65 6e 74 2f 66 69 | 6c 65 73 2f 6d 61 69 6c |agent/fi|les/mail|
|00001660| 61 67 65 6e 74 2e 63 66 | 27 5c 22 0a 65 6c 73 65 |agent.cf|'\".else|
|00001670| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |. echo |shar: Ex|
|00001680| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 61 67 65 6e |tracting| \"'agen|
|00001690| 74 2f 66 69 6c 65 73 2f | 6d 61 69 6c 61 67 65 6e |t/files/|mailagen|
|000016a0| 74 2e 63 66 27 5c 22 20 | 5c 28 32 35 31 38 20 63 |t.cf'\" |\(2518 c|
|000016b0| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 20 20 73 65 |haracter|s\). se|
|000016c0| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 61 67 65 |d "s/^X/|/" >'age|
|000016d0| 6e 74 2f 66 69 6c 65 73 | 2f 6d 61 69 6c 61 67 65 |nt/files|/mailage|
|000016e0| 6e 74 2e 63 66 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |nt.cf' <|<'END_OF|
|000016f0| 5f 46 49 4c 45 27 0a 58 | 23 0a 58 23 20 43 6f 6e |_FILE'.X|#.X# Con|
|00001700| 66 69 67 75 72 61 74 69 | 6f 6e 20 66 69 6c 65 20 |figurati|on file |
|00001710| 66 6f 72 20 6d 61 69 6c | 61 67 65 6e 74 0a 58 23 |for mail|agent.X#|
|00001720| 0a 58 0a 58 23 20 24 49 | 64 3a 20 6d 61 69 6c 61 |.X.X# $I|d: maila|
|00001730| 67 65 6e 74 2e 63 66 2c | 76 20 32 2e 39 2e 31 2e |gent.cf,|v 2.9.1.|
|00001740| 31 20 39 32 2f 30 38 2f | 30 32 20 31 35 3a 35 32 |1 92/08/|02 15:52|
|00001750| 3a 34 32 20 72 61 6d 20 | 45 78 70 20 24 0a 58 23 |:42 ram |Exp $.X#|
|00001760| 0a 58 23 20 20 43 6f 70 | 79 72 69 67 68 74 20 28 |.X# Cop|yright (|
|00001770| 63 29 20 31 39 39 31 2c | 20 52 61 70 68 61 65 6c |c) 1991,| Raphael|
|00001780| 20 4d 61 6e 66 72 65 64 | 69 0a 58 23 0a 58 23 20 | Manfred|i.X#.X# |
|00001790| 20 59 6f 75 20 6d 61 79 | 20 72 65 64 69 73 74 72 | You may| redistr|
|000017a0| 69 62 75 74 65 20 6f 6e | 6c 79 20 75 6e 64 65 72 |ibute on|ly under|
|000017b0| 20 74 68 65 20 74 65 72 | 6d 73 20 6f 66 20 74 68 | the ter|ms of th|
|000017c0| 65 20 47 4e 55 20 47 65 | 6e 65 72 61 6c 20 50 75 |e GNU Ge|neral Pu|
|000017d0| 62 6c 69 63 0a 58 23 20 | 20 4c 69 63 65 6e 63 65 |blic.X# | Licence|
|000017e0| 20 61 73 20 73 70 65 63 | 69 66 69 65 64 20 69 6e | as spec|ified in|
|000017f0| 20 74 68 65 20 52 45 41 | 44 4d 45 20 66 69 6c 65 | the REA|DME file|
|00001800| 20 74 68 61 74 20 63 6f | 6d 65 73 20 77 69 74 68 | that co|mes with|
|00001810| 20 64 69 73 74 2e 0a 58 | 23 0a 58 23 20 24 4c 6f | dist..X|#.X# $Lo|
|00001820| 67 3a 09 6d 61 69 6c 61 | 67 65 6e 74 2e 63 66 2c |g:.maila|gent.cf,|
|00001830| 76 20 24 0a 58 23 20 52 | 65 76 69 73 69 6f 6e 20 |v $.X# R|evision |
|00001840| 32 2e 39 2e 31 2e 31 20 | 20 39 32 2f 30 38 2f 30 |2.9.1.1 | 92/08/0|
|00001850| 32 20 20 31 35 3a 35 32 | 3a 34 32 20 20 72 61 6d |2 15:52|:42 ram|
|00001860| 0a 58 23 20 70 61 74 63 | 68 32 3a 20 6e 65 77 20 |.X# patc|h2: new |
|00001870| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 70 61 |configur|ation pa|
|00001880| 72 61 6d 65 74 65 72 20 | 74 6f 20 73 70 65 63 69 |rameter |to speci|
|00001890| 66 79 20 6d 61 69 6c 62 | 6f 78 20 66 69 6c 65 0a |fy mailb|ox file.|
|000018a0| 58 23 20 0a 58 23 20 52 | 65 76 69 73 69 6f 6e 20 |X# .X# R|evision |
|000018b0| 32 2e 39 20 20 39 32 2f | 30 37 2f 31 34 20 20 31 |2.9 92/|07/14 1|
|000018c0| 36 3a 34 37 3a 35 31 20 | 20 72 61 6d 0a 58 23 20 |6:47:51 | ram.X# |
|000018d0| 33 2e 30 20 62 65 74 61 | 20 62 61 73 65 6c 69 6e |3.0 beta| baselin|
|000018e0| 65 2e 0a 58 23 20 0a 58 | 0a 58 23 0a 58 23 20 43 |e..X# .X|.X#.X# C|
|000018f0| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 20 73 65 63 |onfigura|tion sec|
|00001900| 74 69 6f 6e 0a 58 23 0a | 58 0a 58 23 20 50 61 72 |tion.X#.|X.X# Par|
|00001910| 61 6d 74 65 72 73 20 6c | 69 6b 65 6c 79 20 74 6f |amters l|ikely to|
|00001920| 20 63 68 61 6e 67 65 0a | 58 68 6f 6d 65 20 20 20 | change.|Xhome |
|00001930| 20 20 3a 20 2f 6c 79 6f | 6e 2f 72 61 6d 09 09 09 | : /lyo|n/ram...|
|00001940| 23 20 48 6f 6d 65 20 64 | 69 72 65 63 74 6f 72 79 |# Home d|irectory|
|00001950| 20 28 6d 75 73 74 20 62 | 65 20 63 6f 72 72 65 63 | (must b|e correc|
|00001960| 74 6c 79 20 73 65 74 29 | 0a 58 6c 65 76 65 6c 20 |tly set)|.Xlevel |
|00001970| 20 20 20 3a 20 39 09 09 | 09 09 09 23 20 4c 6f 67 | : 9..|...# Log|
|00001980| 67 69 6e 67 20 6c 65 76 | 65 6c 0a 58 74 6d 70 64 |ging lev|el.Xtmpd|
|00001990| 69 72 20 20 20 3a 20 2f | 74 6d 70 09 09 09 09 09 |ir : /|tmp.....|
|000019a0| 23 20 54 65 6d 70 6f 72 | 61 72 79 20 64 69 72 65 |# Tempor|ary dire|
|000019b0| 63 74 6f 72 79 20 74 6f | 20 62 65 20 75 73 65 64 |ctory to| be used|
|000019c0| 0a 58 65 6d 65 72 67 64 | 69 72 20 3a 20 7e 2f 74 |.Xemergd|ir : ~/t|
|000019d0| 6d 70 2f 6c 6f 73 74 2b | 6d 61 69 6c 09 09 23 20 |mp/lost+|mail..# |
|000019e0| 45 6d 65 72 67 65 6e 63 | 79 20 64 69 72 65 63 74 |Emergenc|y direct|
|000019f0| 6f 72 79 20 28 66 6f 72 | 20 64 75 6d 70 73 29 0a |ory (for| dumps).|
|00001a00| 58 74 72 61 63 6b 20 20 | 20 20 3a 20 4f 46 46 09 |Xtrack | : OFF.|
|00001a10| 09 09 09 09 23 20 54 72 | 61 63 6b 20 6d 61 74 63 |....# Tr|ack matc|
|00001a20| 68 65 73 20 6f 6e 20 73 | 74 64 6f 75 74 20 28 6f |hes on s|tdout (o|
|00001a30| 6e 2f 6f 66 66 29 0a 58 | 0a 58 23 20 4d 69 6e 69 |n/off).X|.X# Mini|
|00001a40| 6d 75 6d 20 70 61 74 68 | 20 74 6f 20 65 6e 73 75 |mum path| to ensu|
|00001a50| 72 65 20 61 6e 64 20 70 | 61 74 68 20 64 65 70 65 |re and p|ath depe|
|00001a60| 6e 64 69 6e 67 20 6f 6e | 20 74 68 65 20 6d 61 63 |nding on| the mac|
|00001a70| 68 69 6e 65 0a 58 70 61 | 74 68 20 20 20 20 20 3a |hine.Xpa|th :|
|00001a80| 20 2f 62 69 6e 3a 2f 75 | 73 72 2f 62 69 6e 3a 2f | /bin:/u|sr/bin:/|
|00001a90| 75 73 72 2f 75 63 62 0a | 58 70 5f 79 6f 72 6b 20 |usr/ucb.|Xp_york |
|00001aa0| 20 20 3a 20 7e 2f 62 69 | 6e 3a 7e 2f 62 69 6e 2f | : ~/bi|n:~/bin/|
|00001ab0| 72 73 32 30 33 30 0a 58 | 70 5f 6c 79 6f 6e 20 20 |rs2030.X|p_lyon |
|00001ac0| 20 3a 20 7e 2f 62 69 6e | 3a 7e 2f 62 69 6e 2f 72 | : ~/bin|:~/bin/r|
|00001ad0| 73 32 30 33 30 0a 58 70 | 5f 72 6f 6d 65 20 20 20 |s2030.Xp|_rome |
|00001ae0| 3a 20 7e 2f 62 69 6e 3a | 7e 2f 62 69 6e 2f 73 75 |: ~/bin:|~/bin/su|
|00001af0| 6e 34 3a 2f 62 61 73 65 | 2f 63 6f 6d 6d 6f 6e 2f |n4:/base|/common/|
|00001b00| 47 45 4e 45 52 41 4c 2f | 73 75 6e 34 2f 62 69 6e |GENERAL/|sun4/bin|
|00001b10| 0a 58 0a 58 23 20 55 73 | 65 72 20 77 68 6f 20 72 |.X.X# Us|er who r|
|00001b20| 75 6e 73 20 6d 61 69 6c | 61 67 65 6e 74 0a 58 75 |uns mail|agent.Xu|
|00001b30| 73 65 72 20 20 20 20 20 | 3a 20 72 61 6d 0a 58 6e |ser |: ram.Xn|
|00001b40| 61 6d 65 20 20 20 20 20 | 3a 20 52 61 70 68 61 65 |ame |: Raphae|
|00001b50| 6c 0a 58 0a 58 23 20 56 | 61 63 61 74 69 6f 6e 20 |l.X.X# V|acation |
|00001b60| 6d 6f 64 65 20 28 6f 6e | 2f 6f 66 66 29 2c 20 76 |mode (on|/off), v|
|00001b70| 61 63 61 74 69 6f 6e 20 | 66 69 6c 65 20 61 6e 64 |acation |file and|
|00001b80| 20 70 65 72 69 6f 64 0a | 58 76 61 63 61 74 69 6f | period.|Xvacatio|
|00001b90| 6e 20 3a 20 4f 46 46 09 | 09 09 09 09 23 20 56 61 |n : OFF.|....# Va|
|00001ba0| 63 61 74 69 6f 6e 20 6d | 6f 64 65 20 6f 6e 2f 6f |cation m|ode on/o|
|00001bb0| 66 66 0a 58 76 61 63 66 | 69 6c 65 20 20 3a 20 7e |ff.Xvacf|ile : ~|
|00001bc0| 2f 2e 76 61 63 61 74 69 | 6f 6e 09 09 09 23 20 46 |/.vacati|on...# F|
|00001bd0| 69 6c 65 20 74 6f 20 62 | 65 20 73 65 6e 74 20 62 |ile to b|e sent b|
|00001be0| 61 63 6b 0a 58 76 61 63 | 70 65 72 69 6f 64 3a 20 |ack.Xvac|period: |
|00001bf0| 31 64 09 09 09 09 09 23 | 20 50 65 72 69 6f 64 20 |1d.....#| Period |
|00001c00| 62 65 74 77 65 65 6e 20 | 74 77 6f 20 76 61 63 61 |between |two vaca|
|00001c10| 74 69 6f 6e 20 6d 65 73 | 73 61 67 65 73 0a 58 0a |tion mes|sages.X.|
|00001c20| 58 0a 58 23 0a 58 23 20 | 50 61 72 61 6d 65 74 65 |X.X#.X# |Paramete|
|00001c30| 72 73 20 77 68 69 63 68 | 20 73 68 6f 75 6c 64 20 |rs which| should |
|00001c40| 6e 6f 74 20 63 68 61 6e | 67 65 20 76 65 72 79 20 |not chan|ge very |
|00001c50| 6f 66 74 65 6e 0a 58 23 | 0a 58 0a 58 23 20 44 65 |often.X#|.X.X# De|
|00001c60| 66 69 6e 65 20 6d 61 69 | 6e 20 63 6f 6e 66 69 67 |fine mai|n config|
|00001c70| 75 72 61 74 69 6f 6e 20 | 70 61 72 61 6d 65 74 65 |uration |paramete|
|00001c80| 72 73 0a 58 73 70 6f 6f | 6c 20 20 20 20 3a 20 7e |rs.Xspoo|l : ~|
|00001c90| 2f 76 61 72 2f 6d 61 69 | 6c 61 67 65 6e 74 09 09 |/var/mai|lagent..|
|00001ca0| 23 20 53 70 6f 6f 6c 20 | 64 69 72 65 63 74 6f 72 |# Spool |director|
|00001cb0| 79 0a 58 71 75 65 75 65 | 20 20 20 20 3a 20 24 73 |y.Xqueue| : $s|
|00001cc0| 70 6f 6f 6c 2f 71 75 65 | 75 65 09 09 09 23 20 51 |pool/que|ue...# Q|
|00001cd0| 75 65 75 65 20 64 69 72 | 65 63 74 6f 72 79 20 28 |ueue dir|ectory (|
|00001ce0| 6d 75 73 74 20 65 78 69 | 73 74 29 0a 58 6c 6f 67 |must exi|st).Xlog|
|00001cf0| 64 69 72 20 20 20 3a 20 | 7e 2f 76 61 72 2f 6c 6f |dir : |~/var/lo|
|00001d00| 67 09 09 09 23 20 57 68 | 65 72 65 20 6c 6f 67 66 |g...# Wh|ere logf|
|00001d10| 69 6c 65 20 69 73 20 73 | 74 6f 72 65 64 0a 58 63 |ile is s|tored.Xc|
|00001d20| 6f 6e 74 65 78 74 20 20 | 3a 20 24 73 70 6f 6f 6c |ontext |: $spool|
|00001d30| 2f 63 6f 6e 74 65 78 74 | 09 09 23 20 4d 61 69 6c |/context|..# Mail|
|00001d40| 61 67 65 6e 74 27 73 20 | 63 6f 6e 74 65 78 74 20 |agent's |context |
|00001d50| 66 69 6c 65 0a 58 6c 6f | 67 20 20 20 20 20 20 3a |file.Xlo|g :|
|00001d60| 20 61 67 65 6e 74 6c 6f | 67 09 09 09 09 23 20 4c | agentlo|g....# L|
|00001d70| 6f 67 20 66 69 6c 65 20 | 69 73 20 69 6e 20 24 6c |og file |is in $l|
|00001d80| 6f 67 64 69 72 0a 58 73 | 65 71 20 20 20 20 20 20 |ogdir.Xs|eq |
|00001d90| 3a 20 2e 73 65 71 09 09 | 09 09 09 23 20 53 65 71 |: .seq..|...# Seq|
|00001da0| 20 66 69 6c 65 20 69 73 | 20 69 6e 20 24 73 70 6f | file is| in $spo|
|00001db0| 6f 6c 0a 58 74 69 6d 65 | 7a 6f 6e 65 20 3a 20 50 |ol.Xtime|zone : P|
|00001dc0| 53 54 38 50 44 54 09 09 | 09 09 23 20 54 69 6d 65 |ST8PDT..|..# Time|
|00001dd0| 20 7a 6f 6e 65 20 6c 6f | 63 61 74 69 6f 6e 0a 58 | zone lo|cation.X|
|00001de0| 73 74 61 74 66 69 6c 65 | 20 3a 20 24 73 70 6f 6f |statfile| : $spoo|
|00001df0| 6c 2f 6d 61 69 6c 61 67 | 65 6e 74 2e 73 74 09 23 |l/mailag|ent.st.#|
|00001e00| 20 53 74 61 74 69 73 74 | 69 63 73 20 66 69 6c 65 | Statist|ics file|
|00001e10| 0a 58 72 75 6c 65 73 20 | 20 20 20 3a 20 7e 2f 2e |.Xrules | : ~/.|
|00001e20| 72 75 6c 65 73 09 09 09 | 09 23 20 46 69 6c 74 65 |rules...|.# Filte|
|00001e30| 72 27 73 20 72 75 6c 65 | 73 20 6c 6f 63 61 74 69 |r's rule|s locati|
|00001e40| 6f 6e 20 28 6f 70 74 69 | 6f 6e 61 6c 29 0a 58 6d |on (opti|onal).Xm|
|00001e50| 61 69 6c 64 72 6f 70 20 | 3a 20 2f 75 73 72 2f 6d |aildrop |: /usr/m|
|00001e60| 61 69 6c 09 09 09 23 20 | 53 79 73 74 65 6d 20 6d |ail...# |System m|
|00001e70| 61 69 6c 20 64 72 6f 70 | 20 64 69 72 65 63 74 6f |ail drop| directo|
|00001e80| 72 79 20 28 6f 70 74 69 | 6f 6e 61 6c 29 0a 58 6d |ry (opti|onal).Xm|
|00001e90| 61 69 6c 62 6f 78 20 20 | 3a 20 24 75 73 65 72 09 |ailbox |: $user.|
|00001ea0| 09 09 09 23 20 4d 61 69 | 6c 62 6f 78 20 66 69 6c |...# Mai|lbox fil|
|00001eb0| 65 20 6e 61 6d 65 20 28 | 6f 70 74 69 6f 6e 61 6c |e name (|optional|
|00001ec0| 29 0a 58 0a 58 23 20 44 | 61 74 61 62 61 73 65 20 |).X.X# D|atabase |
|00001ed0| 68 61 73 68 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |hashing |director|
|00001ee0| 79 20 28 69 6e 20 24 73 | 70 6f 6f 6c 29 20 61 6e |y (in $s|pool) an|
|00001ef0| 64 20 6f 74 68 65 72 20 | 63 6f 6e 74 72 6f 6c 73 |d other |controls|
|00001f00| 0a 58 68 61 73 68 20 20 | 20 20 20 3a 20 64 62 72 |.Xhash | : dbr|
|00001f10| 09 09 09 09 09 23 20 48 | 61 73 68 69 6e 67 20 64 |.....# H|ashing d|
|00001f20| 69 72 65 63 74 6f 72 79 | 0a 58 63 6c 65 61 6e 6c |irectory|.Xcleanl|
|00001f30| 61 70 73 3a 20 31 4d 09 | 09 09 09 09 23 20 4c 61 |aps: 1M.|....# La|
|00001f40| 70 73 20 62 65 74 77 65 | 65 6e 20 63 6c 65 61 6e |ps betwe|en clean|
|00001f50| 69 6e 67 73 0a 58 61 75 | 74 6f 63 6c 65 61 6e 3a |ings.Xau|toclean:|
|00001f60| 20 4f 4e 09 09 09 09 09 | 23 20 54 75 72 6e 20 70 | ON.....|# Turn p|
|00001f70| 65 72 69 6f 64 69 63 20 | 63 6c 65 61 6e 69 6e 67 |eriodic |cleaning|
|00001f80| 20 6f 6e 2f 6f 66 66 0a | 58 61 67 65 6d 61 78 20 | on/off.|Xagemax |
|00001f90| 20 20 3a 20 31 79 09 09 | 09 09 09 23 20 4d 61 78 | : 1y..|...# Max|
|00001fa0| 69 6d 75 6d 20 6c 69 66 | 65 74 69 6d 65 20 66 6f |imum lif|etime fo|
|00001fb0| 72 20 65 6e 74 72 69 65 | 73 0a 58 0a 58 0a 58 23 |r entrie|s.X.X.X#|
|00001fc0| 0a 58 23 20 50 61 72 61 | 6d 65 74 65 72 73 20 66 |.X# Para|meters f|
|00001fd0| 6f 72 20 50 52 4f 43 45 | 53 53 0a 58 23 0a 58 0a |or PROCE|SS.X#.X.|
|00001fe0| 58 63 6f 6d 66 69 6c 65 | 20 20 3a 20 24 73 70 6f |Xcomfile| : $spo|
|00001ff0| 6f 6c 2f 63 6f 6d 6d 61 | 6e 64 73 09 09 23 20 56 |ol/comma|nds..# V|
|00002000| 61 6c 69 64 20 63 6f 6d | 6d 61 6e 64 73 0a 58 64 |alid com|mands.Xd|
|00002010| 69 73 74 6c 69 73 74 20 | 3a 20 24 73 70 6f 6f 6c |istlist |: $spool|
|00002020| 2f 64 69 73 74 72 69 62 | 73 09 09 23 20 44 69 73 |/distrib|s..# Dis|
|00002030| 74 72 69 62 75 74 69 6f | 6e 20 6c 69 73 74 0a 58 |tributio|n list.X|
|00002040| 70 72 6f 67 6c 69 73 74 | 20 3a 20 24 73 70 6f 6f |proglist| : $spoo|
|00002050| 6c 2f 70 72 6f 67 6c 69 | 73 74 09 09 23 20 50 72 |l/progli|st..# Pr|
|00002060| 6f 67 72 61 6d 20 64 65 | 73 63 72 69 70 74 69 6f |ogram de|scriptio|
|00002070| 6e 20 6c 69 73 74 0a 58 | 6d 61 78 73 69 7a 65 20 |n list.X|maxsize |
|00002080| 20 3a 20 31 35 30 30 30 | 30 09 09 09 09 23 20 4d | : 15000|0....# M|
|00002090| 61 78 69 6d 75 6d 20 73 | 69 7a 65 20 62 65 66 6f |aximum s|ize befo|
|000020a0| 72 65 20 6b 69 74 69 6e | 67 0a 58 70 6c 73 61 76 |re kitin|g.Xplsav|
|000020b0| 65 20 20 20 3a 20 24 73 | 70 6f 6f 6c 2f 70 6c 73 |e : $s|pool/pls|
|000020c0| 61 76 65 09 09 23 20 57 | 68 65 72 65 20 70 61 74 |ave..# W|here pat|
|000020d0| 63 68 6c 65 76 65 6c 73 | 20 61 72 65 20 73 61 76 |chlevels| are sav|
|000020e0| 65 64 0a 58 61 75 74 68 | 66 69 6c 65 20 3a 20 24 |ed.Xauth|file : $|
|000020f0| 73 70 6f 6f 6c 2f 61 75 | 74 68 09 09 09 23 20 52 |spool/au|th...# R|
|00002100| 65 6d 6f 74 65 20 73 65 | 6e 64 69 6e 67 20 61 75 |emote se|nding au|
|00002110| 74 68 6f 72 69 7a 61 74 | 69 6f 6e 73 0a 45 4e 44 |thorizat|ions.END|
|00002120| 5f 4f 46 5f 46 49 4c 45 | 0a 20 20 69 66 20 74 65 |_OF_FILE|. if te|
|00002130| 73 74 20 32 35 31 38 20 | 2d 6e 65 20 60 77 63 20 |st 2518 |-ne `wc |
|00002140| 2d 63 20 3c 27 61 67 65 | 6e 74 2f 66 69 6c 65 73 |-c <'age|nt/files|
|00002150| 2f 6d 61 69 6c 61 67 65 | 6e 74 2e 63 66 27 60 3b |/mailage|nt.cf'`;|
|00002160| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00002170| 68 61 72 3a 20 5c 22 27 | 61 67 65 6e 74 2f 66 69 |har: \"'|agent/fi|
|00002180| 6c 65 73 2f 6d 61 69 6c | 61 67 65 6e 74 2e 63 66 |les/mail|agent.cf|
|00002190| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|000021a0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 20 20 |h wrong |size!. |
|000021b0| 66 69 0a 20 20 23 20 65 | 6e 64 20 6f 66 20 27 61 |fi. # e|nd of 'a|
|000021c0| 67 65 6e 74 2f 66 69 6c | 65 73 2f 6d 61 69 6c 61 |gent/fil|es/maila|
|000021d0| 67 65 6e 74 2e 63 66 27 | 0a 66 69 0a 69 66 20 74 |gent.cf'|.fi.if t|
|000021e0| 65 73 74 20 2d 66 20 27 | 61 67 65 6e 74 2f 66 69 |est -f '|agent/fi|
|000021f0| 6c 74 65 72 2f 6c 6f 63 | 6b 2e 63 27 20 2d 61 20 |lter/loc|k.c' -a |
|00002200| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00002210| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00002220| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00002230| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00002240| 6c 65 20 5c 22 27 61 67 | 65 6e 74 2f 66 69 6c 74 |le \"'ag|ent/filt|
|00002250| 65 72 2f 6c 6f 63 6b 2e | 63 27 5c 22 0a 65 6c 73 |er/lock.|c'\".els|
|00002260| 65 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 45 |e. echo| shar: E|
|00002270| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 61 67 65 |xtractin|g \"'age|
|00002280| 6e 74 2f 66 69 6c 74 65 | 72 2f 6c 6f 63 6b 2e 63 |nt/filte|r/lock.c|
|00002290| 27 5c 22 20 5c 28 32 35 | 32 35 20 63 68 61 72 61 |'\" \(25|25 chara|
|000022a0| 63 74 65 72 73 5c 29 0a | 20 20 73 65 64 20 22 73 |cters\).| sed "s|
|000022b0| 2f 5e 58 2f 2f 22 20 3e | 27 61 67 65 6e 74 2f 66 |/^X//" >|'agent/f|
|000022c0| 69 6c 74 65 72 2f 6c 6f | 63 6b 2e 63 27 20 3c 3c |ilter/lo|ck.c' <<|
|000022d0| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 2f |'END_OF_|FILE'.X/|
|000022e0| 2a 0a 58 0a 58 20 23 20 | 20 20 20 20 20 20 20 23 |*.X.X # | #|
|000022f0| 23 23 23 20 20 20 20 23 | 23 23 23 20 20 20 23 20 |### #|### # |
|00002300| 20 20 20 23 20 20 20 20 | 20 20 20 20 20 20 20 23 | # | #|
|00002310| 23 23 23 0a 58 20 23 20 | 20 20 20 20 20 20 23 20 |###.X # | # |
|00002320| 20 20 20 23 20 20 23 20 | 20 20 20 23 20 20 23 20 | # # | # # |
|00002330| 20 20 23 20 20 20 20 20 | 20 20 20 20 20 20 23 20 | # | # |
|00002340| 20 20 20 23 0a 58 20 23 | 20 20 20 20 20 20 20 23 | #.X #| #|
|00002350| 20 20 20 20 23 20 20 23 | 20 20 20 20 20 20 20 23 | # #| #|
|00002360| 23 23 23 20 20 20 20 20 | 20 20 20 20 20 20 20 23 |### | #|
|00002370| 0a 58 20 23 20 20 20 20 | 20 20 20 23 20 20 20 20 |.X # | # |
|00002380| 23 20 20 23 20 20 20 20 | 20 20 20 23 20 20 23 20 |# # | # # |
|00002390| 20 20 20 20 23 23 23 20 | 20 20 20 23 0a 58 20 23 | ### | #.X #|
|000023a0| 20 20 20 20 20 20 20 23 | 20 20 20 20 23 20 20 23 | #| # #|
|000023b0| 20 20 20 20 23 20 20 23 | 20 20 20 23 20 20 20 20 | # #| # |
|000023c0| 23 23 23 20 20 20 20 23 | 20 20 20 20 23 0a 58 20 |### #| #.X |
|000023d0| 23 23 23 23 23 23 20 20 | 20 23 23 23 23 20 20 20 |###### | #### |
|000023e0| 20 23 23 23 23 20 20 20 | 23 20 20 20 20 23 20 20 | #### |# # |
|000023f0| 20 23 23 23 20 20 20 20 | 20 23 23 23 23 0a 58 0a | ### | ####.X.|
|00002400| 58 09 4c 6f 63 6b 20 66 | 69 6c 65 20 68 61 6e 64 |X.Lock f|ile hand|
|00002410| 6c 69 6e 67 2e 0a 58 2a | 2f 0a 58 0a 58 23 69 6e |ling..X*|/.X.X#in|
|00002420| 63 6c 75 64 65 20 22 63 | 6f 6e 66 69 67 2e 68 22 |clude "c|onfig.h"|
|00002430| 0a 58 23 69 6e 63 6c 75 | 64 65 20 22 70 6f 72 74 |.X#inclu|de "port|
|00002440| 61 62 6c 65 2e 68 22 0a | 58 23 69 6e 63 6c 75 64 |able.h".|X#includ|
|00002450| 65 20 3c 65 72 72 6e 6f | 2e 68 3e 0a 58 23 69 6e |e <errno|.h>.X#in|
|00002460| 63 6c 75 64 65 20 3c 73 | 79 73 2f 74 79 70 65 73 |clude <s|ys/types|
|00002470| 2e 68 3e 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 73 |.h>.X#in|clude <s|
|00002480| 79 73 2f 73 74 61 74 2e | 68 3e 0a 58 0a 58 23 69 |ys/stat.|h>.X.X#i|
|00002490| 66 64 65 66 20 49 5f 46 | 43 4e 54 4c 0a 58 23 69 |fdef I_F|CNTL.X#i|
|000024a0| 6e 63 6c 75 64 65 20 3c | 66 63 6e 74 6c 2e 68 3e |nclude <|fcntl.h>|
|000024b0| 0a 58 23 65 6c 73 65 0a | 58 23 69 6e 63 6c 75 64 |.X#else.|X#includ|
|000024c0| 65 20 3c 73 79 73 2f 66 | 63 6e 74 6c 2e 68 3e 0a |e <sys/f|cntl.h>.|
|000024d0| 58 23 65 6e 64 69 66 0a | 58 23 69 66 64 65 66 20 |X#endif.|X#ifdef |
|000024e0| 49 5f 53 59 53 46 49 4c | 45 0a 58 23 69 6e 63 6c |I_SYSFIL|E.X#incl|
|000024f0| 75 64 65 20 3c 73 79 73 | 2f 66 69 6c 65 2e 68 3e |ude <sys|/file.h>|
|00002500| 0a 58 23 65 6e 64 69 66 | 0a 58 0a 58 23 64 65 66 |.X#endif|.X.X#def|
|00002510| 69 6e 65 20 4d 41 58 5f | 53 54 52 49 4e 47 09 32 |ine MAX_|STRING.2|
|00002520| 30 34 38 09 09 2f 2a 20 | 4d 61 78 20 73 74 72 69 |048../* |Max stri|
|00002530| 6e 67 20 6c 65 6e 67 74 | 68 20 2a 2f 0a 58 23 64 |ng lengt|h */.X#d|
|00002540| 65 66 69 6e 65 20 4d 41 | 58 5f 54 49 4d 45 09 33 |efine MA|X_TIME.3|
|00002550| 36 30 30 09 09 2f 2a 20 | 4f 6e 65 20 68 6f 75 72 |600../* |One hour|
|00002560| 20 2a 2f 0a 58 0a 58 70 | 72 69 76 61 74 65 20 63 | */.X.Xp|rivate c|
|00002570| 68 61 72 20 6c 6f 63 6b | 66 69 6c 65 5b 4d 41 58 |har lock|file[MAX|
|00002580| 5f 53 54 52 49 4e 47 5d | 3b 09 09 2f 2a 20 4c 6f |_STRING]|;../* Lo|
|00002590| 63 61 74 69 6f 6e 20 6f | 66 20 6c 6f 63 6b 20 66 |cation o|f lock f|
|000025a0| 69 6c 65 20 2a 2f 0a 58 | 70 72 69 76 61 74 65 20 |ile */.X|private |
|000025b0| 69 6e 74 20 6c 6f 63 6b | 65 64 20 3d 20 30 3b 09 |int lock|ed = 0;.|
|000025c0| 09 09 09 09 2f 2a 20 44 | 69 64 20 77 65 20 6c 6f |..../* D|id we lo|
|000025d0| 63 6b 20 73 75 63 63 65 | 73 73 66 75 6c 6c 79 3f |ck succe|ssfully?|
|000025e0| 20 2a 2f 0a 58 0a 58 70 | 72 69 76 61 74 65 20 76 | */.X.Xp|rivate v|
|000025f0| 6f 69 64 20 63 68 65 63 | 6b 5f 6c 6f 63 6b 28 29 |oid chec|k_lock()|
|00002600| 3b 09 09 09 09 2f 2a 20 | 4d 61 6b 65 20 73 75 72 |;..../* |Make sur|
|00002610| 65 20 6c 6f 63 6b 66 69 | 6c 65 20 69 73 20 6e 6f |e lockfi|le is no|
|00002620| 74 20 74 6f 6f 20 6f 6c | 64 20 2a 2f 0a 58 0a 58 |t too ol|d */.X.X|
|00002630| 65 78 74 65 72 6e 20 69 | 6e 74 20 65 72 72 6e 6f |extern i|nt errno|
|00002640| 3b 09 09 09 09 09 09 2f | 2a 20 53 79 73 74 65 6d |;....../|* System|
|00002650| 20 65 72 72 6f 72 20 73 | 74 61 74 75 73 20 2a 2f | error s|tatus */|
|00002660| 0a 58 65 78 74 65 72 6e | 20 54 69 6d 65 5f 74 20 |.Xextern| Time_t |
|00002670| 74 69 6d 65 28 29 3b 09 | 09 09 09 09 2f 2a 20 43 |time();.|..../* C|
|00002680| 75 72 72 65 6e 74 20 74 | 69 6d 65 20 2a 2f 0a 58 |urrent t|ime */.X|
|00002690| 0a 58 70 75 62 6c 69 63 | 20 69 6e 74 20 66 69 6c |.Xpublic| int fil|
|000026a0| 74 65 72 5f 6c 6f 63 6b | 28 64 69 72 29 0a 58 63 |ter_lock|(dir).Xc|
|000026b0| 68 61 72 20 2a 64 69 72 | 3b 09 09 09 09 09 09 2f |har *dir|;....../|
|000026c0| 2a 20 57 68 65 72 65 20 | 6c 6f 63 6b 66 69 6c 65 |* Where |lockfile|
|000026d0| 20 73 68 6f 75 6c 64 20 | 62 65 20 77 72 69 74 74 | should |be writt|
|000026e0| 65 6e 20 2a 2f 0a 58 7b | 0a 58 09 2f 2a 20 4e 6f |en */.X{|.X./* No|
|000026f0| 74 65 3a 20 74 68 69 73 | 20 6c 6f 63 6b 69 6e 67 |te: this| locking|
|00002700| 20 69 73 20 6e 6f 74 20 | 63 6f 6d 70 6c 65 74 6c | is not |completl|
|00002710| 79 20 73 61 66 65 20 77 | 2e 72 2e 74 2e 20 72 61 |y safe w|.r.t. ra|
|00002720| 63 65 20 63 6f 6e 64 69 | 74 69 6f 6e 73 2c 20 62 |ce condi|tions, b|
|00002730| 75 74 20 74 68 65 0a 58 | 09 20 2a 20 6d 61 69 6c |ut the.X|. * mail|
|00002740| 61 67 65 6e 74 20 77 69 | 6c 6c 20 64 6f 20 69 74 |agent wi|ll do it|
|00002750| 73 20 6f 77 6e 20 6c 6f | 63 6b 69 6e 67 20 63 68 |s own lo|cking ch|
|00002760| 65 63 6b 73 20 69 6e 20 | 61 20 72 61 74 68 65 72 |ecks in |a rather|
|00002770| 20 73 61 66 65 20 77 61 | 79 2e 0a 58 09 20 2a 20 | safe wa|y..X. * |
|00002780| 52 65 74 75 72 6e 20 30 | 20 69 66 20 6c 6f 63 6b |Return 0| if lock|
|00002790| 69 6e 67 20 73 75 63 63 | 65 65 64 73 2c 20 2d 31 |ing succ|eeds, -1|
|000027a0| 20 6f 74 68 65 72 77 69 | 73 65 2e 0a 58 09 20 2a | otherwi|se..X. *|
|000027b0| 2f 0a 58 0a 58 09 69 6e | 74 20 66 64 3b 0a 58 0a |/.X.X.in|t fd;.X.|
|000027c0| 58 09 73 70 72 69 6e 74 | 66 28 6c 6f 63 6b 66 69 |X.sprint|f(lockfi|
|000027d0| 6c 65 2c 20 22 25 73 2f | 66 69 6c 74 65 72 2e 6c |le, "%s/|filter.l|
|000027e0| 6f 63 6b 22 2c 20 64 69 | 72 29 3b 0a 58 09 63 68 |ock", di|r);.X.ch|
|000027f0| 65 63 6b 5f 6c 6f 63 6b | 28 6c 6f 63 6b 66 69 6c |eck_lock|(lockfil|
|00002800| 65 29 3b 0a 58 09 69 66 | 20 28 2d 31 20 3d 3d 20 |e);.X.if| (-1 == |
|00002810| 28 66 64 20 3d 20 6f 70 | 65 6e 28 6c 6f 63 6b 66 |(fd = op|en(lockf|
|00002820| 69 6c 65 2c 20 4f 5f 43 | 52 45 41 54 20 7c 20 4f |ile, O_C|REAT | O|
|00002830| 5f 45 58 43 4c 2c 20 30 | 29 29 29 20 7b 0a 58 09 |_EXCL, 0|))) {.X.|
|00002840| 09 69 66 20 28 65 72 72 | 6e 6f 20 21 3d 20 45 45 |.if (err|no != EE|
|00002850| 58 49 53 54 29 0a 58 09 | 09 09 61 64 64 5f 6c 6f |XIST).X.|..add_lo|
|00002860| 67 28 31 2c 20 22 53 59 | 53 45 52 52 20 6f 70 65 |g(1, "SY|SERR ope|
|00002870| 6e 3a 20 25 6d 20 28 25 | 65 29 22 29 3b 0a 58 09 |n: %m (%|e)");.X.|
|00002880| 09 72 65 74 75 72 6e 20 | 2d 31 3b 0a 58 09 7d 0a |.return |-1;.X.}.|
|00002890| 58 09 6c 6f 63 6b 65 64 | 20 3d 20 31 3b 09 09 09 |X.locked| = 1;...|
|000028a0| 09 09 2f 2a 20 57 65 20 | 64 69 64 20 6c 6f 63 6b |../* We |did lock|
|000028b0| 20 73 75 63 63 65 73 73 | 66 75 6c 6c 79 20 2a 2f | success|fully */|
|000028c0| 0a 58 09 63 6c 6f 73 65 | 28 66 64 29 3b 09 09 09 |.X.close|(fd);...|
|000028d0| 09 09 2f 2a 20 43 6c 6f | 73 65 20 64 75 6d 6d 79 |../* Clo|se dummy|
|000028e0| 20 66 69 6c 65 20 64 65 | 73 63 72 69 70 74 6f 72 | file de|scriptor|
|000028f0| 20 2a 2f 0a 58 0a 58 09 | 72 65 74 75 72 6e 20 30 | */.X.X.|return 0|
|00002900| 3b 0a 58 7d 0a 58 0a 58 | 70 75 62 6c 69 63 20 76 |;.X}.X.X|public v|
|00002910| 6f 69 64 20 72 65 6c 65 | 61 73 65 5f 6c 6f 63 6b |oid rele|ase_lock|
|00002920| 28 29 0a 58 7b 0a 58 09 | 69 66 20 28 6c 6f 63 6b |().X{.X.|if (lock|
|00002930| 65 64 20 26 26 20 2d 31 | 20 3d 3d 20 75 6e 6c 69 |ed && -1| == unli|
|00002940| 6e 6b 28 6c 6f 63 6b 66 | 69 6c 65 29 29 20 7b 0a |nk(lockf|ile)) {.|
|00002950| 58 09 09 61 64 64 5f 6c | 6f 67 28 31 2c 20 22 53 |X..add_l|og(1, "S|
|00002960| 59 53 45 52 52 20 75 6e | 6c 69 6e 6b 3a 20 25 6d |YSERR un|link: %m|
|00002970| 20 28 25 65 29 22 29 3b | 0a 58 09 09 61 64 64 5f | (%e)");|.X..add_|
|00002980| 6c 6f 67 28 34 2c 20 22 | 57 41 52 4e 49 4e 47 20 |log(4, "|WARNING |
|00002990| 63 6f 75 6c 64 20 6e 6f | 74 20 72 65 6d 6f 76 65 |could no|t remove|
|000029a0| 20 6c 6f 63 6b 66 69 6c | 65 20 25 73 22 2c 20 6c | lockfil|e %s", l|
|000029b0| 6f 63 6b 66 69 6c 65 29 | 3b 0a 58 09 7d 0a 58 09 |ockfile)|;.X.}.X.|
|000029c0| 6c 6f 63 6b 65 64 20 3d | 20 30 3b 0a 58 7d 0a 58 |locked =| 0;.X}.X|
|000029d0| 0a 58 70 75 62 6c 69 63 | 20 69 6e 74 20 69 73 5f |.Xpublic| int is_|
|000029e0| 6c 6f 63 6b 65 64 28 29 | 0a 58 7b 0a 58 09 72 65 |locked()|.X{.X.re|
|000029f0| 74 75 72 6e 20 6c 6f 63 | 6b 65 64 3b 09 09 09 2f |turn loc|ked;.../|
|00002a00| 2a 20 44 6f 20 77 65 20 | 68 61 76 65 20 61 20 6c |* Do we |have a l|
|00002a10| 6f 63 6b 20 66 69 6c 65 | 20 61 63 74 69 76 65 20 |ock file| active |
|00002a20| 6f 72 20 6e 6f 74 3f 20 | 2a 2f 0a 58 7d 0a 58 0a |or not? |*/.X}.X.|
|00002a30| 58 70 72 69 76 61 74 65 | 20 76 6f 69 64 20 63 68 |Xprivate| void ch|
|00002a40| 65 63 6b 5f 6c 6f 63 6b | 28 66 69 6c 65 29 0a 58 |eck_lock|(file).X|
|00002a50| 63 68 61 72 20 2a 66 69 | 6c 65 3b 0a 58 7b 0a 58 |char *fi|le;.X{.X|
|00002a60| 09 2f 2a 20 4d 61 6b 65 | 20 73 75 72 65 20 74 68 |./* Make| sure th|
|00002a70| 65 20 6c 6f 63 6b 20 66 | 69 6c 65 20 69 73 20 6e |e lock f|ile is n|
|00002a80| 6f 74 20 6f 6c 64 65 72 | 20 74 68 61 6e 20 4d 41 |ot older| than MA|
|00002a90| 58 5f 54 49 4d 45 20 73 | 65 63 6f 6e 64 73 2c 20 |X_TIME s|econds, |
|00002aa0| 6f 74 68 65 72 77 69 73 | 65 0a 58 09 20 2a 20 75 |otherwis|e.X. * u|
|00002ab0| 6e 6c 69 6e 6b 20 69 74 | 20 28 73 6f 6d 65 74 68 |nlink it| (someth|
|00002ac0| 69 6e 67 20 6d 75 73 74 | 20 68 61 76 65 20 67 6f |ing must| have go|
|00002ad0| 6e 65 20 77 72 6f 6e 67 | 29 2e 0a 58 09 20 2a 2f |ne wrong|)..X. */|
|00002ae0| 0a 58 0a 58 09 73 74 72 | 75 63 74 20 73 74 61 74 |.X.X.str|uct stat|
|00002af0| 20 62 75 66 3b 0a 58 0a | 58 09 69 66 20 28 2d 31 | buf;.X.|X.if (-1|
|00002b00| 20 3d 3d 20 73 74 61 74 | 28 66 69 6c 65 2c 20 26 | == stat|(file, &|
|00002b10| 62 75 66 29 29 20 7b 09 | 09 2f 2a 20 53 74 61 74 |buf)) {.|./* Stat|
|00002b20| 20 66 61 69 6c 65 64 20 | 2a 2f 0a 58 09 09 69 66 | failed |*/.X..if|
|00002b30| 20 28 65 72 72 6e 6f 20 | 3d 3d 20 45 4e 4f 45 4e | (errno |== ENOEN|
|00002b40| 54 29 09 09 09 2f 2a 20 | 46 69 6c 65 20 64 6f 65 |T).../* |File doe|
|00002b50| 73 20 6e 6f 74 20 65 78 | 69 73 74 20 2a 2f 0a 58 |s not ex|ist */.X|
|00002b60| 09 09 09 72 65 74 75 72 | 6e 3b 0a 58 09 09 61 64 |...retur|n;.X..ad|
|00002b70| 64 5f 6c 6f 67 28 31 2c | 20 22 53 59 53 45 52 52 |d_log(1,| "SYSERR|
|00002b80| 20 73 74 61 74 3a 20 25 | 6d 20 28 25 65 29 22 29 | stat: %|m (%e)")|
|00002b90| 3b 0a 58 09 09 61 64 64 | 5f 6c 6f 67 28 32 2c 20 |;.X..add|_log(2, |
|00002ba0| 22 63 6f 75 6c 64 20 6e | 6f 74 20 63 68 65 63 6b |"could n|ot check|
|00002bb0| 20 6c 6f 63 6b 66 69 6c | 65 20 25 73 22 2c 20 66 | lockfil|e %s", f|
|00002bc0| 69 6c 65 29 3b 0a 58 09 | 09 72 65 74 75 72 6e 3b |ile);.X.|.return;|
|00002bd0| 0a 58 09 7d 0a 58 0a 58 | 09 69 66 20 28 28 62 75 |.X.}.X.X|.if ((bu|
|00002be0| 66 2e 73 74 5f 6d 74 69 | 6d 65 20 2d 20 74 69 6d |f.st_mti|me - tim|
|00002bf0| 65 28 28 54 69 6d 65 5f | 74 20 2a 29 20 30 29 29 |e((Time_|t *) 0))|
|00002c00| 20 3e 20 4d 41 58 5f 54 | 49 4d 45 29 20 7b 0a 58 | > MAX_T|IME) {.X|
|00002c10| 09 09 69 66 20 28 2d 31 | 20 3d 3d 20 75 6e 6c 69 |..if (-1| == unli|
|00002c20| 6e 6b 28 6c 6f 63 6b 66 | 69 6c 65 29 29 20 7b 0a |nk(lockf|ile)) {.|
|00002c30| 58 09 09 09 61 64 64 5f | 6c 6f 67 28 31 2c 20 22 |X...add_|log(1, "|
|00002c40| 53 59 53 45 52 52 20 75 | 6e 6c 69 6e 6b 3a 20 25 |SYSERR u|nlink: %|
|00002c50| 6d 20 28 25 65 29 22 29 | 3b 0a 58 09 09 09 61 64 |m (%e)")|;.X...ad|
|00002c60| 64 5f 6c 6f 67 28 34 2c | 20 22 57 41 52 4e 49 4e |d_log(4,| "WARNIN|
|00002c70| 47 20 63 6f 75 6c 64 20 | 6e 6f 74 20 72 65 6d 6f |G could |not remo|
|00002c80| 76 65 20 6f 6c 64 20 6c | 6f 63 6b 20 25 73 22 2c |ve old l|ock %s",|
|00002c90| 20 6c 6f 63 6b 66 69 6c | 65 29 3b 0a 58 09 09 7d | lockfil|e);.X..}|
|00002ca0| 20 65 6c 73 65 0a 58 09 | 09 09 61 64 64 5f 6c 6f | else.X.|..add_lo|
|00002cb0| 67 28 36 2c 20 22 55 4e | 4c 4f 43 4b 45 44 20 66 |g(6, "UN|LOCKED f|
|00002cc0| 69 6c 74 65 72 20 28 6c | 6f 63 6b 20 6f 6c 64 65 |ilter (l|ock olde|
|00002cd0| 72 20 74 68 61 6e 20 31 | 20 68 6f 75 72 29 22 29 |r than 1| hour)")|
|00002ce0| 3b 0a 58 09 7d 20 65 6c | 73 65 0a 58 09 09 61 64 |;.X.} el|se.X..ad|
|00002cf0| 64 5f 6c 6f 67 28 31 36 | 2c 20 22 6c 6f 63 6b 66 |d_log(16|, "lockf|
|00002d00| 69 6c 65 20 66 6f 72 20 | 66 69 6c 74 65 72 20 69 |ile for |filter i|
|00002d10| 73 20 72 65 63 65 6e 74 | 22 29 3b 0a 58 7d 0a 58 |s recent|");.X}.X|
|00002d20| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 20 20 69 |.END_OF_|FILE. i|
|00002d30| 66 20 74 65 73 74 20 32 | 35 32 35 20 2d 6e 65 20 |f test 2|525 -ne |
|00002d40| 60 77 63 20 2d 63 20 3c | 27 61 67 65 6e 74 2f 66 |`wc -c <|'agent/f|
|00002d50| 69 6c 74 65 72 2f 6c 6f | 63 6b 2e 63 27 60 3b 20 |ilter/lo|ck.c'`; |
|00002d60| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00002d70| 61 72 3a 20 5c 22 27 61 | 67 65 6e 74 2f 66 69 6c |ar: \"'a|gent/fil|
|00002d80| 74 65 72 2f 6c 6f 63 6b | 2e 63 27 5c 22 20 75 6e |ter/lock|.c'\" un|
|00002d90| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00002da0| 67 20 73 69 7a 65 21 0a | 20 20 66 69 0a 20 20 23 |g size!.| fi. #|
|00002db0| 20 65 6e 64 20 6f 66 20 | 27 61 67 65 6e 74 2f 66 | end of |'agent/f|
|00002dc0| 69 6c 74 65 72 2f 6c 6f | 63 6b 2e 63 27 0a 66 69 |ilter/lo|ck.c'.fi|
|00002dd0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 61 67 65 |.if test| -f 'age|
|00002de0| 6e 74 2f 66 69 6c 74 65 | 72 2f 73 79 73 65 78 69 |nt/filte|r/sysexi|
|00002df0| 74 73 2e 68 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |ts.h' -a| "${1}" |
|00002e00| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00002e10| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00002e20| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00002e30| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 61 |isting f|ile \"'a|
|00002e40| 67 65 6e 74 2f 66 69 6c | 74 65 72 2f 73 79 73 65 |gent/fil|ter/syse|
|00002e50| 78 69 74 73 2e 68 27 5c | 22 0a 65 6c 73 65 0a 20 |xits.h'\|".else. |
|00002e60| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 | echo sh|ar: Extr|
|00002e70| 61 63 74 69 6e 67 20 5c | 22 27 61 67 65 6e 74 2f |acting \|"'agent/|
|00002e80| 66 69 6c 74 65 72 2f 73 | 79 73 65 78 69 74 73 2e |filter/s|ysexits.|
|00002e90| 68 27 5c 22 20 5c 28 31 | 31 36 36 20 63 68 61 72 |h'\" \(1|166 char|
|00002ea0| 61 63 74 65 72 73 5c 29 | 0a 20 20 73 65 64 20 22 |acters\)|. sed "|
|00002eb0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 61 67 65 6e 74 2f |s/^X//" |>'agent/|
|00002ec0| 66 69 6c 74 65 72 2f 73 | 79 73 65 78 69 74 73 2e |filter/s|ysexits.|
|00002ed0| 68 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |h' <<'EN|D_OF_FIL|
|00002ee0| 45 27 0a 58 2f 2a 0a 58 | 0a 58 20 20 23 23 23 23 |E'.X/*.X|.X ####|
|00002ef0| 20 20 20 20 23 20 20 20 | 23 20 20 20 23 23 23 23 | # |# ####|
|00002f00| 20 20 20 23 23 23 23 23 | 23 20 20 23 20 20 20 20 | #####|# # |
|00002f10| 23 20 20 20 20 20 23 20 | 20 20 20 20 23 23 23 23 |# # | ####|
|00002f20| 23 20 20 20 23 23 23 23 | 20 20 20 20 20 20 20 20 |# ####| |
|00002f30| 20 20 20 23 20 20 20 20 | 23 0a 58 20 23 20 20 20 | # |#.X # |
|00002f40| 20 20 20 20 20 20 23 20 | 23 20 20 20 23 20 20 20 | # |# # |
|00002f50| 20 20 20 20 23 20 20 20 | 20 20 20 20 20 23 20 20 | # | # |
|00002f60| 23 20 20 20 20 20 20 23 | 20 20 20 20 20 20 20 23 |# #| #|
|00002f70| 20 20 20 20 23 20 20 20 | 20 20 20 20 20 20 20 20 | # | |
|00002f80| 20 20 20 20 23 20 20 20 | 20 23 0a 58 20 20 23 23 | # | #.X ##|
|00002f90| 23 23 20 20 20 20 20 20 | 23 20 20 20 20 20 23 23 |## |# ##|
|00002fa0| 23 23 20 20 20 23 23 23 | 23 23 20 20 20 20 20 23 |## ###|## #|
|00002fb0| 23 20 20 20 20 20 20 20 | 23 20 20 20 20 20 20 20 |# |# |
|00002fc0| 23 20 20 20 20 20 23 23 | 23 23 20 20 20 20 20 20 |# ##|## |
|00002fd0| 20 20 20 20 20 23 23 23 | 23 23 23 0a 58 20 20 20 | ###|###.X |
|00002fe0| 20 20 20 23 20 20 20 20 | 20 23 20 20 20 20 20 20 | # | # |
|00002ff0| 20 20 20 23 20 20 23 20 | 20 20 20 20 20 20 20 20 | # # | |
|00003000| 23 23 20 20 20 20 20 20 | 20 23 20 20 20 20 20 20 |## | # |
|00003010| 20 23 20 20 20 20 20 20 | 20 20 20 23 20 20 20 23 | # | # #|
|00003020| 23 23 20 20 20 20 23 20 | 20 20 20 23 0a 58 20 23 |## # | #.X #|
|00003030| 20 20 20 20 23 20 20 20 | 20 20 23 20 20 20 20 23 | # | # #|
|00003040| 20 20 20 20 23 20 20 23 | 20 20 20 20 20 20 20 20 | # #| |
|00003050| 23 20 20 23 20 20 20 20 | 20 20 23 20 20 20 20 20 |# # | # |
|00003060| 20 20 23 20 20 20 20 23 | 20 20 20 20 23 20 20 20 | # #| # |
|00003070| 23 23 23 20 20 20 20 23 | 20 20 20 20 23 0a 58 20 |### #| #.X |
|00003080| 20 23 23 23 23 20 20 20 | 20 20 20 23 20 20 20 20 | #### | # |
|00003090| 20 23 23 23 23 20 20 20 | 23 23 23 23 23 23 20 20 | #### |###### |
|000030a0| 23 20 20 20 20 23 20 20 | 20 20 20 23 20 20 20 20 |# # | # |
|000030b0| 20 20 20 23 20 20 20 20 | 20 23 23 23 23 20 20 20 | # | #### |
|000030c0| 20 23 23 23 20 20 20 20 | 23 20 20 20 20 23 0a 58 | ### |# #.X|
|000030d0| 0a 58 09 53 74 61 6e 64 | 61 72 64 20 65 78 69 74 |.X.Stand|ard exit|
|000030e0| 20 63 6f 64 65 73 20 66 | 6f 72 20 73 65 6e 64 6d | codes f|or sendm|
|000030f0| 61 69 6c 20 61 6e 64 20 | 66 72 69 65 6e 64 73 2e |ail and |friends.|
|00003100| 0a 58 09 4f 72 69 67 69 | 6e 61 6c 20 6c 69 73 74 |.X.Origi|nal list|
|00003110| 20 6d 61 69 6e 74 61 69 | 6e 65 64 20 62 79 20 45 | maintai|ned by E|
|00003120| 72 69 63 20 41 6c 6c 6d | 61 6e 20 3c 65 72 69 63 |ric Allm|an <eric|
|00003130| 40 62 65 72 6b 65 6c 65 | 79 2e 65 64 75 3e 2e 0a |@berkele|y.edu>..|
|00003140| 58 2a 2f 0a 58 0a 58 2f | 2a 0a 58 20 2a 20 24 49 |X*/.X.X/|*.X * $I|
|00003150| 64 3a 20 73 79 73 65 78 | 69 74 73 2e 68 2c 76 20 |d: sysex|its.h,v |
|00003160| 32 2e 39 20 39 32 2f 30 | 37 2f 31 34 20 31 36 3a |2.9 92/0|7/14 16:|
|00003170| 34 38 3a 34 33 20 72 61 | 6d 20 45 78 70 20 24 0a |48:43 ra|m Exp $.|
|00003180| 58 20 2a 0a 58 20 2a 20 | 20 43 6f 70 79 72 69 67 |X *.X * | Copyrig|
|00003190| 68 74 20 28 63 29 20 31 | 39 39 32 2c 20 52 61 70 |ht (c) 1|992, Rap|
|000031a0| 68 61 65 6c 20 4d 61 6e | 66 72 65 64 69 0a 58 20 |hael Man|fredi.X |
|000031b0| 2a 0a 58 20 2a 20 20 59 | 6f 75 20 6d 61 79 20 72 |*.X * Y|ou may r|
|000031c0| 65 64 69 73 74 72 69 62 | 75 74 65 20 6f 6e 6c 79 |edistrib|ute only|
|000031d0| 20 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 | under t|he terms|
|000031e0| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 47 65 6e 65 | of the |GNU Gene|
|000031f0| 72 61 6c 20 50 75 62 6c | 69 63 0a 58 20 2a 20 20 |ral Publ|ic.X * |
|00003200| 4c 69 63 65 6e 63 65 20 | 61 73 20 73 70 65 63 69 |Licence |as speci|
|00003210| 66 69 65 64 20 69 6e 20 | 74 68 65 20 52 45 41 44 |fied in |the READ|
|00003220| 4d 45 20 66 69 6c 65 20 | 74 68 61 74 20 63 6f 6d |ME file |that com|
|00003230| 65 73 20 77 69 74 68 20 | 64 69 73 74 2e 0a 58 20 |es with |dist..X |
|00003240| 2a 0a 58 20 2a 20 24 4c | 6f 67 3a 09 73 79 73 65 |*.X * $L|og:.syse|
|00003250| 78 69 74 73 2e 68 2c 76 | 20 24 0a 58 20 2a 20 52 |xits.h,v| $.X * R|
|00003260| 65 76 69 73 69 6f 6e 20 | 32 2e 39 20 20 39 32 2f |evision |2.9 92/|
|00003270| 30 37 2f 31 34 20 20 31 | 36 3a 34 38 3a 34 33 20 |07/14 1|6:48:43 |
|00003280| 20 72 61 6d 0a 58 20 2a | 20 33 2e 30 20 62 65 74 | ram.X *| 3.0 bet|
|00003290| 61 20 62 61 73 65 6c 69 | 6e 65 2e 0a 58 20 2a 20 |a baseli|ne..X * |
|000032a0| 0a 58 20 2a 2f 0a 58 0a | 58 23 69 66 6e 64 65 66 |.X */.X.|X#ifndef|
|000032b0| 20 5f 73 79 73 65 78 69 | 74 73 5f 68 5f 0a 58 23 | _sysexi|ts_h_.X#|
|000032c0| 64 65 66 69 6e 65 20 5f | 73 79 73 65 78 69 74 73 |define _|sysexits|
|000032d0| 5f 68 5f 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 45 |_h_.X.X#|define E|
|000032e0| 58 5f 4f 4b 09 09 09 30 | 0a 58 23 64 65 66 69 6e |X_OK...0|.X#defin|
|000032f0| 65 20 45 58 5f 55 53 41 | 47 45 09 09 36 34 0a 58 |e EX_USA|GE..64.X|
|00003300| 23 64 65 66 69 6e 65 20 | 45 58 5f 55 4e 41 56 41 |#define |EX_UNAVA|
|00003310| 49 4c 41 42 4c 45 09 36 | 39 0a 58 23 64 65 66 69 |ILABLE.6|9.X#defi|
|00003320| 6e 65 20 45 58 5f 4f 53 | 45 52 52 09 09 37 31 0a |ne EX_OS|ERR..71.|
|00003330| 58 23 64 65 66 69 6e 65 | 20 45 58 5f 4f 53 46 49 |X#define| EX_OSFI|
|00003340| 4c 45 09 09 37 32 0a 58 | 23 64 65 66 69 6e 65 20 |LE..72.X|#define |
|00003350| 45 58 5f 43 41 4e 54 43 | 52 45 41 54 09 37 33 0a |EX_CANTC|REAT.73.|
|00003360| 58 23 64 65 66 69 6e 65 | 20 45 58 5f 49 4f 45 52 |X#define| EX_IOER|
|00003370| 52 09 09 37 34 0a 58 23 | 64 65 66 69 6e 65 20 45 |R..74.X#|define E|
|00003380| 58 5f 54 45 4d 50 46 41 | 49 4c 09 09 37 35 0a 58 |X_TEMPFA|IL..75.X|
|00003390| 0a 58 23 65 6e 64 69 66 | 0a 45 4e 44 5f 4f 46 5f |.X#endif|.END_OF_|
|000033a0| 46 49 4c 45 0a 20 20 69 | 66 20 74 65 73 74 20 31 |FILE. i|f test 1|
|000033b0| 31 36 36 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |166 -ne |`wc -c <|
|000033c0| 27 61 67 65 6e 74 2f 66 | 69 6c 74 65 72 2f 73 79 |'agent/f|ilter/sy|
|000033d0| 73 65 78 69 74 73 2e 68 | 27 60 3b 20 74 68 65 6e |sexits.h|'`; then|
|000033e0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|000033f0| 5c 22 27 61 67 65 6e 74 | 2f 66 69 6c 74 65 72 2f |\"'agent|/filter/|
|00003400| 73 79 73 65 78 69 74 73 | 2e 68 27 5c 22 20 75 6e |sysexits|.h'\" un|
|00003410| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00003420| 67 20 73 69 7a 65 21 0a | 20 20 66 69 0a 20 20 23 |g size!.| fi. #|
|00003430| 20 65 6e 64 20 6f 66 20 | 27 61 67 65 6e 74 2f 66 | end of |'agent/f|
|00003440| 69 6c 74 65 72 2f 73 79 | 73 65 78 69 74 73 2e 68 |ilter/sy|sexits.h|
|00003450| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00003460| 27 61 67 65 6e 74 2f 6d | 68 6f 6f 6b 2e 53 48 27 |'agent/m|hook.SH'|
|00003470| 20 2d 61 20 22 24 7b 31 | 7d 22 20 21 3d 20 22 2d | -a "${1|}" != "-|
|00003480| 63 22 20 3b 20 74 68 65 | 6e 20 0a 20 20 65 63 68 |c" ; the|n . ech|
|00003490| 6f 20 73 68 61 72 3a 20 | 57 69 6c 6c 20 6e 6f 74 |o shar: |Will not|
|000034a0| 20 63 6c 6f 62 62 65 72 | 20 65 78 69 73 74 69 6e | clobber| existin|
|000034b0| 67 20 66 69 6c 65 20 5c | 22 27 61 67 65 6e 74 2f |g file \|"'agent/|
|000034c0| 6d 68 6f 6f 6b 2e 53 48 | 27 5c 22 0a 65 6c 73 65 |mhook.SH|'\".else|
|000034d0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |. echo |shar: Ex|
|000034e0| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 61 67 65 6e |tracting| \"'agen|
|000034f0| 74 2f 6d 68 6f 6f 6b 2e | 53 48 27 5c 22 20 5c 28 |t/mhook.|SH'\" \(|
|00003500| 33 38 33 34 20 63 68 61 | 72 61 63 74 65 72 73 5c |3834 cha|racters\|
|00003510| 29 0a 20 20 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |). sed |"s/^X//"|
|00003520| 20 3e 27 61 67 65 6e 74 | 2f 6d 68 6f 6f 6b 2e 53 | >'agent|/mhook.S|
|00003530| 48 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |H' <<'EN|D_OF_FIL|
|00003540| 45 27 0a 58 63 61 73 65 | 20 24 43 4f 4e 46 49 47 |E'.Xcase| $CONFIG|
|00003550| 20 69 6e 0a 58 27 27 29 | 0a 58 09 69 66 20 74 65 | in.X'')|.X.if te|
|00003560| 73 74 20 21 20 2d 66 20 | 63 6f 6e 66 69 67 2e 73 |st ! -f |config.s|
|00003570| 68 3b 20 74 68 65 6e 0a | 58 09 09 6c 6e 20 2e 2e |h; then.|X..ln ..|
|00003580| 2f 63 6f 6e 66 69 67 2e | 73 68 20 2e 20 7c 7c 20 |/config.|sh . || |
|00003590| 5c 0a 58 09 09 6c 6e 20 | 2e 2e 2f 2e 2e 2f 63 6f |\.X..ln |../../co|
|000035a0| 6e 66 69 67 2e 73 68 20 | 2e 20 7c 7c 20 5c 0a 58 |nfig.sh |. || \.X|
|000035b0| 09 09 6c 6e 20 2e 2e 2f | 2e 2e 2f 2e 2e 2f 63 6f |..ln ../|../../co|
|000035c0| 6e 66 69 67 2e 73 68 20 | 2e 20 7c 7c 20 5c 0a 58 |nfig.sh |. || \.X|
|000035d0| 09 09 28 65 63 68 6f 20 | 22 43 61 6e 27 74 20 66 |..(echo |"Can't f|
|000035e0| 69 6e 64 20 63 6f 6e 66 | 69 67 2e 73 68 2e 22 3b |ind conf|ig.sh.";|
|000035f0| 20 65 78 69 74 20 31 29 | 0a 58 09 66 69 20 32 3e | exit 1)|.X.fi 2>|
|00003600| 2f 64 65 76 2f 6e 75 6c | 6c 0a 58 09 2e 20 63 6f |/dev/nul|l.X.. co|
|00003610| 6e 66 69 67 2e 73 68 0a | 58 09 3b 3b 0a 58 65 73 |nfig.sh.|X.;;.Xes|
|00003620| 61 63 0a 58 63 61 73 65 | 20 22 24 30 22 20 69 6e |ac.Xcase| "$0" in|
|00003630| 0a 58 2a 2f 2a 29 20 63 | 64 20 60 65 78 70 72 20 |.X*/*) c|d `expr |
|00003640| 58 24 30 20 3a 20 27 58 | 5c 28 2e 2a 5c 29 2f 27 |X$0 : 'X|\(.*\)/'|
|00003650| 60 20 3b 3b 0a 58 65 73 | 61 63 0a 58 65 63 68 6f |` ;;.Xes|ac.Xecho|
|00003660| 20 22 45 78 74 72 61 63 | 74 69 6e 67 20 61 67 65 | "Extrac|ting age|
|00003670| 6e 74 2f 6d 68 6f 6f 6b | 20 28 77 69 74 68 20 76 |nt/mhook| (with v|
|00003680| 61 72 69 61 62 6c 65 20 | 73 75 62 73 74 69 74 75 |ariable |substitu|
|00003690| 74 69 6f 6e 73 29 22 0a | 58 24 73 70 69 74 73 68 |tions)".|X$spitsh|
|000036a0| 65 6c 6c 20 3e 6d 68 6f | 6f 6b 20 3c 3c 21 47 52 |ell >mho|ok <<!GR|
|000036b0| 4f 4b 21 54 48 49 53 21 | 0a 58 23 20 66 65 65 64 |OK!THIS!|.X# feed|
|000036c0| 20 74 68 69 73 20 69 6e | 74 6f 20 70 65 72 6c 0a | this in|to perl.|
|000036d0| 58 09 65 76 61 6c 20 27 | 65 78 65 63 20 70 65 72 |X.eval '|exec per|
|000036e0| 6c 20 2d 53 20 5c 24 30 | 20 22 5c 24 40 22 27 0a |l -S \$0| "\$@"'.|
|000036f0| 58 09 09 69 66 20 5c 24 | 72 75 6e 6e 69 6e 67 5f |X..if \$|running_|
|00003700| 75 6e 64 65 72 5f 73 6f | 6d 65 5f 73 68 65 6c 6c |under_so|me_shell|
|00003710| 3b 0a 58 0a 58 23 20 59 | 6f 75 27 6c 6c 20 6e 65 |;.X.X# Y|ou'll ne|
|00003720| 65 64 20 74 6f 20 73 65 | 74 20 75 70 20 61 20 2e |ed to se|t up a .|
|00003730| 66 6f 72 77 61 72 64 20 | 66 69 6c 65 20 74 68 61 |forward |file tha|
|00003740| 74 20 66 65 65 64 73 20 | 79 6f 75 72 20 6d 61 69 |t feeds |your mai|
|00003750| 6c 20 74 6f 20 74 68 69 | 73 20 73 63 72 69 70 74 |l to thi|s script|
|00003760| 2c 0a 58 23 20 76 69 61 | 20 74 68 65 20 66 69 6c |,.X# via| the fil|
|00003770| 74 65 72 2e 20 4d 69 6e | 65 20 6c 6f 6f 6b 73 20 |ter. Min|e looks |
|00003780| 6c 69 6b 65 20 74 68 69 | 73 3a 0a 58 23 20 20 20 |like thi|s:.X# |
|00003790| 22 7c 65 78 65 63 20 2f | 75 73 65 72 73 2f 72 61 |"|exec /|users/ra|
|000037a0| 6d 2f 6d 61 69 6c 2f 66 | 69 6c 74 65 72 20 3e 3e |m/mail/f|ilter >>|
|000037b0| 2f 75 73 65 72 73 2f 72 | 61 6d 2f 2e 62 61 6b 20 |/users/r|am/.bak |
|000037c0| 32 3e 26 31 22 0a 58 0a | 58 23 20 24 49 64 3a 20 |2>&1".X.|X# $Id: |
|000037d0| 6d 68 6f 6f 6b 2e 53 48 | 2c 76 20 32 2e 39 2e 31 |mhook.SH|,v 2.9.1|
|000037e0| 2e 31 20 39 32 2f 30 38 | 2f 32 36 20 31 32 3a 34 |.1 92/08|/26 12:4|
|000037f0| 34 3a 34 38 20 72 61 6d | 20 45 78 70 20 24 0a 58 |4:48 ram| Exp $.X|
|00003800| 23 0a 58 23 20 20 43 6f | 70 79 72 69 67 68 74 20 |#.X# Co|pyright |
|00003810| 28 63 29 20 31 39 39 31 | 2c 20 31 39 39 32 2c 20 |(c) 1991|, 1992, |
|00003820| 52 61 70 68 61 65 6c 20 | 4d 61 6e 66 72 65 64 69 |Raphael |Manfredi|
|00003830| 0a 58 23 0a 58 23 20 20 | 59 6f 75 20 6d 61 79 20 |.X#.X# |You may |
|00003840| 72 65 64 69 73 74 72 69 | 62 75 74 65 20 6f 6e 6c |redistri|bute onl|
|00003850| 79 20 75 6e 64 65 72 20 | 74 68 65 20 74 65 72 6d |y under |the term|
|00003860| 73 20 6f 66 20 74 68 65 | 20 47 4e 55 20 47 65 6e |s of the| GNU Gen|
|00003870| 65 72 61 6c 20 50 75 62 | 6c 69 63 0a 58 23 20 20 |eral Pub|lic.X# |
|00003880| 4c 69 63 65 6e 63 65 20 | 61 73 20 73 70 65 63 69 |Licence |as speci|
|00003890| 66 69 65 64 20 69 6e 20 | 74 68 65 20 52 45 41 44 |fied in |the READ|
|000038a0| 4d 45 20 66 69 6c 65 20 | 74 68 61 74 20 63 6f 6d |ME file |that com|
|000038b0| 65 73 20 77 69 74 68 20 | 64 69 73 74 2e 0a 58 23 |es with |dist..X#|
|000038c0| 0a 58 23 20 24 4c 6f 67 | 3a 09 6d 68 6f 6f 6b 2e |.X# $Log|:.mhook.|
|000038d0| 53 48 2c 76 20 24 0a 58 | 23 20 52 65 76 69 73 69 |SH,v $.X|# Revisi|
|000038e0| 6f 6e 20 32 2e 39 2e 31 | 2e 31 20 20 39 32 2f 30 |on 2.9.1|.1 92/0|
|000038f0| 38 2f 32 36 20 20 31 32 | 3a 34 34 3a 34 38 20 20 |8/26 12|:44:48 |
|00003900| 72 61 6d 0a 58 23 20 70 | 61 74 63 68 38 3a 20 63 |ram.X# p|atch8: c|
|00003910| 72 65 61 74 65 64 0a 58 | 23 20 0a 58 0a 58 23 20 |reated.X|# .X.X# |
|00003920| 50 65 72 6c 6f 61 64 20 | 4f 4e 0a 58 0a 58 23 20 |Perload |ON.X.X# |
|00003930| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 77 65 |The foll|owing we|
|00003940| 72 65 20 64 65 74 65 72 | 6d 69 6e 65 64 20 62 79 |re deter|mined by|
|00003950| 20 43 6f 6e 66 69 67 75 | 72 65 0a 58 5c 24 6d 76 | Configu|re.X\$mv|
|00003960| 65 72 73 69 6f 6e 20 3d | 20 27 24 56 45 52 53 49 |ersion =| '$VERSI|
|00003970| 4f 4e 27 3b 09 09 09 23 | 20 43 75 72 72 65 6e 74 |ON';...#| Current|
|00003980| 20 76 65 72 73 69 6f 6e | 20 6e 75 6d 62 65 72 0a | version| number.|
|00003990| 58 5c 24 70 61 74 63 68 | 6c 65 76 65 6c 20 3d 20 |X\$patch|level = |
|000039a0| 27 24 50 41 54 43 48 4c | 45 56 45 4c 27 3b 09 09 |'$PATCHL|EVEL';..|
|000039b0| 23 20 41 6e 64 20 70 61 | 74 63 68 6c 65 76 65 6c |# And pa|tchlevel|
|000039c0| 20 66 72 6f 6d 20 70 61 | 74 63 68 6c 65 76 65 6c | from pa|tchlevel|
|000039d0| 2e 68 0a 58 21 47 52 4f | 4b 21 54 48 49 53 21 0a |.h.X!GRO|K!THIS!.|
|000039e0| 58 0a 58 24 73 70 69 74 | 73 68 65 6c 6c 20 3e 3e |X.X$spit|shell >>|
|000039f0| 6d 68 6f 6f 6b 20 3c 3c | 27 21 4e 4f 21 53 55 42 |mhook <<|'!NO!SUB|
|00003a00| 53 21 27 0a 58 0a 58 24 | 70 72 6f 67 5f 6e 61 6d |S!'.X.X$|prog_nam|
|00003a10| 65 20 3d 20 24 30 3b 09 | 09 09 09 23 20 57 68 6f |e = $0;.|...# Who|
|00003a20| 20 49 20 61 6d 0a 58 24 | 70 72 6f 67 5f 6e 61 6d | I am.X$|prog_nam|
|00003a30| 65 20 3d 7e 20 73 7c 5e | 2e 2a 2f 28 2e 2a 29 7c |e =~ s|^|.*/(.*)||
|00003a40| 24 31 7c 3b 09 23 20 4b | 65 65 70 20 6f 6e 6c 79 |$1|;.# K|eep only|
|00003a50| 20 62 61 73 65 20 6e 61 | 6d 65 0a 58 24 68 61 73 | base na|me.X$has|
|00003a60| 5f 6f 70 74 69 6f 6e 20 | 3d 20 30 3b 09 09 09 09 |_option |= 0;....|
|00003a70| 23 20 54 72 75 65 20 69 | 66 20 69 6e 76 6f 6b 65 |# True i|f invoke|
|00003a80| 64 20 77 69 74 68 20 6f | 70 74 69 6f 6e 73 0a 58 |d with o|ptions.X|
|00003a90| 24 63 6f 6e 66 69 67 5f | 66 69 6c 65 20 3d 20 27 |$config_|file = '|
|00003aa0| 7e 2f 2e 6d 61 69 6c 61 | 67 65 6e 74 27 3b 09 23 |~/.maila|gent';.#|
|00003ab0| 20 44 65 66 61 75 6c 74 | 20 63 6f 6e 66 69 67 75 | Default| configu|
|00003ac0| 72 61 74 69 6f 6e 20 66 | 69 6c 65 0a 58 0a 58 23 |ration f|ile.X.X#|
|00003ad0| 20 50 61 72 73 65 20 6f | 70 74 69 6f 6e 73 0a 58 | Parse o|ptions.X|
|00003ae0| 77 68 69 6c 65 20 28 24 | 41 52 47 56 5b 30 5d 20 |while ($|ARGV[0] |
|00003af0| 3d 7e 20 2f 5e 2d 2f 29 | 20 7b 0a 58 09 24 5f 20 |=~ /^-/)| {.X.$_ |
|00003b00| 3d 20 73 68 69 66 74 3b | 0a 58 09 6c 61 73 74 20 |= shift;|.X.last |
|00003b10| 69 66 20 2f 2d 2d 2f 3b | 0a 58 09 69 66 20 28 24 |if /--/;|.X.if ($|
|00003b20| 5f 20 65 71 20 27 2d 68 | 27 29 20 7b 0a 58 09 09 |_ eq '-h|') {.X..|
|00003b30| 26 75 73 61 67 65 3b 0a | 58 09 7d 0a 58 09 65 6c |&usage;.|X.}.X.el|
|00003b40| 73 69 66 20 28 24 5f 20 | 65 71 20 27 2d 56 27 29 |sif ($_ |eq '-V')|
|00003b50| 20 7b 09 23 20 56 65 72 | 73 69 6f 6e 20 6e 75 6d | {.# Ver|sion num|
|00003b60| 62 65 72 0a 58 09 09 70 | 72 69 6e 74 20 53 54 44 |ber.X..p|rint STD|
|00003b70| 45 52 52 20 22 24 70 72 | 6f 67 5f 6e 61 6d 65 20 |ERR "$pr|og_name |
|00003b80| 24 6d 76 65 72 73 69 6f | 6e 20 50 4c 24 70 61 74 |$mversio|n PL$pat|
|00003b90| 63 68 6c 65 76 65 6c 5c | 6e 22 3b 0a 58 09 09 65 |chlevel\|n";.X..e|
|00003ba0| 78 69 74 20 30 3b 0a 58 | 09 7d 0a 58 09 65 6c 73 |xit 0;.X|.}.X.els|
|00003bb0| 65 20 7b 0a 58 09 09 70 | 72 69 6e 74 20 53 54 44 |e {.X..p|rint STD|
|00003bc0| 45 52 52 20 22 24 70 72 | 6f 67 5f 6e 61 6d 65 3a |ERR "$pr|og_name:|
|00003bd0| 20 75 6e 6b 6e 6f 77 6e | 20 6f 70 74 69 6f 6e 3a | unknown| option:|
|00003be0| 20 24 5f 5c 6e 22 3b 0a | 58 09 09 26 75 73 61 67 | $_\n";.|X..&usag|
|00003bf0| 65 3b 0a 58 09 7d 0a 58 | 7d 0a 58 0a 58 24 68 6f |e;.X.}.X|}.X.X$ho|
|00003c00| 6f 6b 5f 6e 61 6d 65 20 | 3d 20 73 68 69 66 74 3b |ok_name |= shift;|
|00003c10| 09 09 09 09 23 20 57 68 | 65 72 65 20 6d 61 69 6c |....# Wh|ere mail|
|00003c20| 68 6f 6f 6b 20 66 6f 6c | 64 65 72 20 69 73 20 6c |hook fol|der is l|
|00003c30| 6f 63 61 74 65 64 0a 58 | 26 75 73 61 67 65 20 75 |ocated.X|&usage u|
|00003c40| 6e 6c 65 73 73 20 24 68 | 6f 6f 6b 5f 6e 61 6d 65 |nless $h|ook_name|
|00003c50| 3b 09 09 23 20 48 6f 6f | 6b 20 66 69 6c 65 20 69 |;..# Hoo|k file i|
|00003c60| 73 20 61 20 6d 61 6e 64 | 61 74 6f 72 79 20 61 72 |s a mand|atory ar|
|00003c70| 67 75 6d 65 6e 74 0a 58 | 24 66 69 6c 65 5f 6e 61 |gument.X|$file_na|
|00003c80| 6d 65 20 3d 20 73 68 69 | 66 74 3b 09 09 09 09 23 |me = shi|ft;....#|
|00003c90| 20 46 69 6c 65 20 6e 61 | 6d 65 20 74 6f 20 62 65 | File na|me to be|
|00003ca0| 20 70 72 6f 63 65 73 73 | 65 64 20 28 6e 75 6c 6c | process|ed (null|
|00003cb0| 20 69 66 20 73 74 64 69 | 6e 29 0a 58 0a 58 24 45 | if stdi|n).X.X$E|
|00003cc0| 4e 56 7b 27 49 46 53 27 | 7d 3d 27 27 20 69 66 20 |NV{'IFS'|}='' if |
|00003cd0| 24 45 4e 56 7b 27 49 46 | 53 27 7d 3b 09 23 20 53 |$ENV{'IF|S'};.# S|
|00003ce0| 68 65 6c 6c 20 73 65 70 | 61 72 61 74 69 6f 6e 20 |hell sep|aration |
|00003cf0| 66 69 65 6c 64 0a 58 26 | 72 65 61 64 5f 63 6f 6e |field.X&|read_con|
|00003d00| 66 69 67 28 24 63 6f 6e | 66 69 67 5f 66 69 6c 65 |fig($con|fig_file|
|00003d10| 29 3b 09 09 23 20 52 65 | 61 64 20 63 6f 6e 66 69 |);..# Re|ad confi|
|00003d20| 67 75 72 61 74 69 6f 6e | 20 66 69 6c 65 20 61 6e |guration| file an|
|00003d30| 64 20 73 65 74 20 63 66 | 20 70 61 63 6b 61 67 65 |d set cf| package|
|00003d40| 0a 58 0a 58 24 45 4e 56 | 7b 27 48 4f 4d 45 27 7d |.X.X$ENV|{'HOME'}|
|00003d50| 20 3d 20 24 63 66 27 68 | 6f 6d 65 3b 0a 58 24 45 | = $cf'h|ome;.X$E|
|00003d60| 4e 56 7b 27 55 53 45 52 | 27 7d 20 3d 20 24 63 66 |NV{'USER|'} = $cf|
|00003d70| 27 75 73 65 72 3b 0a 58 | 24 45 4e 56 7b 27 4e 41 |'user;.X|$ENV{'NA|
|00003d80| 4d 45 27 7d 20 3d 20 24 | 63 66 27 6e 61 6d 65 3b |ME'} = $|cf'name;|
|00003d90| 0a 58 0a 58 75 6d 61 73 | 6b 28 30 37 37 29 3b 09 |.X.Xumas|k(077);.|
|00003da0| 09 09 09 09 09 23 20 46 | 69 6c 65 73 20 77 65 20 |.....# F|iles we |
|00003db0| 63 72 65 61 74 65 20 61 | 72 65 20 70 72 69 76 61 |create a|re priva|
|00003dc0| 74 65 20 6f 6e 65 73 0a | 58 24 6a 6f 62 6e 75 6d |te ones.|X$jobnum|
|00003dd0| 20 3d 20 26 6a 6f 62 6e | 75 6d 3b 09 09 09 09 23 | = &jobn|um;....#|
|00003de0| 20 43 6f 6d 70 75 74 65 | 20 61 20 6a 6f 62 20 6e | Compute| a job n|
|00003df0| 75 6d 62 65 72 0a 58 26 | 69 6e 69 74 5f 61 6c 6c |umber.X&|init_all|
|00003e00| 3b 09 09 09 09 09 09 23 | 20 53 74 61 72 74 2d 75 |;......#| Start-u|
|00003e10| 70 20 69 6e 69 74 69 61 | 6c 69 7a 61 74 69 6f 6e |p initia|lization|
|00003e20| 73 0a 58 0a 58 24 68 6f | 6f 6b 5f 74 79 70 65 20 |s.X.X$ho|ok_type |
|00003e30| 3d 20 26 68 6f 6f 6b 5f | 74 79 70 65 28 24 68 6f |= &hook_|type($ho|
|00003e40| 6f 6b 5f 6e 61 6d 65 29 | 3b 09 09 09 23 20 44 65 |ok_name)|;...# De|
|00003e50| 74 65 72 6d 69 6e 65 20 | 6b 69 6e 64 20 6f 66 20 |termine |kind of |
|00003e60| 68 6f 6f 6b 0a 58 26 68 | 6f 6f 6b 69 6e 67 28 24 |hook.X&h|ooking($|
|00003e70| 66 69 6c 65 5f 6e 61 6d | 65 2c 20 24 68 6f 6f 6b |file_nam|e, $hook|
|00003e80| 5f 6e 61 6d 65 2c 20 24 | 68 6f 6f 6b 5f 74 79 70 |_name, $|hook_typ|
|00003e90| 65 29 3b 09 23 20 50 72 | 69 6e 74 20 6c 6f 67 20 |e);.# Pr|int log |
|00003ea0| 6d 65 73 73 61 67 65 0a | 58 63 68 64 69 72 28 24 |message.|Xchdir($|
|00003eb0| 63 66 27 68 6f 6d 65 29 | 3b 09 09 09 09 09 09 09 |cf'home)|;.......|
|00003ec0| 09 23 20 48 6f 6f 6b 20 | 63 61 6c 6c 65 64 20 69 |.# Hook |called i|
|00003ed0| 6e 20 68 6f 6d 65 20 64 | 69 72 65 63 74 6f 72 79 |n home d|irectory|
|00003ee0| 0a 58 26 24 68 6f 6f 6b | 5f 74 79 70 65 28 24 66 |.X&$hook|_type($f|
|00003ef0| 69 6c 65 5f 6e 61 6d 65 | 2c 20 24 68 6f 6f 6b 5f |ile_name|, $hook_|
|00003f00| 6e 61 6d 65 29 3b 09 09 | 09 23 20 49 6e 76 6f 6b |name);..|.# Invok|
|00003f10| 65 20 68 6f 6f 6b 69 6e | 67 20 66 75 6e 63 74 69 |e hookin|g functi|
|00003f20| 6f 6e 0a 58 0a 58 23 20 | 45 6e 64 20 6f 66 20 6d |on.X.X# |End of m|
|00003f30| 61 69 6c 68 6f 6f 6b 20 | 70 72 6f 63 65 73 73 69 |ailhook |processi|
|00003f40| 6e 67 0a 58 26 61 64 64 | 5f 6c 6f 67 28 22 6d 61 |ng.X&add|_log("ma|
|00003f50| 69 6c 68 6f 6f 6b 20 65 | 78 69 74 73 22 29 20 69 |ilhook e|xits") i|
|00003f60| 66 20 24 6c 6f 67 6c 76 | 6c 20 3e 20 31 37 3b 0a |f $loglv|l > 17;.|
|00003f70| 58 65 78 69 74 20 30 3b | 0a 58 0a 58 23 20 50 72 |Xexit 0;|.X.X# Pr|
|00003f80| 69 6e 74 20 75 73 61 67 | 65 20 61 6e 64 20 65 78 |int usag|e and ex|
|00003f90| 69 74 0a 58 73 75 62 20 | 75 73 61 67 65 20 7b 0a |it.Xsub |usage {.|
|00003fa0| 58 09 70 72 69 6e 74 20 | 53 54 44 45 52 52 20 3c |X.print |STDERR <|
|00003fb0| 3c 45 4f 46 3b 0a 58 55 | 73 61 67 65 3a 20 24 70 |<EOF;.XU|sage: $p|
|00003fc0| 72 6f 67 5f 6e 61 6d 65 | 20 5b 2d 68 56 5d 20 68 |rog_name| [-hV] h|
|00003fd0| 6f 6f 6b 20 5b 6d 61 69 | 6c 5d 0a 58 20 20 2d 68 |ook [mai|l].X -h|
|00003fe0| 20 3a 20 70 72 69 6e 74 | 20 74 68 69 73 20 68 65 | : print| this he|
|00003ff0| 6c 70 20 6d 65 73 73 61 | 67 65 20 61 6e 64 20 65 |lp messa|ge and e|
|00004000| 78 69 74 73 2e 0a 58 20 | 20 2d 56 20 3a 20 70 72 |xits..X | -V : pr|
|00004010| 69 6e 74 20 76 65 72 73 | 69 6f 6e 20 6e 75 6d 62 |int vers|ion numb|
|00004020| 65 72 20 61 6e 64 20 65 | 78 69 74 73 2e 0a 58 45 |er and e|xits..XE|
|00004030| 4f 46 0a 58 09 65 78 69 | 74 20 31 3b 0a 58 7d 0a |OF.X.exi|t 1;.X}.|
|00004040| 58 0a 58 23 20 53 74 61 | 72 74 2d 75 70 20 69 6e |X.X# Sta|rt-up in|
|00004050| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 73 0a 58 73 |itializa|tions.Xs|
|00004060| 75 62 20 69 6e 69 74 5f | 61 6c 6c 20 7b 0a 58 09 |ub init_|all {.X.|
|00004070| 26 69 6e 69 74 5f 73 69 | 67 6e 61 6c 73 3b 09 09 |&init_si|gnals;..|
|00004080| 09 09 23 20 54 72 61 70 | 20 63 6f 6d 6d 6f 6e 20 |..# Trap| common |
|00004090| 73 69 67 6e 61 6c 73 0a | 58 09 26 69 6e 69 74 5f |signals.|X.&init_|
|000040a0| 63 6f 6e 73 74 61 6e 74 | 73 3b 09 09 09 23 20 43 |constant|s;...# C|
|000040b0| 6f 6e 73 74 61 6e 74 73 | 20 64 65 66 69 6e 69 74 |onstants| definit|
|000040c0| 69 6f 6e 73 0a 58 7d 0a | 58 0a 58 23 20 50 72 6f |ions.X}.|X.X# Pro|
|000040d0| 74 65 63 74 20 6f 75 72 | 73 65 6c 76 65 73 20 28 |tect our|selves (|
|000040e0| 74 72 61 70 20 63 6f 6d | 6d 6f 6e 20 73 69 67 6e |trap com|mon sign|
|000040f0| 61 6c 73 29 0a 58 73 75 | 62 20 69 6e 69 74 5f 73 |als).Xsu|b init_s|
|00004100| 69 67 6e 61 6c 73 20 7b | 0a 58 09 24 53 49 47 7b |ignals {|.X.$SIG{|
|00004110| 27 48 55 50 27 7d 20 3d | 20 27 65 6d 65 72 67 65 |'HUP'} =| 'emerge|
|00004120| 6e 63 79 27 3b 0a 58 09 | 24 53 49 47 7b 27 49 4e |ncy';.X.|$SIG{'IN|
|00004130| 54 27 7d 20 3d 20 27 65 | 6d 65 72 67 65 6e 63 79 |T'} = 'e|mergency|
|00004140| 27 3b 0a 58 09 24 53 49 | 47 7b 27 51 55 49 54 27 |';.X.$SI|G{'QUIT'|
|00004150| 7d 20 3d 20 27 65 6d 65 | 72 67 65 6e 63 79 27 3b |} = 'eme|rgency';|
|00004160| 0a 58 09 24 53 49 47 7b | 27 50 49 50 45 27 7d 20 |.X.$SIG{|'PIPE'} |
|00004170| 3d 20 27 65 6d 65 72 67 | 65 6e 63 79 27 3b 0a 58 |= 'emerg|ency';.X|
|00004180| 09 24 53 49 47 7b 27 49 | 4f 27 7d 20 3d 20 27 65 |.$SIG{'I|O'} = 'e|
|00004190| 6d 65 72 67 65 6e 63 79 | 27 3b 0a 58 09 24 53 49 |mergency|';.X.$SI|
|000041a0| 47 7b 27 42 55 53 27 7d | 20 3d 20 27 65 6d 65 72 |G{'BUS'}| = 'emer|
|000041b0| 67 65 6e 63 79 27 3b 0a | 58 09 24 53 49 47 7b 27 |gency';.|X.$SIG{'|
|000041c0| 49 4c 4c 27 7d 20 3d 20 | 27 65 6d 65 72 67 65 6e |ILL'} = |'emergen|
|000041d0| 63 79 27 3b 0a 58 09 24 | 53 49 47 7b 27 53 45 47 |cy';.X.$|SIG{'SEG|
|000041e0| 56 27 7d 20 3d 20 27 65 | 6d 65 72 67 65 6e 63 79 |V'} = 'e|mergency|
|000041f0| 27 3b 0a 58 09 24 53 49 | 47 7b 27 41 4c 52 4d 27 |';.X.$SI|G{'ALRM'|
|00004200| 7d 20 3d 20 27 65 6d 65 | 72 67 65 6e 63 79 27 3b |} = 'eme|rgency';|
|00004210| 0a 58 09 24 53 49 47 7b | 27 54 45 52 4d 27 7d 20 |.X.$SIG{|'TERM'} |
|00004220| 3d 20 27 65 6d 65 72 67 | 65 6e 63 79 27 3b 0a 58 |= 'emerg|ency';.X|
|00004230| 7d 0a 58 0a 58 23 20 43 | 6f 6e 73 74 61 6e 74 73 |}.X.X# C|onstants|
|00004240| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 0a 58 73 75 | definit|ions.Xsu|
|00004250| 62 20 69 6e 69 74 5f 63 | 6f 6e 73 74 61 6e 74 73 |b init_c|onstants|
|00004260| 20 7b 0a 58 09 26 69 6e | 69 74 5f 68 6f 6f 6b 73 | {.X.&in|it_hooks|
|00004270| 3b 09 09 09 09 23 20 49 | 6e 69 74 20 68 6f 6f 6b |;....# I|nit hook|
|00004280| 73 20 63 6f 6e 73 74 61 | 6e 74 73 0a 58 7d 0a 58 |s consta|nts.X}.X|
|00004290| 0a 58 21 4e 4f 21 53 55 | 42 53 21 0a 58 24 67 72 |.X!NO!SU|BS!.X$gr|
|000042a0| 65 70 20 2d 76 20 27 5e | 3b 23 27 20 70 6c 2f 6a |ep -v '^|;#' pl/j|
|000042b0| 6f 62 6e 75 6d 2e 70 6c | 20 3e 3e 6d 68 6f 6f 6b |obnum.pl| >>mhook|
|000042c0| 0a 58 24 67 72 65 70 20 | 2d 76 20 27 5e 3b 23 27 |.X$grep |-v '^;#'|
|000042d0| 20 70 6c 2f 72 65 61 64 | 5f 63 6f 6e 66 2e 70 6c | pl/read|_conf.pl|
|000042e0| 20 3e 3e 6d 68 6f 6f 6b | 0a 58 24 67 72 65 70 20 | >>mhook|.X$grep |
|000042f0| 2d 76 20 27 5e 3b 23 27 | 20 70 6c 2f 61 63 73 5f |-v '^;#'| pl/acs_|
|00004300| 72 71 73 74 2e 70 6c 20 | 3e 3e 6d 68 6f 6f 6b 0a |rqst.pl |>>mhook.|
|00004310| 58 24 67 72 65 70 20 2d | 76 20 27 5e 3b 23 27 20 |X$grep -|v '^;#' |
|00004320| 70 6c 2f 66 72 65 65 5f | 66 69 6c 65 2e 70 6c 20 |pl/free_|file.pl |
|00004330| 3e 3e 6d 68 6f 6f 6b 0a | 58 24 67 72 65 70 20 2d |>>mhook.|X$grep -|
|00004340| 76 20 27 5e 3b 23 27 20 | 70 6c 2f 61 64 64 5f 6c |v '^;#' |pl/add_l|
|00004350| 6f 67 2e 70 6c 20 3e 3e | 6d 68 6f 6f 6b 0a 58 24 |og.pl >>|mhook.X$|
|00004360| 67 72 65 70 20 2d 76 20 | 27 5e 3b 23 27 20 70 6c |grep -v |'^;#' pl|
|00004370| 2f 63 68 65 63 6b 6c 6f | 63 6b 2e 70 6c 20 3e 3e |/checklo|ck.pl >>|
|00004380| 6d 68 6f 6f 6b 0a 58 24 | 67 72 65 70 20 2d 76 20 |mhook.X$|grep -v |
|00004390| 27 5e 3b 23 27 20 70 6c | 2f 68 6f 6f 6b 2e 70 6c |'^;#' pl|/hook.pl|
|000043a0| 20 3e 3e 6d 68 6f 6f 6b | 0a 58 24 67 72 65 70 20 | >>mhook|.X$grep |
|000043b0| 2d 76 20 27 5e 3b 23 27 | 20 70 6c 2f 6d 61 69 6c |-v '^;#'| pl/mail|
|000043c0| 68 6f 6f 6b 2e 70 6c 20 | 3e 3e 6d 68 6f 6f 6b 0a |hook.pl |>>mhook.|
|000043d0| 58 24 67 72 65 70 20 2d | 76 20 27 5e 3b 23 27 20 |X$grep -|v '^;#' |
|000043e0| 70 6c 2f 64 62 72 2e 70 | 6c 20 3e 3e 6d 68 6f 6f |pl/dbr.p|l >>mhoo|
|000043f0| 6b 0a 58 24 67 72 65 70 | 20 2d 76 20 27 5e 3b 23 |k.X$grep| -v '^;#|
|00004400| 27 20 70 6c 2f 66 61 74 | 61 6c 2e 70 6c 20 3e 3e |' pl/fat|al.pl >>|
|00004410| 6d 68 6f 6f 6b 0a 58 24 | 67 72 65 70 20 2d 76 20 |mhook.X$|grep -v |
|00004420| 27 5e 3b 23 27 20 70 6c | 2f 70 61 72 73 65 2e 70 |'^;#' pl|/parse.p|
|00004430| 6c 20 3e 3e 6d 68 6f 6f | 6b 0a 58 24 67 72 65 70 |l >>mhoo|k.X$grep|
|00004440| 20 2d 76 20 27 5e 3b 23 | 27 20 70 6c 2f 68 65 61 | -v '^;#|' pl/hea|
|00004450| 64 65 72 2e 70 6c 20 3e | 3e 6d 68 6f 6f 6b 0a 58 |der.pl >|>mhook.X|
|00004460| 24 67 72 65 70 20 2d 76 | 20 27 5e 3b 23 27 20 70 |$grep -v| '^;#' p|
|00004470| 6c 2f 72 66 63 38 32 32 | 2e 70 6c 20 3e 3e 6d 68 |l/rfc822|.pl >>mh|
|00004480| 6f 6f 6b 0a 58 24 67 72 | 65 70 20 2d 76 20 27 5e |ook.X$gr|ep -v '^|
|00004490| 3b 23 27 20 70 6c 2f 65 | 78 74 65 72 6e 2e 70 6c |;#' pl/e|xtern.pl|
|000044a0| 20 3e 3e 6d 68 6f 6f 6b | 0a 58 63 68 6d 6f 64 20 | >>mhook|.Xchmod |
|000044b0| 37 35 35 20 6d 68 6f 6f | 6b 0a 58 24 65 75 6e 69 |755 mhoo|k.X$euni|
|000044c0| 63 65 66 69 78 20 6d 68 | 6f 6f 6b 0a 45 4e 44 5f |cefix mh|ook.END_|
|000044d0| 4f 46 5f 46 49 4c 45 0a | 20 20 69 66 20 74 65 73 |OF_FILE.| if tes|
|000044e0| 74 20 33 38 33 34 20 2d | 6e 65 20 60 77 63 20 2d |t 3834 -|ne `wc -|
|000044f0| 63 20 3c 27 61 67 65 6e | 74 2f 6d 68 6f 6f 6b 2e |c <'agen|t/mhook.|
|00004500| 53 48 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |SH'`; th|en. e|
|00004510| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 61 67 65 |cho shar|: \"'age|
|00004520| 6e 74 2f 6d 68 6f 6f 6b | 2e 53 48 27 5c 22 20 75 |nt/mhook|.SH'\" u|
|00004530| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00004540| 6e 67 20 73 69 7a 65 21 | 0a 20 20 66 69 0a 20 20 |ng size!|. fi. |
|00004550| 23 20 65 6e 64 20 6f 66 | 20 27 61 67 65 6e 74 2f |# end of| 'agent/|
|00004560| 6d 68 6f 6f 6b 2e 53 48 | 27 0a 66 69 0a 69 66 20 |mhook.SH|'.fi.if |
|00004570| 74 65 73 74 20 2d 66 20 | 27 61 67 65 6e 74 2f 70 |test -f |'agent/p|
|00004580| 6c 2f 62 75 69 6c 74 69 | 6e 73 2e 70 6c 27 20 2d |l/builti|ns.pl' -|
|00004590| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|000045a0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|000045b0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|000045c0| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|000045d0| 66 69 6c 65 20 5c 22 27 | 61 67 65 6e 74 2f 70 6c |file \"'|agent/pl|
|000045e0| 2f 62 75 69 6c 74 69 6e | 73 2e 70 6c 27 5c 22 0a |/builtin|s.pl'\".|
|000045f0| 65 6c 73 65 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |else. e|cho shar|
|00004600| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00004610| 61 67 65 6e 74 2f 70 6c | 2f 62 75 69 6c 74 69 6e |agent/pl|/builtin|
|00004620| 73 2e 70 6c 27 5c 22 20 | 5c 28 33 33 38 39 20 63 |s.pl'\" |\(3389 c|
|00004630| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 20 20 73 65 |haracter|s\). se|
|00004640| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 61 67 65 |d "s/^X/|/" >'age|
|00004650| 6e 74 2f 70 6c 2f 62 75 | 69 6c 74 69 6e 73 2e 70 |nt/pl/bu|iltins.p|
|00004660| 6c 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |l' <<'EN|D_OF_FIL|
|00004670| 45 27 0a 58 3b 23 20 24 | 49 64 3a 20 62 75 69 6c |E'.X;# $|Id: buil|
|00004680| 74 69 6e 73 2e 70 6c 2c | 76 20 32 2e 39 20 39 32 |tins.pl,|v 2.9 92|
|00004690| 2f 30 37 2f 31 34 20 31 | 36 3a 34 39 3a 33 38 20 |/07/14 1|6:49:38 |
|000046a0| 72 61 6d 20 45 78 70 20 | 24 0a 58 3b 23 0a 58 3b |ram Exp |$.X;#.X;|
|000046b0| 23 20 20 43 6f 70 79 72 | 69 67 68 74 20 28 63 29 |# Copyr|ight (c)|
|000046c0| 20 31 39 39 32 2c 20 52 | 61 70 68 61 65 6c 20 4d | 1992, R|aphael M|
|000046d0| 61 6e 66 72 65 64 69 0a | 58 3b 23 0a 58 3b 23 20 |anfredi.|X;#.X;# |
|000046e0| 20 59 6f 75 20 6d 61 79 | 20 72 65 64 69 73 74 72 | You may| redistr|
|000046f0| 69 62 75 74 65 20 6f 6e | 6c 79 20 75 6e 64 65 72 |ibute on|ly under|
|00004700| 20 74 68 65 20 74 65 72 | 6d 73 20 6f 66 20 74 68 | the ter|ms of th|
|00004710| 65 20 47 4e 55 20 47 65 | 6e 65 72 61 6c 20 50 75 |e GNU Ge|neral Pu|
|00004720| 62 6c 69 63 0a 58 3b 23 | 20 20 4c 69 63 65 6e 63 |blic.X;#| Licenc|
|00004730| 65 20 61 73 20 73 70 65 | 63 69 66 69 65 64 20 69 |e as spe|cified i|
|00004740| 6e 20 74 68 65 20 52 45 | 41 44 4d 45 20 66 69 6c |n the RE|ADME fil|
|00004750| 65 20 74 68 61 74 20 63 | 6f 6d 65 73 20 77 69 74 |e that c|omes wit|
|00004760| 68 20 64 69 73 74 2e 0a | 58 3b 23 0a 58 3b 23 20 |h dist..|X;#.X;# |
|00004770| 24 4c 6f 67 3a 09 62 75 | 69 6c 74 69 6e 73 2e 70 |$Log:.bu|iltins.p|
|00004780| 6c 2c 76 20 24 0a 58 3b | 23 20 52 65 76 69 73 69 |l,v $.X;|# Revisi|
|00004790| 6f 6e 20 32 2e 39 20 20 | 39 32 2f 30 37 2f 31 34 |on 2.9 |92/07/14|
|000047a0| 20 20 31 36 3a 34 39 3a | 33 38 20 20 72 61 6d 0a | 16:49:|38 ram.|
|000047b0| 58 3b 23 20 33 2e 30 20 | 62 65 74 61 20 62 61 73 |X;# 3.0 |beta bas|
|000047c0| 65 6c 69 6e 65 2e 0a 58 | 3b 23 20 0a 58 3b 23 20 |eline..X|;# .X;# |
|000047d0| 0a 58 23 0a 58 23 20 45 | 78 65 63 75 74 69 6e 67 |.X#.X# E|xecuting|
|000047e0| 20 62 75 69 6c 74 69 6e | 20 63 6f 6d 6d 61 6e 64 | builtin| command|
|000047f0| 73 0a 58 23 0a 58 0a 58 | 23 20 53 65 6e 64 20 61 |s.X#.X.X|# Send a|
|00004800| 20 72 65 63 65 69 70 74 | 0a 58 73 75 62 20 73 65 | receipt|.Xsub se|
|00004810| 6e 64 5f 72 65 63 65 69 | 70 74 20 7b 0a 58 09 6c |nd_recei|pt {.X.l|
|00004820| 6f 63 61 6c 28 24 73 75 | 62 6a 29 20 3d 09 09 09 |ocal($su|bj) =...|
|00004830| 24 48 65 61 64 65 72 7b | 27 53 75 62 6a 65 63 74 |$Header{|'Subject|
|00004840| 27 7d 3b 0a 58 09 6c 6f | 63 61 6c 28 24 6d 73 67 |'};.X.lo|cal($msg|
|00004850| 5f 69 64 29 20 3d 09 09 | 24 48 65 61 64 65 72 7b |_id) =..|$Header{|
|00004860| 27 4d 65 73 73 61 67 65 | 2d 49 64 27 7d 3b 0a 58 |'Message|-Id'};.X|
|00004870| 09 6c 6f 63 61 6c 28 24 | 66 72 6f 6d 29 20 3d 09 |.local($|from) =.|
|00004880| 09 09 24 48 65 61 64 65 | 72 7b 27 46 72 6f 6d 27 |..$Heade|r{'From'|
|00004890| 7d 3b 0a 58 09 6c 6f 63 | 61 6c 28 24 73 65 6e 64 |};.X.loc|al($send|
|000048a0| 65 72 29 20 3d 09 09 24 | 48 65 61 64 65 72 7b 27 |er) =..$|Header{'|
|000048b0| 52 65 70 6c 79 2d 54 6f | 27 7d 3b 0a 58 09 6c 6f |Reply-To|'};.X.lo|
|000048c0| 63 61 6c 28 24 74 6f 29 | 20 3d 09 09 09 24 48 65 |cal($to)| =...$He|
|000048d0| 61 64 65 72 7b 27 54 6f | 27 7d 3b 0a 58 09 6c 6f |ader{'To|'};.X.lo|
|000048e0| 63 61 6c 28 24 61 63 6b | 5f 64 65 73 74 29 20 3d |cal($ack|_dest) =|
|000048f0| 20 40 5f 3b 09 23 20 57 | 65 72 65 20 74 6f 20 73 | @_;.# W|ere to s|
|00004900| 65 6e 64 20 72 65 63 65 | 69 70 74 0a 58 09 6c 6f |end rece|ipt.X.lo|
|00004910| 63 61 6c 28 24 64 65 73 | 74 29 3b 09 09 09 23 20 |cal($des|t);...# |
|00004920| 52 65 74 75 72 6e 20 70 | 61 74 68 20 74 6f 20 62 |Return p|ath to b|
|00004930| 65 20 75 73 65 64 20 28 | 64 65 72 69 76 65 64 20 |e used (|derived |
|00004940| 66 72 6f 6d 20 6d 61 69 | 6c 29 0a 58 0a 58 09 23 |from mai|l).X.X.#|
|00004950| 20 49 66 20 6e 6f 20 40 | 50 41 54 48 20 64 69 72 | If no @|PATH dir|
|00004960| 65 63 74 69 76 65 20 77 | 61 73 20 66 6f 75 6e 64 |ective w|as found|
|00004970| 2c 20 75 73 65 20 24 73 | 65 6e 64 65 72 20 61 73 |, use $s|ender as|
|00004980| 20 61 20 72 65 74 75 72 | 6e 20 70 61 74 68 0a 58 | a retur|n path.X|
|00004990| 09 24 64 65 73 74 20 3d | 20 24 55 73 65 72 70 61 |.$dest =| $Userpa|
|000049a0| 74 68 3b 09 09 09 09 23 | 20 53 65 74 20 62 79 20 |th;....#| Set by |
|000049b0| 61 6e 20 40 50 41 54 48 | 0a 58 09 24 64 65 73 74 |an @PATH|.X.$dest|
|000049c0| 20 3d 20 24 73 65 6e 64 | 65 72 20 75 6e 6c 65 73 | = $send|er unles|
|000049d0| 73 20 24 64 65 73 74 3b | 0a 58 09 23 20 52 65 6d |s $dest;|.X.# Rem|
|000049e0| 6f 76 65 20 74 68 65 20 | 3c 3e 20 69 66 20 61 6e |ove the |<> if an|
|000049f0| 79 20 28 65 2e 67 2e 20 | 70 61 74 68 20 64 65 72 |y (e.g. |path der|
|00004a00| 69 76 65 64 20 66 72 6f | 6d 20 52 65 74 75 72 6e |ived fro|m Return|
|00004a10| 2d 50 61 74 68 29 0a 58 | 09 24 64 65 73 74 20 3d |-Path).X|.$dest =|
|00004a20| 7e 20 2f 3c 28 2e 2a 29 | 3e 2f 20 26 26 20 28 24 |~ /<(.*)|>/ && ($|
|00004a30| 64 65 73 74 20 3d 20 24 | 31 29 3b 0a 58 0a 58 09 |dest = $|1);.X.X.|
|00004a40| 23 20 44 65 72 69 76 65 | 20 61 20 63 6f 72 72 65 |# Derive| a corre|
|00004a50| 63 74 20 72 65 74 75 72 | 6e 20 70 61 74 68 20 66 |ct retur|n path f|
|00004a60| 6f 72 20 72 65 63 65 69 | 70 74 0a 58 09 24 61 63 |or recei|pt.X.$ac|
|00004a70| 6b 5f 64 65 73 74 20 3d | 20 27 50 41 54 48 27 20 |k_dest =| 'PATH' |
|00004a80| 69 66 20 24 61 63 6b 5f | 64 65 73 74 20 65 71 20 |if $ack_|dest eq |
|00004a90| 27 2d 27 3b 0a 58 09 24 | 61 63 6b 5f 64 65 73 74 |'-';.X.$|ack_dest|
|00004aa0| 20 3d 20 22 22 20 69 66 | 20 24 61 63 6b 5f 64 65 | = "" if| $ack_de|
|00004ab0| 73 74 20 3d 7e 20 2f 5b | 3d 5c 24 5e 26 2a 28 5b |st =~ /[|=\$^&*([|
|00004ac0| 7b 7d 60 5c 5c 7c 3b 3e | 3c 3f 5d 2f 3b 0a 58 09 |{}`\\|;>|<?]/;.X.|
|00004ad0| 24 61 63 6b 5f 64 65 73 | 74 20 3d 20 24 64 65 73 |$ack_des|t = $des|
|00004ae0| 74 20 69 66 20 28 24 61 | 63 6b 5f 64 65 73 74 20 |t if ($a|ck_dest |
|00004af0| 65 71 20 27 27 20 7c 7c | 20 24 61 63 6b 5f 64 65 |eq '' ||| $ack_de|
|00004b00| 73 74 20 3d 7e 20 2f 50 | 41 54 48 2f 29 3b 0a 58 |st =~ /P|ATH/);.X|
|00004b10| 0a 58 09 23 20 43 6f 6d | 70 75 74 65 20 68 6f 73 |.X.# Com|pute hos|
|00004b20| 74 20 6e 61 6d 65 20 28 | 66 75 6c 6c 79 20 71 75 |t name (|fully qu|
|00004b30| 61 6c 69 66 69 65 64 2c | 20 69 2e 65 2e 20 77 69 |alified,| i.e. wi|
|00004b40| 74 68 20 64 6f 6d 61 69 | 6e 20 6e 61 6d 65 29 0a |th domai|n name).|
|00004b50| 58 09 63 68 6f 70 28 24 | 68 6f 73 74 6e 61 6d 65 |X.chop($|hostname|
|00004b60| 20 3d 20 60 24 70 68 6f | 73 74 6e 61 6d 65 60 29 | = `$pho|stname`)|
|00004b70| 3b 0a 58 09 24 68 6f 73 | 74 6e 61 6d 65 20 2e 3d |;.X.$hos|tname .=|
|00004b80| 20 24 6d 79 64 6f 6d 61 | 69 6e 20 69 66 20 24 68 | $mydoma|in if $h|
|00004b90| 6f 73 74 6e 61 6d 65 20 | 3d 7e 20 2f 5e 5c 77 2b |ostname |=~ /^\w+|
|00004ba0| 24 2f 3b 0a 58 0a 58 09 | 63 68 6f 70 28 24 64 61 |$/;.X.X.|chop($da|
|00004bb0| 74 65 20 3d 20 60 64 61 | 74 65 60 29 3b 0a 58 09 |te = `da|te`);.X.|
|00004bc0| 6f 70 65 6e 28 4d 41 49 | 4c 45 52 2c 22 7c 2f 75 |open(MAI|LER,"|/u|
|00004bd0| 73 72 2f 6c 69 62 2f 73 | 65 6e 64 6d 61 69 6c 20 |sr/lib/s|endmail |
|00004be0| 2d 6f 64 71 20 2d 74 22 | 29 3b 0a 58 09 70 72 69 |-odq -t"|);.X.pri|
|00004bf0| 6e 74 20 4d 41 49 4c 45 | 52 0a 58 22 54 6f 3a 20 |nt MAILE|R.X"To: |
|00004c00| 24 61 63 6b 5f 64 65 73 | 74 0a 58 53 75 62 6a 65 |$ack_des|t.XSubje|
|00004c10| 63 74 3a 20 52 65 3a 20 | 24 73 75 62 6a 20 28 72 |ct: Re: |$subj (r|
|00004c20| 65 63 65 69 70 74 29 0a | 58 58 2d 4d 61 69 6c 65 |eceipt).|XX-Maile|
|00004c30| 72 3a 20 6d 61 69 6c 61 | 67 65 6e 74 20 5b 76 65 |r: maila|gent [ve|
|00004c40| 72 73 69 6f 6e 20 24 6d | 76 65 72 73 69 6f 6e 20 |rsion $m|version |
|00004c50| 50 4c 24 70 61 74 63 68 | 6c 65 76 65 6c 5d 0a 58 |PL$patch|level].X|
|00004c60| 22 3b 0a 58 09 69 66 20 | 28 24 6d 73 67 5f 69 64 |";.X.if |($msg_id|
|00004c70| 20 6e 65 20 27 27 29 20 | 7b 0a 58 09 09 70 72 69 | ne '') |{.X..pri|
|00004c80| 6e 74 20 4d 41 49 4c 45 | 52 20 22 5c 6e 59 6f 75 |nt MAILE|R "\nYou|
|00004c90| 72 20 6d 65 73 73 61 67 | 65 20 24 6d 73 67 5f 69 |r messag|e $msg_i|
|00004ca0| 64 2c 5c 6e 22 3b 0a 58 | 09 7d 20 65 6c 73 65 20 |d,\n";.X|.} else |
|00004cb0| 7b 0a 58 09 09 70 72 69 | 6e 74 20 4d 41 49 4c 45 |{.X..pri|nt MAILE|
|00004cc0| 52 20 22 5c 6e 59 6f 75 | 72 20 6d 65 73 73 61 67 |R "\nYou|r messag|
|00004cd0| 65 20 22 3b 0a 58 09 7d | 0a 58 09 70 72 69 6e 74 |e ";.X.}|.X.print|
|00004ce0| 20 4d 41 49 4c 45 52 20 | 22 61 64 64 72 65 73 73 | MAILER |"address|
|00004cf0| 65 64 20 74 6f 20 24 74 | 6f 2c 5c 6e 22 20 69 66 |ed to $t|o,\n" if|
|00004d00| 20 24 74 6f 20 6e 65 20 | 27 27 3b 0a 58 09 70 72 | $to ne |'';.X.pr|
|00004d10| 69 6e 74 20 4d 41 49 4c | 45 52 20 22 77 68 6f 73 |int MAIL|ER "whos|
|00004d20| 65 20 73 75 62 6a 65 63 | 74 20 77 61 73 20 5c 22 |e subjec|t was \"|
|00004d30| 24 73 75 62 6a 5c 22 2c | 5c 6e 22 20 69 66 20 24 |$subj\",|\n" if $|
|00004d40| 73 75 62 6a 20 6e 65 20 | 27 27 3b 0a 58 09 70 72 |subj ne |'';.X.pr|
|00004d50| 69 6e 74 20 4d 41 49 4c | 45 52 0a 58 22 68 61 73 |int MAIL|ER.X"has|
|00004d60| 20 62 65 65 6e 20 72 65 | 63 65 69 76 65 64 20 62 | been re|ceived b|
|00004d70| 79 20 24 68 6f 73 74 6e | 61 6d 65 20 6f 6e 20 24 |y $hostn|ame on $|
|00004d80| 64 61 74 65 0a 58 0a 58 | 2d 2d 20 6d 61 69 6c 61 |date.X.X|-- maila|
|00004d90| 67 65 6e 74 20 73 70 65 | 61 6b 69 6e 67 20 66 6f |gent spe|aking fo|
|00004da0| 72 20 24 63 66 27 75 73 | 65 72 0a 58 22 3b 0a 58 |r $cf'us|er.X";.X|
|00004db0| 09 63 6c 6f 73 65 20 4d | 41 49 4c 45 52 3b 0a 58 |.close M|AILER;.X|
|00004dc0| 09 69 66 20 28 24 3f 29 | 20 7b 0a 58 09 09 64 6f |.if ($?)| {.X..do|
|00004dd0| 20 61 64 64 5f 6c 6f 67 | 28 22 45 52 52 4f 52 20 | add_log|("ERROR |
|00004de0| 63 6f 75 6c 64 6e 27 74 | 20 73 65 6e 64 20 72 65 |couldn't| send re|
|00004df0| 63 65 69 70 74 20 74 6f | 20 24 61 63 6b 5f 64 65 |ceipt to| $ack_de|
|00004e00| 73 74 22 29 20 69 66 20 | 24 6c 6f 67 6c 76 6c 20 |st") if |$loglvl |
|00004e10| 3e 20 30 3b 0a 58 09 7d | 20 65 6c 73 65 20 7b 0a |> 0;.X.}| else {.|
|00004e20| 58 09 09 64 6f 20 61 64 | 64 5f 6c 6f 67 28 22 53 |X..do ad|d_log("S|
|00004e30| 45 4e 54 20 72 65 63 65 | 69 70 74 20 74 6f 20 24 |ENT rece|ipt to $|
|00004e40| 61 63 6b 5f 64 65 73 74 | 22 29 20 69 66 20 24 6c |ack_dest|") if $l|
|00004e50| 6f 67 6c 76 6c 20 3e 20 | 32 3b 0a 58 09 7d 0a 58 |oglvl > |2;.X.}.X|
|00004e60| 7d 0a 58 0a 58 23 0a 58 | 23 20 44 65 61 6c 20 77 |}.X.X#.X|# Deal w|
|00004e70| 69 74 68 20 62 75 69 6c | 74 69 6e 73 0a 58 23 0a |ith buil|tins.X#.|
|00004e80| 58 0a 58 23 20 42 75 69 | 6c 74 2d 69 6e 20 63 6f |X.X# Bui|lt-in co|
|00004e90| 6d 6d 61 6e 64 73 20 61 | 72 65 20 6c 69 73 74 65 |mmands a|re liste|
|00004ea0| 64 20 68 65 72 65 69 6e | 2e 20 54 68 6f 73 65 20 |d herein|. Those |
|00004eb0| 63 6f 6d 6d 61 6e 64 73 | 20 62 65 69 6e 67 20 62 |commands| being b|
|00004ec0| 75 69 6c 74 2d 69 6e 20 | 61 72 65 20 61 6c 77 61 |uilt-in |are alwa|
|00004ed0| 79 73 0a 58 23 20 64 65 | 61 6c 74 20 77 69 74 68 |ys.X# de|alt with|
|00004ee0| 20 64 75 72 69 6e 67 20 | 6d 61 69 6c 20 70 61 72 | during |mail par|
|00004ef0| 73 69 6e 67 20 61 6e 64 | 20 61 72 65 20 74 61 6b |sing and| are tak|
|00004f00| 65 6e 20 63 61 72 65 20 | 6f 66 20 61 74 20 74 68 |en care |of at th|
|00004f10| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 74 |e beginn|ing of t|
|00004f20| 68 65 0a 58 23 20 72 75 | 6c 65 73 20 61 6e 61 6c |he.X# ru|les anal|
|00004f30| 79 73 69 73 2e 20 54 68 | 65 20 63 6f 64 65 20 74 |ysis. Th|e code t|
|00004f40| 6f 20 62 65 20 65 78 65 | 63 75 74 65 64 20 66 6f |o be exe|cuted fo|
|00004f50| 72 20 65 61 63 68 20 62 | 75 69 6c 74 69 6e 20 69 |r each b|uiltin i|
|00004f60| 73 20 73 74 6f 72 65 64 | 20 69 6e 20 74 68 65 0a |s stored| in the.|
|00004f70| 58 23 20 42 75 69 6c 74 | 63 6f 64 65 20 61 72 72 |X# Built|code arr|
|00004f80| 61 79 20 62 79 20 74 68 | 6f 73 65 20 72 6f 75 74 |ay by th|ose rout|
|00004f90| 69 6e 65 73 2e 0a 58 73 | 75 62 20 69 6e 69 74 5f |ines..Xs|ub init_|
|00004fa0| 62 75 69 6c 74 69 6e 73 | 20 7b 0a 58 09 25 42 75 |builtins| {.X.%Bu|
|00004fb0| 69 6c 74 69 6e 20 3d 20 | 28 0a 58 09 09 27 52 52 |iltin = |(.X..'RR|
|00004fc0| 27 2c 20 27 62 75 69 6c | 74 69 6e 5f 72 72 27 2c |', 'buil|tin_rr',|
|00004fd0| 0a 58 09 09 27 50 41 54 | 48 27 2c 20 27 62 75 69 |.X..'PAT|H', 'bui|
|00004fe0| 6c 74 69 6e 5f 70 61 74 | 68 27 0a 58 09 29 3b 0a |ltin_pat|h'.X.);.|
|00004ff0| 58 09 75 6e 64 65 66 20 | 40 42 75 69 6c 74 63 6f |X.undef |@Builtco|
|00005000| 64 65 3b 0a 58 7d 0a 58 | 0a 58 23 20 57 68 65 6e |de;.X}.X|.X# When|
|00005010| 65 76 65 72 20 61 20 62 | 75 69 6c 74 69 6e 20 63 |ever a b|uiltin c|
|00005020| 6f 6d 6d 61 6e 64 20 69 | 73 20 72 65 63 6f 67 6e |ommand i|s recogn|
|00005030| 69 7a 65 64 20 28 6f 6e | 20 74 68 65 20 66 6c 79 |ized (on| the fly|
|00005040| 29 20 77 68 69 6c 65 20 | 70 61 72 73 69 6e 67 20 |) while |parsing |
|00005050| 74 68 65 20 6d 61 69 6c | 0a 58 23 20 62 6f 64 79 |the mail|.X# body|
|00005060| 2c 20 74 68 65 20 63 6f | 72 72 65 73 70 6f 6e 64 |, the co|rrespond|
|00005070| 69 6e 67 20 62 75 69 6c | 74 69 6e 20 66 75 6e 63 |ing buil|tin func|
|00005080| 74 69 6f 6e 20 69 73 20 | 63 61 6c 6c 65 64 20 77 |tion is |called w|
|00005090| 69 74 68 20 74 68 65 20 | 72 65 6d 61 69 6e 69 6e |ith the |remainin|
|000050a0| 67 20 6f 66 20 74 68 65 | 0a 58 23 20 6c 69 6e 65 |g of the|.X# line|
|000050b0| 20 67 69 76 65 6e 20 61 | 73 20 61 72 67 75 6d 65 | given a|s argume|
|000050c0| 6e 74 20 28 6c 65 61 64 | 69 6e 67 20 73 70 61 63 |nt (lead|ing spac|
|000050d0| 65 73 20 72 65 6d 6f 76 | 65 64 29 2e 0a 58 0a 58 |es remov|ed)..X.X|
|000050e0| 23 20 54 68 65 20 40 52 | 52 20 63 6f 6d 6d 61 6e |# The @R|R comman|
|000050f0| 64 20 61 73 6b 73 20 66 | 6f 72 20 61 20 72 65 63 |d asks f|or a rec|
|00005100| 65 69 70 74 0a 58 73 75 | 62 20 62 75 69 6c 74 69 |eipt.Xsu|b builti|
|00005110| 6e 5f 72 72 20 7b 0a 58 | 09 6c 6f 63 61 6c 28 24 |n_rr {.X|.local($|
|00005120| 5f 29 20 3d 20 40 5f 3b | 0a 58 09 64 6f 20 61 64 |_) = @_;|.X.do ad|
|00005130| 64 5f 6c 6f 67 28 22 66 | 6f 75 6e 64 20 61 6e 20 |d_log("f|ound an |
|00005140| 40 52 52 20 72 65 71 75 | 65 73 74 20 74 6f 20 24 |@RR requ|est to $|
|00005150| 5f 22 29 20 69 66 20 24 | 6c 6f 67 6c 76 6c 20 3e |_") if $|loglvl >|
|00005160| 20 31 38 3b 0a 58 09 23 | 20 40 52 52 20 72 65 71 | 18;.X.#| @RR req|
|00005170| 75 65 73 74 20 68 6f 6e | 6f 72 65 64 20 6f 6e 6c |uest hon|ored onl|
|00005180| 79 20 69 66 20 6e 6f 74 | 20 66 72 6f 6d 20 73 70 |y if not| from sp|
|00005190| 65 63 69 61 6c 20 75 73 | 65 72 20 61 6e 64 20 64 |ecial us|er and d|
|000051a0| 69 72 65 63 74 65 64 20 | 74 6f 20 75 73 0a 58 09 |irected |to us.X.|
|000051b0| 75 6e 6c 65 73 73 20 28 | 26 73 70 65 63 69 61 6c |unless (|&special|
|000051c0| 5f 75 73 65 72 29 20 7b | 0a 58 09 09 70 75 73 68 |_user) {|.X..push|
|000051d0| 28 40 42 75 69 6c 74 63 | 6f 64 65 2c 20 22 64 6f |(@Builtc|ode, "do|
|000051e0| 20 73 65 6e 64 5f 72 65 | 63 65 69 70 74 28 27 24 | send_re|ceipt('$|
|000051f0| 5f 27 29 22 29 3b 0a 58 | 09 7d 20 65 6c 73 65 20 |_')");.X|.} else |
|00005200| 7b 0a 58 09 09 26 61 64 | 64 5f 6c 6f 67 28 22 69 |{.X..&ad|d_log("i|
|00005210| 67 6e 6f 72 69 6e 67 20 | 40 52 52 20 72 65 71 75 |gnoring |@RR requ|
|00005220| 65 73 74 20 74 6f 20 24 | 5f 22 29 20 69 66 20 24 |est to $|_") if $|
|00005230| 6c 6f 67 6c 76 6c 20 3e | 20 34 3b 0a 58 09 7d 0a |loglvl >| 4;.X.}.|
|00005240| 58 7d 0a 58 0a 58 23 20 | 54 68 65 20 40 50 41 54 |X}.X.X# |The @PAT|
|00005250| 48 20 63 6f 6d 6d 61 6e | 64 20 73 65 74 73 20 61 |H comman|d sets a|
|00005260| 20 76 61 6c 69 64 20 72 | 65 74 75 72 6e 20 70 61 | valid r|eturn pa|
|00005270| 74 68 20 28 72 65 63 6f | 72 64 65 64 20 69 6e 20 |th (reco|rded in |
|00005280| 24 55 73 65 72 70 61 74 | 68 29 0a 58 73 75 62 20 |$Userpat|h).Xsub |
|00005290| 62 75 69 6c 74 69 6e 5f | 70 61 74 68 20 7b 0a 58 |builtin_|path {.X|
|000052a0| 09 6c 6f 63 61 6c 28 24 | 5f 29 20 3d 20 40 5f 3b |.local($|_) = @_;|
|000052b0| 0a 58 09 72 65 74 75 72 | 6e 20 69 66 20 2f 5b 3d |.X.retur|n if /[=|
|000052c0| 5c 24 5e 26 2a 28 5b 7b | 7d 60 5c 5c 7c 3b 3e 3c |\$^&*([{|}`\\|;><|
|000052d0| 3f 5d 2f 3b 09 09 23 20 | 49 6e 76 61 6c 69 64 20 |?]/;..# |Invalid |
|000052e0| 63 68 61 72 61 63 74 65 | 72 20 66 6f 75 6e 64 0a |characte|r found.|
|000052f0| 58 09 24 55 73 65 72 70 | 61 74 68 20 3d 20 24 5f |X.$Userp|ath = $_|
|00005300| 3b 0a 58 09 64 6f 20 61 | 64 64 5f 6c 6f 67 28 22 |;.X.do a|dd_log("|
|00005310| 66 6f 75 6e 64 20 61 6e | 20 40 50 41 54 48 20 72 |found an| @PATH r|
|00005320| 65 71 75 65 73 74 20 74 | 6f 20 24 5f 22 29 20 69 |equest t|o $_") i|
|00005330| 66 20 24 6c 6f 67 6c 76 | 6c 20 3e 20 31 38 3b 0a |f $loglv|l > 18;.|
|00005340| 58 7d 0a 58 0a 58 23 20 | 45 78 65 63 75 74 65 20 |X}.X.X# |Execute |
|00005350| 73 74 61 63 6b 65 64 20 | 62 75 69 6c 74 69 6e 73 |stacked |builtins|
|00005360| 0a 58 73 75 62 20 72 75 | 6e 5f 62 75 69 6c 74 69 |.Xsub ru|n_builti|
|00005370| 6e 73 20 7b 0a 58 09 72 | 65 74 75 72 6e 20 69 66 |ns {.X.r|eturn if|
|00005380| 20 24 23 42 75 69 6c 74 | 63 6f 64 65 20 3c 20 30 | $#Built|code < 0|
|00005390| 3b 09 09 23 20 4e 6f 20 | 72 65 63 6f 72 64 65 64 |;..# No |recorded|
|000053a0| 20 62 75 69 6c 74 69 6e | 73 0a 58 09 66 6f 72 65 | builtin|s.X.fore|
|000053b0| 61 63 68 20 28 40 42 75 | 69 6c 74 63 6f 64 65 29 |ach (@Bu|iltcode)|
|000053c0| 20 7b 0a 58 09 09 65 76 | 61 6c 28 24 5f 29 3b 09 | {.X..ev|al($_);.|
|000053d0| 09 09 09 09 23 20 45 78 | 65 63 75 74 65 20 73 74 |....# Ex|ecute st|
|000053e0| 61 63 6b 65 64 20 62 75 | 69 6c 74 69 6e 0a 58 09 |acked bu|iltin.X.|
|000053f0| 7d 0a 58 09 40 42 75 69 | 6c 74 63 6f 64 65 20 3d |}.X.@Bui|ltcode =|
|00005400| 20 28 29 3b 09 09 09 09 | 23 20 52 65 73 65 74 20 | ();....|# Reset |
|00005410| 62 75 69 6c 74 63 6f 64 | 65 20 61 72 72 61 79 0a |builtcod|e array.|
|00005420| 58 7d 0a 58 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |X}.X.END|_OF_FILE|
|00005430| 0a 20 20 69 66 20 74 65 | 73 74 20 33 33 38 39 20 |. if te|st 3389 |
|00005440| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 61 67 65 |-ne `wc |-c <'age|
|00005450| 6e 74 2f 70 6c 2f 62 75 | 69 6c 74 69 6e 73 2e 70 |nt/pl/bu|iltins.p|
|00005460| 6c 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |l'`; the|n. ec|
|00005470| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 61 67 65 6e |ho shar:| \"'agen|
|00005480| 74 2f 70 6c 2f 62 75 69 | 6c 74 69 6e 73 2e 70 6c |t/pl/bui|ltins.pl|
|00005490| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|000054a0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 20 20 |h wrong |size!. |
|000054b0| 66 69 0a 20 20 23 20 65 | 6e 64 20 6f 66 20 27 61 |fi. # e|nd of 'a|
|000054c0| 67 65 6e 74 2f 70 6c 2f | 62 75 69 6c 74 69 6e 73 |gent/pl/|builtins|
|000054d0| 2e 70 6c 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |.pl'.fi.|if test |
|000054e0| 2d 66 20 27 61 67 65 6e | 74 2f 70 6c 2f 63 6f 6e |-f 'agen|t/pl/con|
|000054f0| 74 65 78 74 2e 70 6c 27 | 20 2d 61 20 22 24 7b 31 |text.pl'| -a "${1|
|00005500| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00005510| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00005520| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00005530| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00005540| 22 27 61 67 65 6e 74 2f | 70 6c 2f 63 6f 6e 74 65 |"'agent/|pl/conte|
|00005550| 78 74 2e 70 6c 27 5c 22 | 0a 65 6c 73 65 0a 20 20 |xt.pl'\"|.else. |
|00005560| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00005570| 63 74 69 6e 67 20 5c 22 | 27 61 67 65 6e 74 2f 70 |cting \"|'agent/p|
|00005580| 6c 2f 63 6f 6e 74 65 78 | 74 2e 70 6c 27 5c 22 20 |l/contex|t.pl'\" |
|00005590| 5c 28 33 33 36 33 20 63 | 68 61 72 61 63 74 65 72 |\(3363 c|haracter|
|000055a0| 73 5c 29 0a 20 20 73 65 | 64 20 22 73 2f 5e 58 2f |s\). se|d "s/^X/|
|000055b0| 2f 22 20 3e 27 61 67 65 | 6e 74 2f 70 6c 2f 63 6f |/" >'age|nt/pl/co|
|000055c0| 6e 74 65 78 74 2e 70 6c | 27 20 3c 3c 27 45 4e 44 |ntext.pl|' <<'END|
|000055d0| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 3b 23 20 24 49 |_OF_FILE|'.X;# $I|
|000055e0| 64 3a 20 63 6f 6e 74 65 | 78 74 2e 70 6c 2c 76 20 |d: conte|xt.pl,v |
|000055f0| 32 2e 39 20 39 32 2f 30 | 37 2f 31 34 20 31 36 3a |2.9 92/0|7/14 16:|
|00005600| 34 39 3a 34 33 20 72 61 | 6d 20 45 78 70 20 24 0a |49:43 ra|m Exp $.|
|00005610| 58 3b 23 0a 58 3b 23 20 | 20 43 6f 70 79 72 69 67 |X;#.X;# | Copyrig|
|00005620| 68 74 20 28 63 29 20 31 | 39 39 32 2c 20 52 61 70 |ht (c) 1|992, Rap|
|00005630| 68 61 65 6c 20 4d 61 6e | 66 72 65 64 69 0a 58 3b |hael Man|fredi.X;|
|00005640| 23 0a 58 3b 23 20 20 59 | 6f 75 20 6d 61 79 20 72 |#.X;# Y|ou may r|
|00005650| 65 64 69 73 74 72 69 62 | 75 74 65 20 6f 6e 6c 79 |edistrib|ute only|
|00005660| 20 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 | under t|he terms|
|00005670| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 47 65 6e 65 | of the |GNU Gene|
|00005680| 72 61 6c 20 50 75 62 6c | 69 63 0a 58 3b 23 20 20 |ral Publ|ic.X;# |
|00005690| 4c 69 63 65 6e 63 65 20 | 61 73 20 73 70 65 63 69 |Licence |as speci|
|000056a0| 66 69 65 64 20 69 6e 20 | 74 68 65 20 52 45 41 44 |fied in |the READ|
|000056b0| 4d 45 20 66 69 6c 65 20 | 74 68 61 74 20 63 6f 6d |ME file |that com|
|000056c0| 65 73 20 77 69 74 68 20 | 64 69 73 74 2e 0a 58 3b |es with |dist..X;|
|000056d0| 23 0a 58 3b 23 20 24 4c | 6f 67 3a 09 63 6f 6e 74 |#.X;# $L|og:.cont|
|000056e0| 65 78 74 2e 70 6c 2c 76 | 20 24 0a 58 3b 23 20 52 |ext.pl,v| $.X;# R|
|000056f0| 65 76 69 73 69 6f 6e 20 | 32 2e 39 20 20 39 32 2f |evision |2.9 92/|
|00005700| 30 37 2f 31 34 20 20 31 | 36 3a 34 39 3a 34 33 20 |07/14 1|6:49:43 |
|00005710| 20 72 61 6d 0a 58 3b 23 | 20 33 2e 30 20 62 65 74 | ram.X;#| 3.0 bet|
|00005720| 61 20 62 61 73 65 6c 69 | 6e 65 2e 0a 58 3b 23 20 |a baseli|ne..X;# |
|00005730| 0a 58 3b 23 20 0a 58 3b | 23 20 4b 65 65 70 20 74 |.X;# .X;|# Keep t|
|00005740| 72 61 63 6b 20 6f 66 20 | 74 68 65 20 6d 61 69 6c |rack of |the mail|
|00005750| 61 67 65 6e 74 27 73 20 | 63 6f 6e 74 65 78 74 2c |agent's |context,|
|00005760| 20 69 6e 20 70 61 72 74 | 69 63 75 6c 61 72 20 61 | in part|icular a|
|00005770| 6c 6c 20 74 68 65 20 61 | 63 74 69 6f 6e 73 20 77 |ll the a|ctions w|
|00005780| 68 69 63 68 0a 58 3b 23 | 20 6d 61 79 20 62 65 20 |hich.X;#| may be |
|00005790| 70 65 72 66 6f 72 6d 65 | 64 20 69 6e 20 61 20 62 |performe|d in a b|
|000057a0| 61 74 63 68 65 64 20 77 | 61 79 20 61 6e 64 20 6e |atched w|ay and n|
|000057b0| 65 65 64 20 74 6f 20 73 | 61 76 65 20 73 6f 6d 65 |eed to s|ave some|
|000057c0| 20 63 6f 6e 74 65 78 74 | 75 61 6c 20 64 61 74 61 | context|ual data|
|000057d0| 2e 0a 58 3b 23 0a 58 70 | 61 63 6b 61 67 65 20 63 |..X;#.Xp|ackage c|
|000057e0| 6f 6e 74 65 78 74 3b 0a | 58 0a 58 23 0a 58 23 20 |ontext;.|X.X#.X# |
|000057f0| 47 65 6e 65 72 61 6c 20 | 68 61 6e 64 6c 69 6e 67 |General |handling|
|00005800| 0a 58 23 0a 58 0a 58 23 | 20 49 6e 69 74 69 61 6c |.X#.X.X#| Initial|
|00005810| 69 7a 65 20 63 6f 6e 74 | 65 78 74 20 66 72 6f 6d |ize cont|ext from|
|00005820| 20 63 6f 6e 74 65 78 74 | 20 66 69 6c 65 0a 58 73 | context| file.Xs|
|00005830| 75 62 20 69 6e 69 74 20 | 7b 0a 58 09 26 64 65 66 |ub init |{.X.&def|
|00005840| 61 75 6c 74 3b 09 09 09 | 09 09 09 23 20 4c 6f 61 |ault;...|...# Loa|
|00005850| 64 20 61 20 64 65 66 61 | 75 6c 74 20 63 6f 6e 74 |d a defa|ult cont|
|00005860| 65 78 74 0a 58 09 72 65 | 74 75 72 6e 20 75 6e 6c |ext.X.re|turn unl|
|00005870| 65 73 73 20 2d 66 20 24 | 63 66 27 63 6f 6e 74 65 |ess -f $|cf'conte|
|00005880| 78 74 3b 09 23 20 46 69 | 6e 69 73 68 65 64 20 69 |xt;.# Fi|nished i|
|00005890| 66 20 6e 6f 20 73 61 76 | 65 64 20 63 6f 6e 74 65 |f no sav|ed conte|
|000058a0| 78 74 0a 58 09 26 6c 6f | 61 64 3b 09 09 09 09 09 |xt.X.&lo|ad;.....|
|000058b0| 09 09 23 20 4c 6f 61 64 | 20 63 6f 6e 74 65 78 74 |..# Load| context|
|000058c0| 2c 20 6f 76 65 72 77 72 | 69 74 69 6e 67 20 64 65 |, overwr|iting de|
|000058d0| 66 61 75 6c 74 20 63 6f | 6e 74 65 78 74 0a 58 09 |fault co|ntext.X.|
|000058e0| 26 63 6c 65 61 6e 3b 09 | 09 09 09 09 09 09 23 20 |&clean;.|......# |
|000058f0| 52 65 6d 6f 76 65 20 75 | 6e 65 65 64 65 64 20 65 |Remove u|needed e|
|00005900| 6e 74 72 69 65 73 20 66 | 72 6f 6d 20 63 6f 6e 74 |ntries f|rom cont|
|00005910| 65 78 74 0a 58 7d 0a 58 | 0a 58 23 20 50 72 6f 76 |ext.X}.X|.X# Prov|
|00005920| 69 64 65 20 61 20 64 65 | 66 61 75 6c 74 20 63 6f |ide a de|fault co|
|00005930| 6e 74 65 78 74 0a 58 73 | 75 62 20 64 65 66 61 75 |ntext.Xs|ub defau|
|00005940| 6c 74 20 7b 0a 58 09 25 | 43 6f 6e 74 65 78 74 20 |lt {.X.%|Context |
|00005950| 3d 20 28 0a 58 09 09 27 | 6c 61 73 74 2d 63 6c 65 |= (.X..'|last-cle|
|00005960| 61 6e 27 2c 20 27 30 27 | 2c 09 09 09 23 20 4c 61 |an', '0'|,...# La|
|00005970| 73 74 20 63 6c 65 61 6e | 69 6e 67 20 6f 66 20 68 |st clean|ing of h|
|00005980| 61 73 68 20 66 69 6c 65 | 73 0a 58 09 29 3b 0a 58 |ash file|s.X.);.X|
|00005990| 7d 0a 58 0a 58 23 20 4c | 6f 61 64 20 74 68 65 20 |}.X.X# L|oad the |
|000059a0| 63 6f 6e 74 65 78 74 20 | 65 6e 74 72 69 65 73 0a |context |entries.|
|000059b0| 58 73 75 62 20 6c 6f 61 | 64 20 7b 0a 58 09 75 6e |Xsub loa|d {.X.un|
|000059c0| 6c 65 73 73 28 6f 70 65 | 6e 28 43 4f 4e 54 45 58 |less(ope|n(CONTEX|
|000059d0| 54 2c 20 22 24 63 66 27 | 63 6f 6e 74 65 78 74 22 |T, "$cf'|context"|
|000059e0| 29 29 20 7b 0a 58 09 09 | 26 27 61 64 64 5f 6c 6f |)) {.X..|&'add_lo|
|000059f0| 67 28 22 57 41 52 4e 49 | 4e 47 20 75 6e 61 62 6c |g("WARNI|NG unabl|
|00005a00| 65 20 74 6f 20 6f 70 65 | 6e 20 63 6f 6e 74 65 78 |e to ope|n contex|
|00005a10| 74 20 66 69 6c 65 3a 20 | 24 21 22 29 20 69 66 20 |t file: |$!") if |
|00005a20| 24 27 6c 6f 67 6c 76 6c | 20 3e 20 35 3b 0a 58 09 |$'loglvl| > 5;.X.|
|00005a30| 09 72 65 74 75 72 6e 3b | 0a 58 09 7d 0a 58 09 26 |.return;|.X.}.X.&|
|00005a40| 27 61 64 64 5f 6c 6f 67 | 28 22 6c 6f 61 64 69 6e |'add_log|("loadin|
|00005a50| 67 20 6d 61 69 6c 61 67 | 65 6e 74 20 63 6f 6e 74 |g mailag|ent cont|
|00005a60| 65 78 74 22 29 20 69 66 | 20 24 27 6c 6f 67 6c 76 |ext") if| $'loglv|
|00005a70| 6c 20 3e 20 31 35 3b 0a | 58 09 6c 6f 63 61 6c 28 |l > 15;.|X.local(|
|00005a80| 24 5f 2c 20 24 2e 29 3b | 0a 58 09 77 68 69 6c 65 |$_, $.);|.X.while|
|00005a90| 20 28 3c 43 4f 4e 54 45 | 58 54 3e 29 20 7b 0a 58 | (<CONTE|XT>) {.X|
|00005aa0| 09 09 6e 65 78 74 20 69 | 66 20 2f 5e 5c 73 2a 23 |..next i|f /^\s*#|
|00005ab0| 2f 3b 0a 58 09 09 69 66 | 20 28 2f 5e 28 5b 5c 77 |/;.X..if| (/^([\w|
|00005ac0| 5c 2d 5d 2b 29 5c 73 2a | 3a 5c 73 2a 28 5c 53 2b |\-]+)\s*|:\s*(\S+|
|00005ad0| 29 2f 29 20 7b 0a 58 09 | 09 09 24 43 6f 6e 74 65 |)/) {.X.|..$Conte|
|00005ae0| 78 74 7b 24 31 7d 20 3d | 20 24 32 3b 0a 58 09 09 |xt{$1} =| $2;.X..|
|00005af0| 09 6e 65 78 74 3b 0a 58 | 09 09 7d 0a 58 09 09 26 |.next;.X|..}.X..&|
|00005b00| 27 61 64 64 5f 6c 6f 67 | 28 22 57 41 52 4e 49 4e |'add_log|("WARNIN|
|00005b10| 47 20 63 6f 6e 74 65 78 | 74 20 66 69 6c 65 20 63 |G contex|t file c|
|00005b20| 6f 72 72 75 70 74 65 64 | 2c 20 6c 69 6e 65 20 24 |orrupted|, line $|
|00005b30| 2e 22 29 20 69 66 20 24 | 27 6c 6f 67 6c 76 6c 20 |.") if $|'loglvl |
|00005b40| 3e 20 35 3b 0a 58 09 09 | 6c 61 73 74 3b 0a 58 09 |> 5;.X..|last;.X.|
|00005b50| 7d 0a 58 09 63 6c 6f 73 | 65 20 43 4f 4e 54 45 58 |}.X.clos|e CONTEX|
|00005b60| 54 3b 0a 58 7d 0a 58 0a | 58 23 20 43 6c 65 61 6e |T;.X}.X.|X# Clean|
|00005b70| 20 63 6f 6e 74 65 78 74 | 2c 20 72 65 6d 6f 76 69 | context|, removi|
|00005b80| 6e 67 20 75 73 65 6c 65 | 73 73 20 65 6e 74 72 69 |ng usele|ss entri|
|00005b90| 65 73 0a 58 73 75 62 20 | 63 6c 65 61 6e 20 7b 0a |es.Xsub |clean {.|
|00005ba0| 58 09 64 65 6c 65 74 65 | 20 24 43 6f 6e 74 65 78 |X.delete| $Contex|
|00005bb0| 74 7b 27 6c 61 73 74 2d | 63 6c 65 61 6e 27 7d 20 |t{'last-|clean'} |
|00005bc0| 75 6e 6c 65 73 73 20 24 | 63 66 27 61 75 74 6f 63 |unless $|cf'autoc|
|00005bd0| 6c 65 61 6e 20 3d 7e 20 | 2f 5e 6f 6e 2f 69 3b 0a |lean =~ |/^on/i;.|
|00005be0| 58 7d 0a 58 0a 58 23 20 | 53 61 76 65 20 61 20 6e |X}.X.X# |Save a n|
|00005bf0| 65 77 20 63 6f 6e 74 65 | 78 74 20 66 69 6c 65 0a |ew conte|xt file.|
|00005c00| 58 73 75 62 20 73 61 76 | 65 20 7b 0a 58 09 72 65 |Xsub sav|e {.X.re|
|00005c10| 71 75 69 72 65 20 27 63 | 74 69 6d 65 2e 70 6c 27 |quire 'c|time.pl'|
|00005c20| 3b 0a 58 09 6c 6f 63 61 | 6c 28 24 65 78 69 73 74 |;.X.loca|l($exist|
|00005c30| 65 64 29 20 3d 20 2d 66 | 20 24 63 66 27 63 6f 6e |ed) = -f| $cf'con|
|00005c40| 74 65 78 74 3b 0a 58 09 | 26 27 61 63 73 5f 72 71 |text;.X.|&'acs_rq|
|00005c50| 73 74 28 24 63 66 27 63 | 6f 6e 74 65 78 74 29 20 |st($cf'c|ontext) |
|00005c60| 69 66 20 24 65 78 69 73 | 74 65 64 3b 09 23 20 4c |if $exis|ted;.# L|
|00005c70| 6f 63 6b 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ock exis|ting fil|
|00005c80| 65 0a 58 09 75 6e 6c 65 | 73 73 20 28 6f 70 65 6e |e.X.unle|ss (open|
|00005c90| 28 43 4f 4e 54 45 58 54 | 2c 20 22 3e 24 63 66 27 |(CONTEXT|, ">$cf'|
|00005ca0| 63 6f 6e 74 65 78 74 22 | 29 29 20 7b 0a 58 09 09 |context"|)) {.X..|
|00005cb0| 26 27 61 64 64 5f 6c 6f | 67 28 22 45 52 52 4f 52 |&'add_lo|g("ERROR|
|00005cc0| 20 63 61 6e 6e 6f 74 20 | 6f 76 65 72 77 72 69 74 | cannot |overwrit|
|00005cd0| 65 20 63 6f 6e 74 65 78 | 74 20 66 69 6c 65 3a 20 |e contex|t file: |
|00005ce0| 24 21 22 29 20 69 66 20 | 24 27 6c 6f 67 6c 76 6c |$!") if |$'loglvl|
|00005cf0| 20 3e 20 31 3b 0a 58 09 | 09 72 65 74 75 72 6e 3b | > 1;.X.|.return;|
|00005d00| 0a 58 09 7d 0a 58 09 26 | 27 61 64 64 5f 6c 6f 67 |.X.}.X.&|'add_log|
|00005d10| 28 22 73 61 76 69 6e 67 | 20 63 6f 6e 74 65 78 74 |("saving| context|
|00005d20| 20 66 69 6c 65 20 24 63 | 66 27 63 6f 6e 74 65 78 | file $c|f'contex|
|00005d30| 74 22 29 20 69 66 20 24 | 27 6c 6f 67 6c 76 6c 20 |t") if $|'loglvl |
|00005d40| 3e 20 31 37 3b 0a 58 09 | 6c 6f 63 61 6c 28 24 6b |> 17;.X.|local($k|
|00005d50| 65 79 2c 20 24 76 61 6c | 75 65 2c 20 24 69 74 65 |ey, $val|ue, $ite|
|00005d60| 6d 29 3b 0a 58 09 70 72 | 69 6e 74 20 43 4f 4e 54 |m);.X.pr|int CONT|
|00005d70| 45 58 54 20 22 23 20 4d | 61 69 6c 61 67 65 6e 74 |EXT "# M|ailagent|
|00005d80| 20 63 6f 6e 74 65 78 74 | 2c 20 6c 61 73 74 20 75 | context|, last u|
|00005d90| 70 64 61 74 65 64 20 22 | 20 2e 20 26 27 63 74 69 |pdated "| . &'cti|
|00005da0| 6d 65 28 74 69 6d 65 29 | 3b 0a 58 09 77 68 69 6c |me(time)|;.X.whil|
|00005db0| 65 20 28 28 24 6b 65 79 | 2c 20 24 76 61 6c 75 65 |e (($key|, $value|
|00005dc0| 29 20 3d 20 65 61 63 68 | 20 25 43 6f 6e 74 65 78 |) = each| %Contex|
|00005dd0| 74 29 20 7b 0a 58 09 09 | 6e 65 78 74 20 75 6e 6c |t) {.X..|next unl|
|00005de0| 65 73 73 20 24 76 61 6c | 75 65 3b 0a 58 09 09 24 |ess $val|ue;.X..$|
|00005df0| 69 74 65 6d 2b 2b 3b 0a | 58 09 09 70 72 69 6e 74 |item++;.|X..print|
|00005e00| 20 43 4f 4e 54 45 58 54 | 20 24 6b 65 79 2c 20 27 | CONTEXT| $key, '|
|00005e10| 3a 20 27 2c 20 24 76 61 | 6c 75 65 2c 20 22 5c 6e |: ', $va|lue, "\n|
|00005e20| 22 3b 0a 58 09 7d 0a 58 | 09 63 6c 6f 73 65 20 43 |";.X.}.X|.close C|
|00005e30| 4f 4e 54 45 58 54 3b 0a | 58 09 75 6e 6c 69 6e 6b |ONTEXT;.|X.unlink|
|00005e40| 20 22 24 63 66 27 63 6f | 6e 74 65 78 74 22 20 75 | "$cf'co|ntext" u|
|00005e50| 6e 6c 65 73 73 20 24 69 | 74 65 6d 3b 09 09 23 20 |nless $i|tem;..# |
|00005e60| 44 6f 20 6e 6f 74 20 6c | 65 61 76 65 20 65 6d 70 |Do not l|eave emp|
|00005e70| 74 79 20 63 6f 6e 74 65 | 78 74 0a 58 09 26 27 61 |ty conte|xt.X.&'a|
|00005e80| 64 64 5f 6c 6f 67 28 22 | 64 65 6c 65 74 65 64 20 |dd_log("|deleted |
|00005e90| 65 6d 70 74 79 20 63 6f | 6e 74 65 78 74 22 29 20 |empty co|ntext") |
|00005ea0| 69 66 20 24 27 6c 6f 67 | 6c 76 6c 20 3e 20 31 37 |if $'log|lvl > 17|
|00005eb0| 20 26 26 20 21 24 69 74 | 65 6d 3b 0a 58 09 26 27 | && !$it|em;.X.&'|
|00005ec0| 66 72 65 65 5f 66 69 6c | 65 28 24 63 66 27 63 6f |free_fil|e($cf'co|
|00005ed0| 6e 74 65 78 74 29 20 69 | 66 20 24 65 78 69 73 74 |ntext) i|f $exist|
|00005ee0| 65 64 3b 0a 58 7d 0a 58 | 0a 58 23 0a 58 23 20 43 |ed;.X}.X|.X#.X# C|
|00005ef0| 6f 6e 74 65 78 74 2d 64 | 65 70 65 6e 64 61 6e 74 |ontext-d|ependant|
|00005f00| 20 61 63 74 69 6f 6e 73 | 0a 58 23 0a 58 0a 58 23 | actions|.X#.X.X#|
|00005f10| 20 52 65 6d 6f 76 65 20 | 65 6e 74 72 69 65 73 20 | Remove |entries |
|00005f20| 69 6e 20 64 62 72 20 68 | 61 73 68 20 66 69 6c 65 |in dbr h|ash file|
|00005f30| 73 20 77 68 69 63 68 20 | 61 72 65 20 6f 6c 64 20 |s which |are old |
|00005f40| 65 6e 6f 75 67 68 2e 20 | 46 6f 72 20 74 68 69 73 |enough. |For this|
|00005f50| 20 6f 70 65 72 61 74 69 | 6f 6e 0a 58 23 20 74 6f | operati|on.X# to|
|00005f60| 20 62 65 20 70 65 72 66 | 6f 72 6d 65 64 2c 20 74 | be perf|ormed, t|
|00005f70| 68 65 20 61 75 74 6f 63 | 6c 65 61 6e 20 76 61 72 |he autoc|lean var|
|00005f80| 69 61 62 6c 65 20 6d 75 | 73 74 20 62 65 20 73 65 |iable mu|st be se|
|00005f90| 74 20 74 6f 20 4f 4e 20 | 69 6e 20 7e 2f 2e 6d 61 |t to ON |in ~/.ma|
|00005fa0| 69 6c 61 67 65 6e 74 2c | 0a 58 23 20 74 68 65 20 |ilagent,|.X# the |
|00005fb0| 63 6c 65 61 6e 6c 61 70 | 73 20 69 6e 64 69 63 61 |cleanlap|s indica|
|00005fc0| 74 65 73 20 74 68 65 20 | 70 65 72 69 6f 64 20 66 |tes the |period f|
|00005fd0| 6f 72 20 74 68 6f 73 65 | 20 61 75 74 6f 6d 61 74 |or those| automat|
|00005fe0| 69 63 20 63 6c 65 61 6e | 69 6e 67 73 2c 20 61 6e |ic clean|ings, an|
|00005ff0| 64 20 61 67 65 6d 61 78 | 0a 58 23 20 73 70 65 63 |d agemax|.X# spec|
|00006000| 69 66 69 65 73 20 74 68 | 65 20 6d 61 78 69 6d 75 |ifies th|e maximu|
|00006010| 6d 20 61 6c 6c 6f 77 65 | 64 20 74 69 6d 65 20 77 |m allowe|d time w|
|00006020| 69 74 68 69 6e 20 74 68 | 65 20 64 61 74 61 62 61 |ithin th|e databa|
|00006030| 73 65 2e 0a 58 73 75 62 | 20 61 75 74 6f 63 6c 65 |se..Xsub| autocle|
|00006040| 61 6e 20 7b 0a 58 09 72 | 65 74 75 72 6e 20 75 6e |an {.X.r|eturn un|
|00006050| 6c 65 73 73 20 24 63 66 | 27 61 75 74 6f 63 6c 65 |less $cf|'autocle|
|00006060| 61 6e 20 3d 7e 20 2f 5e | 6f 6e 2f 69 3b 0a 58 09 |an =~ /^|on/i;.X.|
|00006070| 6c 6f 63 61 6c 28 24 70 | 65 72 69 6f 64 29 20 3d |local($p|eriod) =|
|00006080| 20 26 27 73 65 63 6f 6e | 64 73 5f 69 6e 5f 70 65 | &'secon|ds_in_pe|
|00006090| 72 69 6f 64 28 24 63 66 | 27 63 6c 65 61 6e 6c 61 |riod($cf|'cleanla|
|000060a0| 70 73 29 3b 0a 58 09 72 | 65 74 75 72 6e 20 69 66 |ps);.X.r|eturn if|
|000060b0| 20 28 24 43 6f 6e 74 65 | 78 74 7b 27 6c 61 73 74 | ($Conte|xt{'last|
|000060c0| 2d 63 6c 65 61 6e 27 7d | 20 2b 20 24 70 65 72 69 |-clean'}| + $peri|
|000060d0| 6f 64 29 20 3e 20 74 69 | 6d 65 3b 0a 58 09 23 20 |od) > ti|me;.X.# |
|000060e0| 52 65 74 72 79 20 74 69 | 6d 65 20 72 65 61 63 68 |Retry ti|me reach|
|000060f0| 65 64 20 2d 2d 20 73 74 | 61 72 74 20 61 75 74 6f |ed -- st|art auto|
|00006100| 20 63 6c 65 61 6e 69 6e | 67 0a 58 09 26 27 61 64 | cleanin|g.X.&'ad|
|00006110| 64 5f 6c 6f 67 28 22 61 | 75 74 6f 63 6c 65 61 6e |d_log("a|utoclean|
|00006120| 69 6e 67 20 6f 66 20 64 | 62 72 20 66 69 6c 65 73 |ing of d|br files|
|00006130| 22 29 20 69 66 20 24 27 | 6c 6f 67 6c 76 6c 20 3e |") if $'|loglvl >|
|00006140| 20 38 3b 0a 58 09 24 70 | 65 72 69 6f 64 20 3d 20 | 8;.X.$p|eriod = |
|00006150| 26 27 73 65 63 6f 6e 64 | 73 5f 69 6e 5f 70 65 72 |&'second|s_in_per|
|00006160| 69 6f 64 28 24 63 66 27 | 61 67 65 6d 61 78 29 3b |iod($cf'|agemax);|
|00006170| 0a 58 09 26 64 62 72 27 | 63 6c 65 61 6e 28 24 70 |.X.&dbr'|clean($p|
|00006180| 65 72 69 6f 64 29 3b 0a | 58 09 24 43 6f 6e 74 65 |eriod);.|X.$Conte|
|00006190| 78 74 7b 27 6c 61 73 74 | 2d 63 6c 65 61 6e 27 7d |xt{'last|-clean'}|
|000061a0| 20 3d 20 74 69 6d 65 3b | 09 09 09 23 20 55 70 64 | = time;|...# Upd|
|000061b0| 61 74 65 20 6c 61 73 74 | 20 63 6c 65 61 6e 69 6e |ate last| cleanin|
|000061c0| 67 20 74 69 6d 65 0a 58 | 7d 0a 58 0a 58 23 0a 58 |g time.X|}.X.X#.X|
|000061d0| 23 20 50 65 72 66 6f 72 | 6d 20 61 6c 6c 20 63 6f |# Perfor|m all co|
|000061e0| 6e 74 65 78 74 75 61 6c | 20 61 63 74 69 6f 6e 73 |ntextual| actions|
|000061f0| 0a 58 23 0a 58 0a 58 23 | 20 52 75 6e 20 61 6c 6c |.X#.X.X#| Run all|
|00006200| 20 74 68 65 20 63 6f 6e | 74 65 78 74 75 61 6c 20 | the con|textual |
|00006210| 61 63 74 69 6f 6e 73 2c | 20 65 61 63 68 20 61 63 |actions,| each ac|
|00006220| 74 69 6f 6e 20 72 65 74 | 75 72 6e 69 6e 67 20 69 |tion ret|urning i|
|00006230| 66 20 6e 6f 74 20 6e 65 | 65 64 65 64 20 6f 72 20 |f not ne|eded or |
|00006240| 69 66 0a 58 23 20 74 68 | 65 20 72 65 74 72 79 20 |if.X# th|e retry |
|00006250| 74 69 6d 65 20 77 61 73 | 20 6e 6f 74 20 72 65 61 |time was| not rea|
|00006260| 63 68 65 64 2e 20 54 68 | 69 73 20 72 6f 75 74 69 |ched. Th|is routi|
|00006270| 6e 65 20 69 73 20 74 68 | 65 20 6d 61 69 6e 20 65 |ne is th|e main e|
|00006280| 6e 74 72 79 20 70 6f 69 | 6e 74 20 69 6e 0a 58 23 |ntry poi|nt in.X#|
|00006290| 20 74 68 65 20 70 61 63 | 6b 61 67 65 2c 20 61 6e | the pac|kage, an|
|000062a0| 64 20 69 73 20 74 68 65 | 20 6f 6e 6c 79 20 6f 6e |d is the| only on|
|000062b0| 65 20 63 61 6c 6c 65 64 | 20 66 72 6f 6d 20 74 68 |e called| from th|
|000062c0| 65 20 6f 75 74 73 69 64 | 65 20 77 6f 72 6c 64 2e |e outsid|e world.|
|000062d0| 0a 58 73 75 62 20 6d 61 | 69 6e 27 63 6f 6e 74 65 |.Xsub ma|in'conte|
|000062e0| 78 74 75 61 6c 5f 6f 70 | 65 72 61 74 69 6f 6e 73 |xtual_op|erations|
|000062f0| 20 7b 0a 58 09 26 69 6e | 69 74 3b 09 09 09 09 09 | {.X.&in|it;.....|
|00006300| 23 20 49 6e 69 74 69 61 | 6c 69 7a 65 20 63 6f 6e |# Initia|lize con|
|00006310| 74 65 78 74 0a 58 09 26 | 61 75 74 6f 63 6c 65 61 |text.X.&|autoclea|
|00006320| 6e 3b 09 09 09 09 23 20 | 43 6c 65 61 6e 20 64 62 |n;....# |Clean db|
|00006330| 72 20 68 61 73 68 20 66 | 69 6c 65 73 0a 58 09 26 |r hash f|iles.X.&|
|00006340| 73 61 76 65 3b 09 09 09 | 09 09 23 20 53 61 76 65 |save;...|..# Save|
|00006350| 20 6e 65 77 20 63 6f 6e | 74 65 78 74 0a 58 7d 0a | new con|text.X}.|
|00006360| 58 0a 58 70 61 63 6b 61 | 67 65 20 6d 61 69 6e 3b |X.Xpacka|ge main;|
|00006370| 0a 58 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 20 |.X.END_O|F_FILE. |
|00006380| 20 69 66 20 74 65 73 74 | 20 33 33 36 33 20 2d 6e | if test| 3363 -n|
|00006390| 65 20 60 77 63 20 2d 63 | 20 3c 27 61 67 65 6e 74 |e `wc -c| <'agent|
|000063a0| 2f 70 6c 2f 63 6f 6e 74 | 65 78 74 2e 70 6c 27 60 |/pl/cont|ext.pl'`|
|000063b0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|000063c0| 73 68 61 72 3a 20 5c 22 | 27 61 67 65 6e 74 2f 70 |shar: \"|'agent/p|
|000063d0| 6c 2f 63 6f 6e 74 65 78 | 74 2e 70 6c 27 5c 22 20 |l/contex|t.pl'\" |
|000063e0| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|000063f0| 6f 6e 67 20 73 69 7a 65 | 21 0a 20 20 66 69 0a 20 |ong size|!. fi. |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.