rpms/nail/devel nail-11.25-config.patch, NONE, 1.1 nail.html, NONE, 1.1 nail.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Dmitry Butskoy (buc) fedora-extras-commits at redhat.com
Mon Sep 26 10:28:38 UTC 2005


Author: buc

Update of /cvs/extras/rpms/nail/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5623/devel

Modified Files:
	.cvsignore sources 
Added Files:
	nail-11.25-config.patch nail.html nail.spec 
Log Message:
auto-import nail-11.25-3 on branch devel from nail-11.25-3.src.rpm

nail-11.25-config.patch:

--- NEW FILE nail-11.25-config.patch ---
diff -Nrbu nail-11.25/nail.rc nail-11.25-OK/nail.rc
--- nail-11.25/nail.rc	2005-01-15 17:33:16.000000000 +0300
+++ nail-11.25-OK/nail.rc	2005-08-19 16:55:09.000000000 +0400
@@ -60,3 +60,7 @@
 
 # Only include selected header fields when forwarding messages.
 fwdretain subject date from to
+
+# For Linux and BSD, this should be set.
+set bsdcompat
+


--- NEW FILE nail.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>nail, an enhanced mailx command</title>

<link rev="MADE" href="mailto:gunnarr at acm.org">
<meta name="description" content="nail, an enhanced mailx command"><meta name="keywords" content="Linux, Unix, nail, mail, mailx, MIME, IMAP, POP3, SMTP, S/MIME">
<style type="text/css">
<!--
BODY { max-width: 480pt; }
BODY,TD,P { text-align: justify; font-size: 10pt; line-height: 14pt;
	font-family: Verdana,Arial,Helvetica,sans-serif; }
H1 { color: #666666; line-height: 32pt; font-size: 24pt; font-weight: normal;
	text-align: center; }
