Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

v98i001: uucp2smtp [0.37] - SMTP sender for UUCP spool mail jobs, Part 01/01

7 views
Skip to first unread message

Ignatios Souvatzis

unread,
Jul 1, 1998, 3:00:00 AM7/1/98
to

Submitted-by: igna...@cs.uni-bonn.de (Ignatios Souvatzis)
Posting-number: Volume 98, Issue 01
Archive-name: comm/uucp2smtp-0.37/part01

[Moderator's note: The following is from the uucp2smtp.Readme file. ...zim]

Short: SMTP sender for UUCP spool mail jobs -- needs amitcp inet-handler
Type: comm/tcp
Author: Ignatios Souvatzis <i...@jocelyn.rhein.de>

This is a REXX program to send away via SMTP mail jobs found in the
UUCP spool area for a certain mail gateway named in the configuration
section.

It will allow you to use the UUCP spooling mechanism with your Internet
mail, or send mail away while IP is running, if you operate mixed UUCP
and IP (as I did in my youth).

It was developed and tested by me with OS2.04, later OS3.1, and
AmiTCP3.0b2; one of my betatesters had AmiTCP 2.x I think, and didn't
complain. The current version was tested with AmiTCP 4.0.

REQUIREMENTS:

- REXX and rexxsupport.library (don't know whether pre-OS2.04 versions
will do)

- AmiTCP with inet-handler mounted.

- wUUCP 0.0.29. Older version should do it as well. Don't know about
other UUCP packages.

INSTALLATION

Edit the file with your favourite text editor:

In the configuration variables section near the top:

- Change the host variable in the script to your mail gateway.
- If you want lots of debugging output, set debug to 1

- if you want to limit the used bandwidth, set "limitband" to 1 and
set "bufsize" to the amount of bytes to send per second.

KNOWN PROBLEMS

currently none.

HISTORY

0.37 Tue Jun 30 16:29:11 MET DST 1998

- make it 7bit-clean for posting in source newsgroups.

0.36 Thu Jun 25 12:04:22 MET DST 1998

- mega debugging session with bjo...@baer.mayn.de. CRLF conversion is working
now.

- change bandwidth limitation to default off, and configurable.

0.35 very olde version.

---- Cut Here and unpack ----
#!/bin/sh
# This is a shell archive (shar 3.24)
# made 07/01/1998 08:01 UTC by ignatios@theory
# Source directory /home/theory/ignatios/uucp2smtp
#
# existing files WILL be overwritten
#
# This shar contains:
# length mode name
# ------ ---------- ------------------------------------------
# 1591 -rw-r--r-- uucp2smtp.Readme
# 477 -rw-r--r-- uucp2smtp.Readme.info
# 7789 -rw-r--r-- uucp2smtp
# 430 -rw-r--r-- uucp2smtp.info
# 17986 -rw-r--r-- COPYING
# 477 -rw-r--r-- COPYING.info
#
if touch 2>&1 | fgrep '[-amc]' > /dev/null
then TOUCH=touch
else TOUCH=true
fi
# ============= uucp2smtp.Readme ==============
echo "x - extracting uucp2smtp.Readme (Text)"
sed 's/^X//' << 'SHAR_EOF' > uucp2smtp.Readme &&
XShort: SMTP sender for UUCP spool mail jobs -- needs amitcp inet-handler
XType: comm/tcp
XAuthor: Ignatios Souvatzis <i...@jocelyn.rhein.de>
X
XThis is a REXX program to send away via SMTP mail jobs found in the
XUUCP spool area for a certain mail gateway named in the configuration
Xsection.
X
XIt will allow you to use the UUCP spooling mechanism with your Internet
Xmail, or send mail away while IP is running, if you operate mixed UUCP
Xand IP (as I did in my youth).
X
XIt was developed and tested by me with OS2.04, later OS3.1, and
XAmiTCP3.0b2; one of my betatesters had AmiTCP 2.x I think, and didn't
Xcomplain. The current version was tested with AmiTCP 4.0.
X
XREQUIREMENTS:
X
X- REXX and rexxsupport.library (don't know whether pre-OS2.04 versions
Xwill do)
X
X- AmiTCP with inet-handler mounted.
X
X- wUUCP 0.0.29. Older version should do it as well. Don't know about
Xother UUCP packages.
X
XINSTALLATION
X
XEdit the file with your favourite text editor:
X
XIn the configuration variables section near the top:
X
X- Change the host variable in the script to your mail gateway.
X- If you want lots of debugging output, set debug to 1
X
X- if you want to limit the used bandwidth, set "limitband" to 1 and
Xset "bufsize" to the amount of bytes to send per second.
X
XKNOWN PROBLEMS
X
Xcurrently none.
X
XHISTORY
X
X0.37 Tue Jun 30 16:29:11 MET DST 1998
X
X- make it 7bit-clean for posting in source newsgroups.
X
X0.36 Thu Jun 25 12:04:22 MET DST 1998
X
X- mega debugging session with bjo...@baer.mayn.de. CRLF conversion is working
X now.
X
X- change bandwidth limitation to default off, and configurable.
X
X0.35 very olde version.
SHAR_EOF
$TOUCH -am 0630163698 uucp2smtp.Readme &&
chmod 0644 uucp2smtp.Readme ||
echo "restore of uucp2smtp.Readme failed"
set `wc -c uucp2smtp.Readme`;Wc_c=$1
if test "$Wc_c" != "1591"; then
echo original size 1591, current size $Wc_c
fi
# ============= uucp2smtp.Readme.info ==============
echo "x - extracting uucp2smtp.Readme.info (Binary)"
sed 's/^X//' << 'SHAR_EOF' | uudecode &&
Xbegin 600 uucp2smtp.Readme.info
XMXQ```0```````````#8`%P`%``$``0>;#V@`````````````````````````
XM````!``'G*A<!YB3!(````"``````````````````!`````````V`!8``@`"
XM\!`#``````````````0``````````0``````````0``````````0````````
XM``@```#@````#````?`````,```#N`````P```<<````#```#@X````,```<
XM!P````P``#__@'_P#```'_^````,``````!^``P`````````#``````?__P,
XM``````````P`````'__`#`!````````,`!````````P`!```````#``!____
XM___\`/______^```U5555556``#55555556``-____]556``T````5554`#0
XM`,`!5550`-`!X`%555``T`,P`5554`#0!A@!?_]0`-`,#`%__U``T!@&`7__
XM4`#0/_\!``]0`-````%__U``T````0'_4`#?____?_]0`-555>```U``U555
XM____4`#5557@`#]0`#555?___U``#555____4``#55555550````````````
X;````$W-Y<SI5=&EL:71I97,O36]R90`````$
X`
Xend
SHAR_EOF
$TOUCH -am 0701095198 uucp2smtp.Readme.info &&
chmod 0644 uucp2smtp.Readme.info ||
echo "restore of uucp2smtp.Readme.info failed"
set `wc -c uucp2smtp.Readme.info`;Wc_c=$1
if test "$Wc_c" != "477"; then
echo original size 477, current size $Wc_c
fi
# ============= uucp2smtp ==============
echo "x - extracting uucp2smtp (Text)"
sed 's/^X//' << 'SHAR_EOF' > uucp2smtp &&
X/*rx script to send away UUCP spooled mail jobs via SMTP,
X * using AmiTCPs inet-handler (mounted on TCP:).
X ************************************************************
X * Copyright (c) 1994,1998 Ignatios Souvatzis, i...@jocelyn.rhein.de
X * Distribution and use under the terms of the
X * GNU General Public License -- no warranty. See file COPYING
X * for details.
X ************************************************************
X */
X
X/**** configuration variables ****/
X
X/* change below to the name of your mail gateway. Must be named
X exactly as your UUCP spool directory, if you use uuspool:hostname as
X spool directory, else you must spool in uuspool: */
X
Xhost = "mailhost.no.where"
X
Xdebug = 0 /* for lot of mostly useless output */
Xlimitband = 0 /* set to 1 for bandwidth limitation */
Xbufsize = 8192 /* set to 1024 for 1 kBytes/s limitation, and limitband to 1.
X set to at least twice the MTU of the path to your
X mail server for best performance. */
X
X
X/**** don't change below this line ****/
Xcopyright = x2c('a9')
X
Xif host = "mailhost.no.where" then do
X say 'UUCP2SMTP: Configure the "host" variable before using!'
X say copyright||' 1994,1998 Ignatios Souvatzis (i...@jocelyn.rhein.de)'
X say 'See file COPYING for conditions of usage.'
X exit 5
Xend
X
Xif ~ open(thehostname,'env:host','r') then do
X if ~ open(thehostname,'env:hostname','r') then do
X say 'cannot find hostname in environment, sorry'
X exit 10
X end
Xend
Xmyhostname = readln(thehostname)
Xclose(thehostname)
X
Xif ~ open(thedomainname,'env:domain','r') then do
X if ~ open(thedomainname,'env:domainname','r') then do
X say 'cannot find domainname in environment, sorry'
X exit 10
X end
Xend
Xmydomain = readln(thedomainname)
Xclose(thedomainname)
X
Xif debug then say 'Myhostname is' myhostname'; mydomain is' mydomain
X
Xstopstr = x2c('2e0d0a')
X
X
Xlf = x2c('0a')
Xcr = x2c('0d')
Xcrlf = cr||lf
Xmyid = 'Received: by '||myhostname||mydomain||' (uucp2smtp 0.37 (i...@jocelyn.rhein.de))'||cr
X
Xif ~ show('L',"rexxsupport.library") then do
X if ~ addlib("rexxsupport.library",0,-30,0) then do
X say "can't open rexxsupport.library"
X exit 25
X end
Xend
X
Xpragma('D','uuspool:'||host)
X
Xfiles = showdir('uuspool:'||host,'file')
Xif files == '' then do
X say 'No jobs in spool area of' host', trying uuspool:'
X pragma('D','uuspool:')
X files = showdir('uuspool:','file')
X if files == '' then do
X say 'No jobs found at all. Exiting.'
X exit 5
X end
Xend
Xif ~ open(socket,'tcp:'||host'/smtp','w') then do
X say 'Can''t get TCP connection to' host 'port smtp'
X exit 20
Xend
X
Xrc = getanswer()
Xwriteln(socket,'HELO '||myhostname||cr)
Xrc = getanswer()
X
X/*****/
X
Xdo while word(files,1) ~= ''
X cmdsname = word(files,1)
X files = delword(files,1,1)
X if left(cmdsname,2) = 'C.' then do
X open(cmds,cmdsname,'R')
X parse value readln(cmds) with dcmd dwhat dwhere dwho dhaeh ddelete dmode
X parse value readln(cmds) with xcmd xwhat xwhere xwho xhaeh xdelete xmode
X close(cmds)
X if (left(dwhere,2) = 'X.')&(left(xwhere,2) = 'D.') then do
X blubb=dcmd;dcmd= xcmd; xcmd=blubb
X blubb=dwhat; xcmd= xwhat; xwhat=blubb
X blubb=dwhere; xwhat= xwhere; xwhere=blubb
X blubb=dwho; xwhere= xwho; xwho=blubb
X blubb=dhaeh; xwho= xhaeh; xhaeh=blubb
X blubb=ddelete; xhaeh= xdelete; xdelete=blubb
X blubb=dmode; xdelete= xmode; xmode=blubb
X end
X
X if (dcmd ~= 'S' | xcmd ~= 'S' | left(dwhere,2) ~= 'D.' | left(xwhere,2) ~= 'X.') then do
X say "I don't understand commandsfile" cmdsname
X end
X else do
X open(xec,xwhat,'r')
X do while ~ eof(xec)
X parse value readln(xec) with rcmd rwhat rwhere
X rcmd = compress(rcmd)
X rwhat = compress(rwhat)
X job.rcmd.a = rwhat
X job.rcmd.b = rwhere
X end
X close(xec)
X if job.C.a = 'rmail' then do
X if debug then say 'rmail job found from' job.U.a'@'compress(job.U.b)||mydomain
X writeln(socket,'MAIL FROM: <'||job.U.a||'@'||compress(job.U.b)||mydomain||'>'||cr)
X rc = getanswer()
X do while word(job.C.b,1) ~= ''
X parse value word(job.C.b,1) with job.where'!'job.who
X if (job.who = '') then do
X job.who = job.where
X job.where = ''
X end
X else do
X job.where = '@'||job.where
X end
X job.C.b = delword(job.C.b,1,1)
X if debug then say '...to' job.who||job.where
X writeln(socket,'RCPT TO: <'||job.who||job.where||'>'||cr)
X rc = getanswer()
X end
X
X writeln(socket,'DATA'||cr)
X rc = getanswer()
X open(thedata,dwhat)
X theline = readln(thedata)
X if left(theline,5) ~= 'From ' then do
X if left(theline,1) = '.' then do
X writeln(socket,'.'||theline||cr)
X end
X else
X do
X writeln(socket,theline||cr)
X end
X end
X writeln(socket,myid)
X lastwaslf = 1 /* Am Anfang sind wir logisch am Zeilenanfang */
X lastwascr = 1
X do while ~ eof(thedata)
X thelines = readch(thedata,bufsize)
X if debug then say 'read' length(thelines) 'bytes.'
X if lastwaslf & left(thelines,1) = '.' then thelines=insert('.',thelines,1)
X thepos = index(thelines,lf)
X do while thepos > 0
X if (~lastwascr | (thepos > 1) & (substr(thelines,thepos-1,1) ~= cr)) then do
X thelines = insert(cr,thelines,thepos-1)
X thepos = thepos + 1
X end
X if substr(thelines,thepos+1,1) = '.' then
X thelines = insert('.',thepos+1)
X thepos = index(thelines,lf,thepos+1)
X end
X if right(thelines,1) = lf
X then lastwaslf = 1
X else lastwaslf = 0
X if right(thelines,1) = cr
X then lastwascr = 1
X else lastwascr = 0
X
X writech(socket,thelines)
X if debug then writech(stdout,'.')
X if limitband then address command "wait 1"
X end
X if lastwaslf
X then do
X writech(socket, stopstr)
X end
X else
X do
X writech(socket, crlf||stopstr)
X end
X rc = getanswer()
X /* delete xwhat,dwhat,cmdsname */
X close(thedata)
X if (rc < 300) then address command 'delete '||cmdsname||' '||xwhat||' '||dwhat||' quiet'
X end
X drop job
X end
X end
Xend
X
Xwriteln(socket,'QUIT'||cr)
Xrc = getanswer()
Xexit 0
X
Xgetanswer: procedure expose socket debug answer
X if debug then say '?'
X do forever
X answer = readln(socket)
X if debug then say answer
X if substr(answer,4,1) ~= '-' then break
X end
X rc = left(answer,3)
X if rc > 399 then do
X say 'fatal error from' host
X writeln(socket,'QUIT'||cr) /* at least try */
X exit 20
X end
Xreturn(rc)
X
SHAR_EOF
$TOUCH -am 0630162898 uucp2smtp &&
chmod 0644 uucp2smtp ||
echo "restore of uucp2smtp failed"
set `wc -c uucp2smtp`;Wc_c=$1
if test "$Wc_c" != "7789"; then
echo original size 7789, current size $Wc_c
fi
# ============= uucp2smtp.info ==============
echo "x - extracting uucp2smtp.info (Binary)"
sed 's/^X//' << 'SHAR_EOF' | uudecode &&
Xbegin 600 uucp2smtp.info
XMXQ```0```````````!D`)0`$``,``0>;EN``````````````````````````
XM````!``'G12,!YU^_(````"``````````````````!`````````9`"0``@`"
XM\:@#``````````"`````@````(`(2$"`"$A`@`A(0(`(2$"`"$A`@`A(0(`+
XMR\"`````@````(`!``"``@``@`0``(`/_^"`!`$`@`(`@(`!`$"`#__@@```
XM0(```("```$`@````(`?SX"``@A`@`((0(`""$"``@N`@`((`(`""`"`'L@`
XM@````(````"`````@'___X#___\`@````(````"`````A"0@`(0D(`"$)"``
XMA"0@`(0D(`"$)"``A^?@`(````"`````@````(````"`````@````(````"`
XM````@````(````"`````@````(````"`````C>>``($$(`"!!"``@01@`($'
XM@`"!!```@00``(_D``"`````@````(`````````#<G@`````"````!THJ2`Q
X9.3DT($EG;F%T:6]S(%-O=79A='II<RXI````
X`
Xend
SHAR_EOF
$TOUCH -am 0909101894 uucp2smtp.info &&
chmod 0644 uucp2smtp.info ||
echo "restore of uucp2smtp.info failed"
set `wc -c uucp2smtp.info`;Wc_c=$1
if test "$Wc_c" != "430"; then
echo original size 430, current size $Wc_c
fi
# ============= COPYING ==============
echo "x - extracting COPYING (Text)"
sed 's/^X//' << 'SHAR_EOF' > COPYING &&
X GNU GENERAL PUBLIC LICENSE
X Version 2, June 1991
X
X Copyright (C) 1989, 1991 Free Software Foundation, Inc.
X 675 Mass Ave, Cambridge, MA 02139, USA
X Everyone is permitted to copy and distribute verbatim copies
X of this license document, but changing it is not allowed.
X
X Preamble
X
X The licenses for most software are designed to take away your
Xfreedom to share and change it. By contrast, the GNU General Public
XLicense is intended to guarantee your freedom to share and change free
Xsoftware--to make sure the software is free for all its users. This
XGeneral Public License applies to most of the Free Software
XFoundation's software and to any other program whose authors commit to
Xusing it. (Some other Free Software Foundation software is covered by
Xthe GNU Library General Public License instead.) You can apply it to
Xyour programs, too.
X
X When we speak of free software, we are referring to freedom, not
Xprice. Our General Public Licenses are designed to make sure that you
Xhave the freedom to distribute copies of free software (and charge for
Xthis service if you wish), that you receive source code or can get it
Xif you want it, that you can change the software or use pieces of it
Xin new free programs; and that you know you can do these things.
X
X To protect your rights, we need to make restrictions that forbid
Xanyone to deny you these rights or to ask you to surrender the rights.
XThese restrictions translate to certain responsibilities for you if you
Xdistribute copies of the software, or if you modify it.
X
X For example, if you distribute copies of such a program, whether
Xgratis or for a fee, you must give the recipients all the rights that
Xyou have. You must make sure that they, too, receive or can get the
Xsource code. And you must show them these terms so they know their
Xrights.
X
X We protect your rights with two steps: (1) copyright the software, and
X(2) offer you this license which gives you legal permission to copy,
Xdistribute and/or modify the software.
X
X Also, for each author's protection and ours, we want to make certain
Xthat everyone understands that there is no warranty for this free
Xsoftware. If the software is modified by someone else and passed on, we
Xwant its recipients to know that what they have is not the original, so
Xthat any problems introduced by others will not reflect on the original
Xauthors' reputations.
X
X Finally, any free program is threatened constantly by software
Xpatents. We wish to avoid the danger that redistributors of a free
Xprogram will individually obtain patent licenses, in effect making the
Xprogram proprietary. To prevent this, we have made it clear that any
Xpatent must be licensed for everyone's free use or not licensed at all.
X
X The precise terms and conditions for copying, distribution and
Xmodification follow.
X
X GNU GENERAL PUBLIC LICENSE
X TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
X
X 0. This License applies to any program or other work which contains
Xa notice placed by the copyright holder saying it may be distributed
Xunder the terms of this General Public License. The "Program", below,
Xrefers to any such program or work, and a "work based on the Program"
Xmeans either the Program or any derivative work under copyright law:
Xthat is to say, a work containing the Program or a portion of it,
Xeither verbatim or with modifications and/or translated into another
Xlanguage. (Hereinafter, translation is included without limitation in
Xthe term "modification".) Each licensee is addressed as "you".
X
XActivities other than copying, distribution and modification are not
Xcovered by this License; they are outside its scope. The act of
Xrunning the Program is not restricted, and the output from the Program
Xis covered only if its contents constitute a work based on the
XProgram (independent of having been made by running the Program).
XWhether that is true depends on what the Program does.
X
X 1. You may copy and distribute verbatim copies of the Program's
Xsource code as you receive it, in any medium, provided that you
Xconspicuously and appropriately publish on each copy an appropriate
Xcopyright notice and disclaimer of warranty; keep intact all the
Xnotices that refer to this License and to the absence of any warranty;
Xand give any other recipients of the Program a copy of this License
Xalong with the Program.
X
XYou may charge a fee for the physical act of transferring a copy, and
Xyou may at your option offer warranty protection in exchange for a fee.
X
X 2. You may modify your copy or copies of the Program or any portion
Xof it, thus forming a work based on the Program, and copy and
Xdistribute such modifications or work under the terms of Section 1
Xabove, provided that you also meet all of these conditions:
X
X a) You must cause the modified files to carry prominent notices
X stating that you changed the files and the date of any change.
X
X b) You must cause any work that you distribute or publish, that in
X whole or in part contains or is derived from the Program or any
X part thereof, to be licensed as a whole at no charge to all third
X parties under the terms of this License.
X
X c) If the modified program normally reads commands interactively
X when run, you must cause it, when started running for such
X interactive use in the most ordinary way, to print or display an
X announcement including an appropriate copyright notice and a
X notice that there is no warranty (or else, saying that you provide
X a warranty) and that users may redistribute the program under
X these conditions, and telling the user how to view a copy of this
X License. (Exception: if the Program itself is interactive but
X does not normally print such an announcement, your work based on
X the Program is not required to print an announcement.)
X
XThese requirements apply to the modified work as a whole. If
Xidentifiable sections of that work are not derived from the Program,
Xand can be reasonably considered independent and separate works in
Xthemselves, then this License, and its terms, do not apply to those
Xsections when you distribute them as separate works. But when you
Xdistribute the same sections as part of a whole which is a work based
Xon the Program, the distribution of the whole must be on the terms of
Xthis License, whose permissions for other licensees extend to the
Xentire whole, and thus to each and every part regardless of who wrote it.
X
XThus, it is not the intent of this section to claim rights or contest
Xyour rights to work written entirely by you; rather, the intent is to
Xexercise the right to control the distribution of derivative or
Xcollective works based on the Program.
X
XIn addition, mere aggregation of another work not based on the Program
Xwith the Program (or with a work based on the Program) on a volume of
Xa storage or distribution medium does not bring the other work under
Xthe scope of this License.
X
X 3. You may copy and distribute the Program (or a work based on it,
Xunder Section 2) in object code or executable form under the terms of
XSections 1 and 2 above provided that you also do one of the following:
X
X a) Accompany it with the complete corresponding machine-readable
X source code, which must be distributed under the terms of Sections
X 1 and 2 above on a medium customarily used for software interchange; or,
X
X b) Accompany it with a written offer, valid for at least three
X years, to give any third party, for a charge no more than your
X cost of physically performing source distribution, a complete
X machine-readable copy of the corresponding source code, to be
X distributed under the terms of Sections 1 and 2 above on a medium
X customarily used for software interchange; or,
X
X c) Accompany it with the information you received as to the offer
X to distribute corresponding source code. (This alternative is
X allowed only for noncommercial distribution and only if you
X received the program in object code or executable form with such
X an offer, in accord with Subsection b above.)
X
XThe source code for a work means the preferred form of the work for
Xmaking modifications to it. For an executable work, complete source
Xcode means all the source code for all modules it contains, plus any
Xassociated interface definition files, plus the scripts used to
Xcontrol compilation and installation of the executable. However, as a
Xspecial exception, the source code distributed need not include
Xanything that is normally distributed (in either source or binary
Xform) with the major components (compiler, kernel, and so on) of the
Xoperating system on which the executable runs, unless that component
Xitself accompanies the executable.
X
XIf distribution of executable or object code is made by offering
Xaccess to copy from a designated place, then offering equivalent
Xaccess to copy the source code from the same place counts as
Xdistribution of the source code, even though third parties are not
Xcompelled to copy the source along with the object code.
X
X 4. You may not copy, modify, sublicense, or distribute the Program
Xexcept as expressly provided under this License. Any attempt
Xotherwise to copy, modify, sublicense or distribute the Program is
Xvoid, and will automatically terminate your rights under this License.
XHowever, parties who have received copies, or rights, from you under
Xthis License will not have their licenses terminated so long as such
Xparties remain in full compliance.
X
X 5. You are not required to accept this License, since you have not
Xsigned it. However, nothing else grants you permission to modify or
Xdistribute the Program or its derivative works. These actions are
Xprohibited by law if you do not accept this License. Therefore, by
Xmodifying or distributing the Program (or any work based on the
XProgram), you indicate your acceptance of this License to do so, and
Xall its terms and conditions for copying, distributing or modifying
Xthe Program or works based on it.
X
X 6. Each time you redistribute the Program (or any work based on the
XProgram), the recipient automatically receives a license from the
Xoriginal licensor to copy, distribute or modify the Program subject to
Xthese terms and conditions. You may not impose any further
Xrestrictions on the recipients' exercise of the rights granted herein.
XYou are not responsible for enforcing compliance by third parties to
Xthis License.
X
X 7. If, as a consequence of a court judgment or allegation of patent
Xinfringement or for any other reason (not limited to patent issues),
Xconditions are imposed on you (whether by court order, agreement or
Xotherwise) that contradict the conditions of this License, they do not
Xexcuse you from the conditions of this License. If you cannot
Xdistribute so as to satisfy simultaneously your obligations under this
XLicense and any other pertinent obligations, then as a consequence you
Xmay not distribute the Program at all. For example, if a patent
Xlicense would not permit royalty-free redistribution of the Program by
Xall those who receive copies directly or indirectly through you, then
Xthe only way you could satisfy both it and this License would be to
Xrefrain entirely from distribution of the Program.
X
XIf any portion of this section is held invalid or unenforceable under
Xany particular circumstance, the balance of the section is intended to
Xapply and the section as a whole is intended to apply in other
Xcircumstances.
X
XIt is not the purpose of this section to induce you to infringe any
Xpatents or other property right claims or to contest validity of any
Xsuch claims; this section has the sole purpose of protecting the
Xintegrity of the free software distribution system, which is
Ximplemented by public license practices. Many people have made
Xgenerous contributions to the wide range of software distributed
Xthrough that system in reliance on consistent application of that
Xsystem; it is up to the author/donor to decide if he or she is willing
Xto distribute software through any other system and a licensee cannot
Ximpose that choice.
X
XThis section is intended to make thoroughly clear what is believed to
Xbe a consequence of the rest of this License.
X
X 8. If the distribution and/or use of the Program is restricted in
Xcertain countries either by patents or by copyrighted interfaces, the
Xoriginal copyright holder who places the Program under this License
Xmay add an explicit geographical distribution limitation excluding
Xthose countries, so that distribution is permitted only in or among
Xcountries not thus excluded. In such case, this License incorporates
Xthe limitation as if written in the body of this License.
X
X 9. The Free Software Foundation may publish revised and/or new versions
Xof the General Public License from time to time. Such new versions will
Xbe similar in spirit to the present version, but may differ in detail to
Xaddress new problems or concerns.
X
XEach version is given a distinguishing version number. If the Program
Xspecifies a version number of this License which applies to it and "any
Xlater version", you have the option of following the terms and conditions
Xeither of that version or of any later version published by the Free
XSoftware Foundation. If the Program does not specify a version number of
Xthis License, you may choose any version ever published by the Free Software
XFoundation.
X
X 10. If you wish to incorporate parts of the Program into other free
Xprograms whose distribution conditions are different, write to the author
Xto ask for permission. For software which is copyrighted by the Free
XSoftware Foundation, write to the Free Software Foundation; we sometimes
Xmake exceptions for this. Our decision will be guided by the two goals
Xof preserving the free status of all derivatives of our free software and
Xof promoting the sharing and reuse of software generally.
X
X NO WARRANTY
X
X 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
XFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
XOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
XPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
XOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
XMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
XTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
XPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
XREPAIR OR CORRECTION.
X
X 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
XWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
XREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
XINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
XOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
XTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
XYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
XPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
XPOSSIBILITY OF SUCH DAMAGES.
X
X END OF TERMS AND CONDITIONS
X
X Appendix: How to Apply These Terms to Your New Programs
X
X If you develop a new program, and you want it to be of the greatest
Xpossible use to the public, the best way to achieve this is to make it
Xfree software which everyone can redistribute and change under these terms.
X
X To do so, attach the following notices to the program. It is safest
Xto attach them to the start of each source file to most effectively
Xconvey the exclusion of warranty; and each file should have at least
Xthe "copyright" line and a pointer to where the full notice is found.
X
X <one line to give the program's name and a brief idea of what it does.>
X Copyright (C) 19yy <name of author>
X
X This program is free software; you can redistribute it and/or modify
X it under the terms of the GNU General Public License as published by
X the Free Software Foundation; either version 2 of the License, or
X (at your option) any later version.
X
X This program is distributed in the hope that it will be useful,
X but WITHOUT ANY WARRANTY; without even the implied warranty of
X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
X GNU General Public License for more details.
X
X You should have received a copy of the GNU General Public License
X along with this program; if not, write to the Free Software
X Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
X
XAlso add information on how to contact you by electronic and paper mail.
X
XIf the program is interactive, make it output a short notice like this
Xwhen it starts in an interactive mode:
X
X Gnomovision version 69, Copyright (C) 19yy name of author
X Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
X This is free software, and you are welcome to redistribute it
X under certain conditions; type `show c' for details.
X
XThe hypothetical commands `show w' and `show c' should show the appropriate
Xparts of the General Public License. Of course, the commands you use may
Xbe called something other than `show w' and `show c'; they could even be
Xmouse-clicks or menu items--whatever suits your program.
X
XYou should also get your employer (if you work as a programmer) or your
Xschool, if any, to sign a "copyright disclaimer" for the program, if
Xnecessary. Here is a sample; alter the names:
X
X Yoyodyne, Inc., hereby disclaims all copyright interest in the program
X `Gnomovision' (which makes passes at compilers) written by James Hacker.
X
X <signature of Ty Coon>, 1 April 1989
X Ty Coon, President of Vice
X
XThis General Public License does not permit incorporating your program into
Xproprietary programs. If your program is a subroutine library, you may
Xconsider it more useful to permit linking proprietary applications with the
Xlibrary. If this is what you want to do, use the GNU Library General
XPublic License instead of this License.
X
X
X
SHAR_EOF
$TOUCH -am 0909094094 COPYING &&
chmod 0644 COPYING ||
echo "restore of COPYING failed"
set `wc -c COPYING`;Wc_c=$1
if test "$Wc_c" != "17986"; then
echo original size 17986, current size $Wc_c
fi
# ============= COPYING.info ==============
echo "x - extracting COPYING.info (Binary)"
sed 's/^X//' << 'SHAR_EOF' | uudecode &&
Xbegin 600 COPYING.info
XMXQ```0```````````#8`%P`%``$``0>;"$@`````````````````````````
XM````!``'G)],!YT]=(````"``````````````````!`````````V`!8``@`"
XMXA`#``````````````0``````````0``````````0``````````0````````
XM``@```#@````#````?`````,```#N`````P```<<````#```#@X````,```<
XM!P````P``#__@'_P#```'_^````,``````!^``P`````````#``````?__P,
XM``````````P`````'__`#`!````````,`!````````P`!```````#``!____
XM___\`/______^```U5555556``#55555556``-____]556``T````5554`#0
XM`,`!5550`-`!X`%555``T`,P`5554`#0!A@!?_]0`-`,#`%__U``T!@&`7__
XM4`#0/_\!``]0`-````%__U``T````0'_4`#?____?_]0`-555>```U``U555
XM____4`#5557@`#]0`#555?___U``#555____4``#55555550````````````
X;````$W-Y<SI5=&EL:71I97,O36]R90`````$
X`
Xend
SHAR_EOF
$TOUCH -am 0909101794 COPYING.info &&
chmod 0644 COPYING.info ||
echo "restore of COPYING.info failed"
set `wc -c COPYING.info`;Wc_c=$1
if test "$Wc_c" != "477"; then
echo original size 477, current size $Wc_c
fi
exit 0
--
Bill Zimmer - z...@ibx.com
Moderator, comp.binaries/sources.amiga

0 new messages