diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..85a7832 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +# Fake Makefile For mailfmt +# $Id: Makefile,v 1.1 2002/10/09 19:19:19 tundra Exp $ + +all: # Do nothing - this is a python script that needs no build + +install: + install -c -o root -g wheel -m 755 ./mailfmt ${PREFIX}/bin + mkdir ${PREFIX}/share/doc/mailfmt + install -c -o root -g wheel -m 644 ./mailfmt.1.gz ${PREFIX}/man/man1 + install -c -o root -g wheel -m 644 ./mailfmt-license.txt ${PREFIX}/share/doc/mailfmt diff --git a/mailfmt-license.txt b/mailfmt-license.txt new file mode 100644 index 0000000..429767f --- /dev/null +++ b/mailfmt-license.txt @@ -0,0 +1,80 @@ +$Id: mailfmt-license.txt,v 1.1 2002/10/09 19:19:19 tundra Exp $ + +In order to use, study, modify, or copy 'mailfmt', you must read and +agree to all the licensing terms below. If you do not agree with or +do not understand *ANYTHING* you see in this document, you are NOT +granted a license to use, study, modify, or copy 'mailfmt'. By using, +studying, modifying, or copying 'mailfmt', you are agreeing to all the +terms of the 'mailfmt' LICENSE below in their entirety. + + + 'mailfmt' LICENSE AGREEMENT + =========================== + +1) DEFINITIONS + +Throughout this Agreement the term 'mailfmt' is used to mean: + +Anything included in the 'mailfmt' software distribution package from +TundraWare Inc. This includes scripts, programs, documentation, license +text and all other files provided in that original software +distribution package. + +Throughout this Agreement the term "User" is used to mean +any person who is enagaged in any of the following activities: + + - Uses any files found in the 'mailfmt' software distribution in any way. + - Reads the 'mailfmt' documentation. + - Studies the 'mailfmt' program source code or supporting files. + - Makes use of any part of the 'mailfmt' software distribution for any + purpose. + - Duplicates and/or distributes the 'mailfmt' software distribution. + +2) OWNERSHIP + +'mailfmt' Is Copyright (c) 2002 TundraWare Inc., All Rights Reserved. + + +3) TERMS + +Permission is hereby granted to the User for the duplication and use +of 'mailfmt' so long as ALL the following conditions are met: + + 1) The User of 'mailfmt' understands and agrees that this is EXPERIMENTAL + SOFTWARE which is provided "AS-IS" with no warranties expressed + or implied by TundraWare Inc. + + 2) The User acknowledges 'mailfmt' has NOT been tested for: + + a) Correct operation + b) Freedom from unintended consequences + c) Any operation or condition which might cause damage, + compromise, or disruption to the User's or other: + hardware, software, networks, or data, or which might + cause any breach of system security of such systems, + software, and networks. + + 3) By using 'mailfmt' in any way, the User does so at their own risk and + agrees to hold TundraWare Inc. harmless for any damage, + direct or indirect, that this software may or does cause to + the User's computational environment, including, but not + limited to, the User's or others' hardware, software, network, + or data. THE USER FURTHER AGREES TO HOLD TUNDRAWARE + INC. HARMLESS FOR ANY ECONOMIC DAMAGE OR ANY OTHER ADVERSE + CONSEQUENCE, DIRECT OR INDIRECT, CAUSED BY THE USE OF 'mailfmt'. + + 4) If duplicated and/or distributed, no fee beyond reasonable + duplication charges may be charged for 'mailfmt'. No commercial + use of 'mailfmt' which involves any remuneration beyond these + duplication charges is permitted. + + 5) Any distributed copies of 'mailfmt' must include all the originally + provided software, documentation, and licensing information in + their original distribution format and packaging without any + modifications. + +By using any part or all of 'mailfmt', you are agreeing to be bound by +this license. + +IF YOU DO NOT UNDERSTAND, OR CANNOT ABIDE BY ANY OF THESE CONDITIONS, +DO NOT USE 'mailfmt'. diff --git a/mailfmt.1 b/mailfmt.1 new file mode 100644 index 0000000..c8f20dc --- /dev/null +++ b/mailfmt.1 @@ -0,0 +1,93 @@ +.TH mailfmt 1 TundraWare +.SH NAME +mailfmt \- Reformat mail/news to wrap lines and remove quotation characters +.SH SYNOPSIS +mailfmt [-ahiorv] [-c char] [-w num] +.SH DESCRIPTION +\'mailfmt\' is a Unix and Win32 tool for reformatting news and mail +messages. It removes leading quotations strings (most often the \'>\' +character, but this is user selectable from the command line) and +wraps lines to a user specified width. This allows news or mail +messages which have been extensively forwarded and/or quoted to +be easily reformatted for ease of reading. + +On Unix systems, \'mailfmt\' reads from stdin and writes to +stdout. + +On Win32 systems, \'mailfmt\' reads from the clipboard and +then writes the results to the clipboard. This is really +handly if your are running a GUI mail client. You cut +the desired text (thereby placing it on the clipboard). Then +you run \'mailfmt\' - this is best done with a keyboard +shortcut. Finally, you paste back to your mail client and, +voila!, your text has been reformatted. + +The input and output can be reassigned to stdin and stdout +respectively, on a Win32 system, using the -i and -o options. + +Normally, errors on a Win32 system will appear as GUI Message +Boxes. If, however, you choose to output to stdout via the +-o option, all errors will be written there instead. + + +.SH OPTIONS +.TP +.B -a +Do not remove leading quotation characters. (Default: Remove +leading quotation characters.) + +.TP +.B -c character +Change the quotation character to \'char\'. (Default: \'>\') + +.TP +.B -h +Display help information. + +.TP +.B -i +Get input from stdin. On Unix systems, this is the only possible +option for input and need not be specified. However, on Win32 +systems, input to defaults to the clipboard. This option overrides +that default allowing Win32 systems to read from stdin. + +.TP +.B -o +Send output to stdout. On Unix systems, this is the only possible +option for output and need not be specified. However, on Win32 +systems, output defaults to the clipboard. This option overrides +that default allowing Win32 systems to write to stdout. + + +.TP +.B -r +Do not wrap lines to specified width. (Default: Wrap lines) + +.TP +.B -v +Display detailed version information. + +.TP +.B -w val +Set line wrapping width to \'val\'. (Default: 75) + + +.SH OTHER +You must have a reasonably current copy of 'python' installed for \'mailfmt\' +to operate. + +.SH BUGS AND MISFEATURES +None known as of this release. This is not beautiful code. It is very +hackish in places. + +.SH COPYRIGHT AND LICENSING +mailfmt is Copyright(c) 2002 TundraWare Inc. For terms of use, see +the mailfmt-License.txt file in the program distribution. If you +install mailfmt on a FreeBSD system using the 'ports' mechanism, you +will also find this file in /usr/local/share/doc/mailfmt. + +.SH AUTHOR +.nf +Tim Daneliuk +tundra@tundraware.com + diff --git a/mkmailfmt b/mkmailfmt new file mode 100755 index 0000000..afca58e --- /dev/null +++ b/mkmailfmt @@ -0,0 +1,26 @@ +#!/bin/sh +# $Id: mkmailfmt,v 1.1 2002/10/09 19:15:56 tundra Exp $ + +RFILES="mailfmt" +FILES="Makefile mailfmt.1 mailfmt-license.txt" + +DIR="mailfmt-"$1 + +if [ $# -ne 1 ] + then + echo "usage: mkmailfmt version-number" + exit +fi + +mkdir $DIR +co -r$1 $RFILES +co $FILES +gzip *.1 +mv $RFILES $FILES $DIR +mv *.gz $DIR +rlog mailfmt >$DIR/CHANGELOG.mailfmt +tar -czvf $DIR.tar.gz $DIR +rm -rf $DIR +mv $DIR.tar.gz Releases + +