H2 { color: #666666; line-height: 24pt; font-size: 16pt; font-weight: normal; }
H3 { color: #666666; line-height: 16pt; font-size: 12pt; font-weight: normal; }
HR { width: 100%; height: 1pt; border-width: 0px; background-color: #AAAAAA; }
HL { font-weight: bold; color: #444444 }
ADDRESS { font-style: normal; }
PRE { font-size: 10pt; line-height:14pt; font-family: Courier; }
//-->
</style></head>

<body>
<h1>
nail, an enhanced mailx command
</h1>

<p>
<i>Nail</i> is a mail user agent for Unix systems.
Highlights are:
</p><ul>
<li>
Derived from <hl>Berkeley Mail</hl> 8.1.
An interface like the original Berkeley one
is still optionally available.
</li>
<li>
Is a free implementation of the System V <hl>mailx</hl> command
and features an interface like that by default.
</li>
<li>
Is intended to comply to the <i>mailx</i> command specifications
of IEEE Std 1003.2-1992 (<hl>POSIX.2</hl>)
and
<a href="http://www.opengroup.org/unix/online.html">IEEE Std 1003.1-2004
with XSI extensions (<hl>SUSv3</hl>)</a>.
</li>
<li>
Supports the <hl>MIME</hl> specifications.
<i>Nail</i> can send and receive attachments
and code and decode international character strings.
If the system libraries provide appropriate support,
conversion between different character encodings is performed.
In combination with a UTF-8 terminal,
nearly all international languages are supported.
External converter programs can be automatically invoked
e. g. to view messages in HTML format.
</li>
<li>
Supports <hl>IMAP.</hl>
In combination with either
<a href="http://www.openssl.org/">OpenSSL</a>
or
<a href="http://www.mozilla.org/projects/security/pki/nss/">Mozilla NSS</a>,
<hl>IMAPS</hl> can also be used.
With IMAP,
folder hierarchies
can be stored and managed
on remote servers.
This is particularly useful for people
who use more than one computer
to access their mail.
Of course, it is also possible to use IMAP
just for fetching mails and storing them locally.
</li>
<li>
Supports <hl>caching</hl>
and <hl>disconnected operation</hl> of IMAP folders.
This speeds up operation while in online mode.
It also makes it possible to transparently view and edit IMAP mailboxes
without an active connection to the server.
</li>
<li>
Supports <hl>POP3</hl> to read messages on a remove server.
In combination with <a href="http://www.openssl.org/">OpenSSL</a>
or <a href="http://www.mozilla.org/projects/security/pki/nss/">NSS</a>,
<hl>POP3S</hl> can also be used.
<i>Nail</i> can read and delete individual messages,
thus POP3 accounts can almost be accessed
like local mail folders.
</li>
<li>
Supports <hl>SMTP</hl> to send messages directly to a remote server.
A local <i>sendmail</i> interface setup is thus not necessary.
In combination with <a href="http://www.openssl.org/">OpenSSL</a>
or <a href="http://www.mozilla.org/projects/security/pki/nss/">NSS</a>,
both the <hl>STARTTLS</hl> method and <hl>SMTPS</hl> can be used.
<hl>SMTP AUTH</hl> is also supported.
</li>
<li>
Supports <hl>S/MIME</hl> for signed and encrypted email
(in combination with <a href="http://www.openssl.org/">OpenSSL</a>
or <a href="http://www.mozilla.org/projects/security/pki/nss/">NSS</a>).
</li>
<li>
In combination with
<a href="http://www.mozilla.org/projects/security/pki/nss/">NSS</a>,
certificates for S/MIME and SSL/TLS
can be shared with <hl>Mozilla</hl> applications,
and can be managed using them.
</li>
<li>
Can display <hl>message threads</hl>
and supports operations on them.
This is especially useful for handling mailing lists.
It is also possible to <hl>sort messages</hl>
by various other criteria.
</li>
<li>
Provides a <hl>Bayesian junk mail filter</hl>
mostly according to Paul Graham's article
<a href="http://www.paulgraham.com/better.html">“Better Bayesian Filtering”</a>.
<hl>Chained tokens</hl> according to Jonathan A. Zdziarski's
<a href="http://www.nuclearelephant.com/papers/chained.html">“Advanced Language Classification using Chained Tokens”</a>
can optionally be used.
</li>
<li>
Features a lot of <hl>detail improvements</hl> over <i>Mail/mailx,</i>
such as IMAP-style search methods and flags for any types of folders,
killing and scoring of messages,
<i>maildir</i> folder support,
an option to set the <i>From:</i> address directly,
and the generation of <i>References:</i> header fields
to avoid annoyances on mailing lists.
</li>
<li>
Can be used as a <hl>mail batch language</hl>
in nearly the same way as it is used interactively.
So it is possible to use <i>nail</i>
as a mailbox filter,
for fetching mails,
or for sending files as attachments.
</li>
<li>
Is extensively described in its manual page
<a href="http://nail.sourceforge.net/man/nail.1.html"><i>nail</i></a>(1),
which provides both <hl>introductory material</hl>
and <hl>complete reference documentation.</hl>
</li>
</ul>
<p>
For installation instructions, see the <a href="http://nail.sourceforge.net/README">README</a>.
</p><p>
The <a href="http://nail.sourceforge.net/ChangeLog">ChangeLog</a> keeps track of modifications.
</p><p>
New releases of this project are announced on
<a href="http://freshmeat.net/projects/nail/">freshmeat.net</a>.
You can use their subscription service
to get an email when a new version is available.
</p><p>
<i>Nail</i> development is discussed on the <i>nail-devel</i> mailing list.
All people interested in discussing or coding features for future
releases are invited to participate.
Bug reports should also be sent to the list.
To subscribe to the list or look at the archives,
visit
<<a href="https://lists.sourceforge.net/lists/listinfo/nail-devel">https://lists.sourceforge.net/lists/listinfo/nail-devel</a>>.
If you do not want to subscribe, you can directly mail to the list
using the address
<<a href="mailto:nail-devel at lists.sourceforge.net">nail-devel at lists.sourceforge.net</a>>.
</p><hr>
<h2>Download the source code</h2>
<p>
<a style="text-align: left;" href="http://prdownloads.sourceforge.net/nail/nail-11.25.tar.bz2?download">
Release 11.25 (current)</a>
</p><p>
<a style="text-align: left;" href="http://sourceforge.net/project/showfiles.php?group_id=106237">
All releases</a>
</p><p>
Browse the <a href="http://cvs.sourceforge.net/viewcvs.py/nail/nail/">CVS repository</a>
</p><p>
The most recent results of development
are sometimes made available in the public CVS repository.
Use
</p><pre>$ cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/nail login
CVS password:<just type return>
$ cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/nail co nail
</pre>
to retrieve a copy.
Follow
<a href="http://sourceforge.net/cvs/?group_id=106237">these instructions</a>
for more information.
If you want to report a problem,
please look at the
<a href="http://cvs.sourceforge.net/viewcvs.py/nail/nail/ChangeLog?view=markup">ChangeLog in CVS</a>
to see if it has already been resolved,
and if so, try if the fix works for you.
Do not use the code from CVS
unless you have a special reason to do so.
It may be incorrect, not well tested,
and might not even compile.
<hr>
<h2>mail, Mail, mailx, nail - history notes</h2>
<p>
There has since long been confusion about
the names of mail commands on Unix systems.
Here is some clarification:
</p><p>
The most ancient command is <i>mail</i>,
which was included in Unix 1st Edition in 1971
according to the
<a href="http://cm.bell-labs.com/cm/cs/who/dmr/1stEdman.html">manuals</a>.
At this time,
Unix had no remote communication facility at all,
so <i>mail</i> would simply write to other users' files
on a single machine.
</p><p>
<i>mail</i> has since been updated a bit
in following Unix versions;
it could invoke <i>uux</i> and later <i>sendmail</i>
for sending remote messages
and got at least some interactive commands
for navigating in a mailbox.
A <i>mail</i> command like this
was standardized with the <i>System V Interface Definition (SVID)</i>
and the <i>Single Unix Specification</i> (up to the 1998 edition).
</p><p>
With later versions of System V,
<i>mail</i> still got some more features,
e. g. a facility to print header summaries.
An Open Source version of such a <i>mail</i> command is available
from the
<a href="http://heirloom.sourceforge.net/">Heirloom Project</a>;
see its
<a href="http://heirloom.sourceforge.net/man/mail.1.html">manual page</a>
for an overview of its features.
Yet all derivatives of the original <i>mail</i>
remained somewhat primitive;
since they neither invoke a pager
for viewing messages longer than a CRT screen,
nor offer a method to set <i>Subject</i> lines,
they are not well suited for use with Internet mail.
They are still appropriate to send short messages, though.
</p><p>
What one should learn from this is, however,
that any use of a <i>mail</i> command with the <i>-s</i>
option to set a subject line in a shell script is unportable
and will not work on some Unix implementations.
</p><p>
In 1978,
Kurt Shoens wrote another mail user agent for Unix:
<i>Berkeley Mail</i>.
It was not a derivative of the original <i>mail</i> command.
At the time it was included in the <i>2BSD</i> release
(which still was just an add-on for Unix 6th or 7th Edition systems),
its user interface was already complete
(so if the <i>bsdcompat</i> option is set in <i>nail</i>,
it practically looks and feels the same).
After installation,
<i>Berkeley Mail</i> was found as <i>/usr/ucb/Mail</i>,
but Unix <i>mail</i> was still available as <i>/bin/mail</i>.
</p><p>
Confusion really began
with the <i>3BSD</i> release
(a complete system, not an add-on),
as it also provided a <i>/usr/ucb/mail</i> command
which was just a link to <i>Mail</i>.
So, depending on the <i>PATH</i> setting,
typing <i>mail</i> could either invoke
Unix <i>mail</i> or Berkeley <i>Mail</i>.
This remained the same with all Berkeley releases
up to <i>4.3BSD-Tahoe</i> and derivatives;
in the end,
Unix <i>mail</i> was removed entirely,
but the name remained as a link to <i>Mail</i> in all places.
</p><p>
For System V Release 3,
a derivative of Berkeley <i>Mail</i> was created:
<i>mailx</i>.
It remained mostly compatible with <i>Mail</i>,
but there were some add-ons
and the user interface was slightly changed
(<i>nail</i> uses a similar interface if none of the <i>bsd...</i>
compatibility variables is set).
</p><p>
This System V <i>mailx</i> command
was then also standardized with POSIX.2 in 1992,
including many of the extensions.
</p><p>
Linux distributions made the situation even more confusing.
They could only use the original Berkeley <i>Mail</i>
(System V <i>mailx</i> was closed source until the
<a href="http://www.opensolaris.org/">OpenSolaris</a> release in 2005).
Yet because <i>Mail</i> and <i>mailx</i> were sufficiently similar
for most applications,
it seemed appropriate for many to also feature a <i>mailx</i> command
which was just <i>Mail</i>, thus not sufficient for formal POSIX.2 conformance.
Most distributions also made <i>mail</i> invoke <i>Mail</i>,
since Unix <i>mail</i> was also closed source until January 2002.
</p><p>
To complete the confusion,
some commercial Unix vendors
dropped support for the original <i>mail</i> over the time
and made it invoke <i>mailx</i>.
</p><p>
<i>nail</i> is derived from Berkeley <i>Mail</i>.
It got its name because the <i>m</i> and <i>n</i> keys
are located next to one another on the keyboard,
and the resulting word was easy to remember.
Since version 10,
<i>nail</i> also features independent implementations
of the System V and POSIX <i>mailx</i> additions.
</p><p>
Thus it is appropriate to call <i>nail</i> as <i>mailx</i>.
If it is called as <i>Mail</i>,
a short shell script should be created
which sets the <i>bsdcompat</i> variable
before invoking <i>nail</i>.
<i>mail</i> however is an entirely different command
and should be taken from the
<a href="http://heirloom.sourceforge.net/tools.html">Heirloom Toolchest</a>
if an Open Source version is desired.
</p><p>
Portable scripts should either invoke <i>mail</i> without any options
or should use the standardized <i>mailx</i> interface.
In any case, they should set the <i>MAILRC</i> variable
to <i>/dev/null</i> to bypass the user's configuration.
As this variable is present in <i>mailx</i>, but not in <i>Mail</i>,
using <i>Mail</i> for scripts does not work reliably anyway
and should be avoided.
(In effect, this means that there is no reliable way
to send mail from a script on many <i>BSD</i> derivatives
and Linux distributions.
But that is a fact one has to live with.)
</p><hr>

<p></p><address>Gunnar Ritter
<<a href="mailto:gunnarr at acm.org">gunnarr at acm.org</a>> 2005-07-29
</address>
<p>
<a href="http://omnibus.ruf.uni-freiburg.de/%7Egritter/">
More software by Gunnar Ritter
</a></p><hr>
<a href="http://sourceforge.net/"><img src="nail,%20an%20enhanced%20mailx%20command_files/sflogo.png" alt="SourceForge.net Logo" border="0" height="37" width="125"></a>
</body></html>

--- NEW FILE nail.spec ---
%define	use_nss	0

Summary: Enhanced implementation of the mailx command
Name: nail
Version: 11.25
Release: 3%{?dist}
Group: 	Applications/Internet
License: BSD
URL: http://nail.sourceforge.net
Source0: http://surfnet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
# Note: it is just "lynx -source http://nail.sourceforge.net > nail.html"
Source1: nail.html
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0: nail-11.25-config.patch

%if %{use_nss}
BuildRequires: mozilla-nss-devel, mozilla-nspr-devel, pkgconfig
%else
BuildRequires: krb5-devel, openssl-devel
%endif


%description
Nail is an enhanced mail command, which provides the functionality
of the POSIX mailx command. It is derived from Berkeley Mail.

Additionally to the POSIX features, nail can work with Maildir/ e-mail
storage format (as well as mailboxes), supports IMAP, POP3 and SMTP
procotols (including over SSL) to operate with remote hosts, handles mime
types and different charsets. There are a lot of other useful features,
see %{name}.html in the documentation.

And as its ancient analogues, nail can be used as a mail script language,
both for sending and receiving mail.


%prep
%setup -q
%patch0 -p1

cp %{SOURCE1} %{name}.html


%build
rm -rf $RPM_BUILD_ROOT

%if %{use_nss}
INCLUDES="$INCLUDES `pkg-config --cflags-only-I mozilla-nspr`"
INCLUDES="$INCLUDES `pkg-config --cflags-only-I mozilla-nss`"
export INCLUDES
%endif

echo	PREFIX=%{_prefix} \
	BINDIR=%{_bindir} \
	MANDIR=%{_mandir} \
	SYSCONFDIR=%{_sysconfdir} \
	MAILRC=%{_sysconfdir}/nail.rc \
	MAILSPOOL=%{_localstatedir}/mail \
	SENDMAIL=%{_sbindir}/sendmail \
	UCBINSTALL=install \
> makeflags

make %{?_smp_mflags} `cat makeflags` CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"


%install
make DESTDIR=$RPM_BUILD_ROOT `cat makeflags` install


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%doc COPYING AUTHORS README %{name}.html
%config(noreplace) %{_sysconfdir}/nail.rc
%{_bindir}/nail
%{_mandir}/man1/nail*


%changelog
* Mon Sep 26 2005 Dmitry Butskoy <Dmitry at Butskoy.name> - 11.25-3
- more spec file cleanups
- accepted for Fedora Extra
  (review by Aurelien Bompard <gauret at free.fr>)

* Mon Aug 22 2005 Dmitry Butskoy <Dmitry at Butskoy.name> - 11.25-2
- spec file cleanups (#166343)

* Fri Aug 19 2005 Dmitry Butskoy <Dmitry at Butskoy.name> - 11.25-1
- initial release
- add "set bsdcompat" to nail.rc as default
- copy nail web page to doc



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/nail/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	26 Sep 2005 10:27:40 -0000	1.1
+++ .cvsignore	26 Sep 2005 10:28:36 -0000	1.2
@@ -0,0 +1 @@
+nail-11.25.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/nail/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	26 Sep 2005 10:27:40 -0000	1.1
+++ sources	26 Sep 2005 10:28:36 -0000	1.2
@@ -0,0 +1 @@
+54f42db31911d734fcf37a89b72d4df7  nail-11.25.tar.bz2




More information about the fedora-extras-commits mailing list