2004-06-12 14:27:56 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-12 14:27:56 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2014-12-28 01:14:11 +08:00
|
|
|
<!-- upstream is apparently still using CVS at sourceforge,
|
|
|
|
but not making tarballs. fedora have a script using CVS, but
|
|
|
|
debian keep a tarball -->
|
2023-08-25 04:14:05 +08:00
|
|
|
<!ENTITY mailx-download-http "&sources-anduin-http;/mailx/heirloom-mailx_&mailx-version;.orig.tar.gz">
|
2017-11-05 06:29:15 +08:00
|
|
|
<!ENTITY mailx-download-ftp " ">
|
2014-12-28 01:14:11 +08:00
|
|
|
<!ENTITY mailx-md5sum "29a6033ef1412824d02eb9d9213cb1f2">
|
|
|
|
<!ENTITY mailx-size "317 KB">
|
|
|
|
<!ENTITY mailx-buildsize "3.2 MB">
|
2006-04-01 06:52:00 +08:00
|
|
|
<!ENTITY mailx-time "less than 0.1 SBU">
|
2004-06-12 14:27:56 +08:00
|
|
|
]>
|
|
|
|
|
2012-04-18 13:18:11 +08:00
|
|
|
<sect1 id="mailx" xreflabel="mailx-&mailx-version;">
|
2006-04-01 06:52:00 +08:00
|
|
|
<?dbhtml filename="mailx.html"?>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
|
|
|
|
2012-04-18 13:18:11 +08:00
|
|
|
<title>mailx-&mailx-version;</title>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2006-04-01 06:52:00 +08:00
|
|
|
<indexterm zone="mailx">
|
|
|
|
<primary sortas="a-Heirloom-mailx">Heirloom mailx</primary>
|
2005-04-29 05:01:22 +08:00
|
|
|
</indexterm>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
<sect2 role="package">
|
2006-04-01 06:52:00 +08:00
|
|
|
<title>Introduction to Heirloom mailx</title>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
|
|
|
The <application>Heirloom mailx</application> package (formerly
|
|
|
|
known as the <application>Nail</application> package) contains
|
|
|
|
<command>mailx</command>, a command-line Mail User Agent derived from
|
|
|
|
Berkeley Mail. It is intended to provide the functionality of the POSIX
|
|
|
|
<command>mailx</command> command with additional support for MIME
|
|
|
|
messages, IMAP (including caching), POP3, SMTP, S/MIME, message
|
|
|
|
threading/sorting, scoring, and filtering. <application>Heirloom
|
|
|
|
mailx</application> is especially useful for writing scripts and batch
|
|
|
|
processing.
|
|
|
|
</para>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2023-08-21 06:12:55 +08:00
|
|
|
&lfs120_checked;
|
2010-08-07 23:22:02 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem>
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&mailx-download-http;"/>
|
|
|
|
</para>
|
2005-04-29 05:01:22 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&mailx-download-ftp;"/>
|
|
|
|
</para>
|
2005-04-29 05:01:22 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &mailx-md5sum;
|
|
|
|
</para>
|
2005-04-29 05:01:22 +08:00
|
|
|
</listitem>
|
2020-03-24 05:46:15 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &mailx-size;
|
|
|
|
</para>
|
2005-04-29 05:01:22 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &mailx-buildsize;
|
|
|
|
</para>
|
2005-04-29 05:01:22 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &mailx-time;
|
|
|
|
</para>
|
2005-04-29 05:01:22 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2010-11-18 09:06:14 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem>
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
|
|
|
Required patch: <ulink
|
|
|
|
url="&patch-root;/heirloom-mailx-&mailx-version;-fixes-1.patch"/>
|
2014-12-28 01:14:11 +08:00
|
|
|
</para>
|
2010-11-18 09:06:14 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2006-04-01 06:52:00 +08:00
|
|
|
<bridgehead renderas="sect3">Heirloom mailx Dependencies</bridgehead>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2018-12-05 10:26:37 +08:00
|
|
|
<para role="optional">
|
|
|
|
<!-- <xref linkend="openssl10"/> or -->
|
|
|
|
<xref linkend="nss"/>,
|
|
|
|
<xref linkend="mitkrb"/> (for IMAP GSSAPI authentication), and an
|
|
|
|
<xref linkend="server-mail"/>
|
|
|
|
</para>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
</sect2>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
<sect2 role="installation">
|
2006-04-01 06:52:00 +08:00
|
|
|
<title>Installation of Heirloom mailx</title>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2014-12-28 01:14:11 +08:00
|
|
|
<!-- see r12697 for explanation, and still used by fedora even though it often
|
|
|
|
does work with a parallel make -->
|
2014-02-14 01:04:48 +08:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
This package does not support parallel build.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
|
|
|
Install <application>Heirloom mailx</application> by running the
|
|
|
|
following commands.
|
|
|
|
</para>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2014-12-28 01:14:11 +08:00
|
|
|
<screen><userinput>patch -Np1 -i ../heirloom-mailx-&mailx-version;-fixes-1.patch &&
|
2017-08-31 10:14:49 +08:00
|
|
|
|
2017-06-04 06:32:28 +08:00
|
|
|
sed 's@<openssl@<openssl-1.0/openssl@' \
|
2017-08-31 10:14:49 +08:00
|
|
|
-i openssl.c fio.c makeconfig &&
|
|
|
|
|
2022-02-24 14:30:10 +08:00
|
|
|
make -j1 LDFLAGS+="-L /usr/lib/openssl/" \
|
|
|
|
SENDMAIL=/usr/sbin/sendmail</userinput></screen>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
2005-07-18 22:29:31 +08:00
|
|
|
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class='username'>root</systemitem> user:
|
|
|
|
</para>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2006-04-01 06:52:00 +08:00
|
|
|
<screen role='root'><userinput>make PREFIX=/usr UCBINSTALL=/usr/bin/install install &&
|
2017-08-31 10:14:49 +08:00
|
|
|
|
2006-04-01 06:52:00 +08:00
|
|
|
ln -v -sf mailx /usr/bin/mail &&
|
|
|
|
ln -v -sf mailx /usr/bin/nail &&
|
2017-08-31 10:14:49 +08:00
|
|
|
|
|
|
|
install -v -m755 -d /usr/share/doc/heirloom-mailx-&mailx-version; &&
|
2014-12-28 01:14:11 +08:00
|
|
|
install -v -m644 README /usr/share/doc/heirloom-mailx-&mailx-version;</userinput></screen>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
</sect2>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
<sect2 role="commands">
|
2005-05-01 17:37:53 +08:00
|
|
|
<title>Command Explanations</title>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
|
|
|
<command>make SENDMAIL=/usr/sbin/sendmail</command>: This changes the
|
|
|
|
default MTA path of <command>/usr/lib/sendmail</command>.
|
|
|
|
</para>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
|
|
|
<command>make PREFIX=/usr UCBINSTALL=/usr/bin/install
|
|
|
|
install</command>: This changes the default installation path of
|
|
|
|
<filename class='directory'>/usr/local</filename> and the default
|
|
|
|
<command>install</command> command path of
|
|
|
|
<filename class='directory'>/usr/ucb</filename>.
|
|
|
|
</para>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
</sect2>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
<sect2 role="configuration">
|
2006-04-01 06:52:00 +08:00
|
|
|
<title>Configuring Heirloom mailx</title>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2006-04-01 06:52:00 +08:00
|
|
|
<sect3 id="mailx-config">
|
2005-05-01 17:37:53 +08:00
|
|
|
<title>Config Files</title>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
2022-11-27 00:25:30 +08:00
|
|
|
<!-- ~/.nailrc seems not to be supported anymore
|
2020-03-24 05:46:15 +08:00
|
|
|
<filename>/etc/nail.rc</filename>, <filename>~/.mailrc</filename>
|
|
|
|
and <filename>~/.nailrc</filename>
|
2022-11-27 00:25:30 +08:00
|
|
|
-->
|
|
|
|
<filename>/etc/nail.rc</filename> and <filename>~/.mailrc</filename>
|
2020-03-24 05:46:15 +08:00
|
|
|
</para>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2006-04-01 06:52:00 +08:00
|
|
|
<indexterm zone="mailx mailx-config">
|
2005-04-29 05:01:22 +08:00
|
|
|
<primary sortas="e-etc-nail.rc">/etc/nail.rc</primary>
|
|
|
|
</indexterm>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2006-04-01 06:52:00 +08:00
|
|
|
<indexterm zone="mailx mailx-config">
|
2005-04-29 05:01:22 +08:00
|
|
|
<primary sortas="e-AA.mailrc">~/.mailrc</primary>
|
|
|
|
</indexterm>
|
2022-11-27 00:25:30 +08:00
|
|
|
<!--
|
2006-04-01 06:52:00 +08:00
|
|
|
<indexterm zone="mailx mailx-config">
|
2005-04-29 05:01:22 +08:00
|
|
|
<primary sortas="e-AA.nailrc">~/.nailrc</primary>
|
|
|
|
</indexterm>
|
2022-11-27 00:25:30 +08:00
|
|
|
-->
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
For displaying mails, <application>mailx</application>
|
|
|
|
uses a pager program. Since the default of <command>pg</command>
|
|
|
|
is not available on a LFS system, its required to
|
|
|
|
specify which pager is to use. By default, there is
|
|
|
|
<command>more</command> and the more comfortable
|
|
|
|
<command>less</command> installed. If the
|
|
|
|
variable PAGER is not set in <filename>/etc/profile</filename>
|
|
|
|
or <filename>~/.bash_profile</filename>, or if it
|
|
|
|
should be another pager just for reading mails, it can be
|
|
|
|
set system wide in <filename>/etc/nail.rc</filename>:
|
|
|
|
</para>
|
|
|
|
|
2023-01-31 06:59:16 +08:00
|
|
|
<screen role="nodump"><userinput>echo "set PAGER=<replaceable><more|less></replaceable>" >> /etc/nail.rc</userinput></screen>
|
2022-11-27 00:25:30 +08:00
|
|
|
|
|
|
|
<para>or individually for the actual user in <filename>~/.mailrc</filename>:</para>
|
|
|
|
|
2023-01-31 06:59:16 +08:00
|
|
|
<screen role="nodump"><userinput>echo "set PAGER=<replaceable><more|less></replaceable>" >> ~/.mailrc</userinput></screen>
|
2022-11-27 00:25:30 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
Other interesting options to set in the config files might
|
2023-01-29 20:51:59 +08:00
|
|
|
be EDITOR and MAILDIR.
|
2022-11-27 00:25:30 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
If not set in the environment for other packages, the
|
|
|
|
default editor can be set by:
|
|
|
|
</para>
|
|
|
|
|
2023-01-31 06:59:16 +08:00
|
|
|
<screen role="nodump"><userinput>echo "set EDITOR=<replaceable><vim|nano|...></replaceable>" >> /etc/nail.rc</userinput></screen>
|
2022-11-27 00:25:30 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
Depending on which kind of <xref linkend="server-mail"/> is
|
|
|
|
installed, it might be required to set the MAILDIR variable
|
|
|
|
so <application>mailx</application> is able to find the mails:
|
|
|
|
</para>
|
|
|
|
|
2023-01-31 06:59:16 +08:00
|
|
|
<screen role="nodump"><userinput>echo "set MAILDIR=Maildir" >> /etc/nail.rc</userinput></screen>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
</sect3>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
</sect2>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
<seglistitem>
|
|
|
|
<seg>mail, mailx and nail</seg>
|
|
|
|
<seg>None</seg>
|
|
|
|
<seg>None</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2006-04-01 06:52:00 +08:00
|
|
|
<varlistentry id="mailx-prog">
|
|
|
|
<term><command>mailx</command></term>
|
2005-04-29 05:01:22 +08:00
|
|
|
<listitem>
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
|
|
|
is a command-line mail user agent compatible with the
|
|
|
|
<command>mailx</command> command found on commercial Unix
|
2021-02-19 23:20:16 +08:00
|
|
|
versions
|
2020-03-24 05:46:15 +08:00
|
|
|
</para>
|
2006-04-01 06:52:00 +08:00
|
|
|
<indexterm zone="mailx mailx-prog">
|
|
|
|
<primary sortas="b-mailx">mailx</primary>
|
2005-04-29 05:01:22 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2006-04-01 06:52:00 +08:00
|
|
|
<varlistentry id="mail-mailx">
|
2005-04-29 05:01:22 +08:00
|
|
|
<term><command>mail</command></term>
|
|
|
|
<listitem>
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
is a symbolic link to <command>mailx</command>
|
2020-03-24 05:46:15 +08:00
|
|
|
</para>
|
2006-04-01 06:52:00 +08:00
|
|
|
<indexterm zone="mailx mail-mailx">
|
2012-07-29 05:45:43 +08:00
|
|
|
<primary sortas="b-mail">mail</primary>
|
2005-04-29 05:01:22 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2006-04-01 06:52:00 +08:00
|
|
|
<varlistentry id="nail-mailx">
|
|
|
|
<term><command>nail</command></term>
|
2005-04-29 05:01:22 +08:00
|
|
|
<listitem>
|
2020-03-24 05:46:15 +08:00
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
is a symbolic link to <command>mailx</command>
|
2020-03-24 05:46:15 +08:00
|
|
|
</para>
|
2006-04-01 06:52:00 +08:00
|
|
|
<indexterm zone="mailx nail-mailx">
|
2012-07-29 05:45:43 +08:00
|
|
|
<primary sortas="b-nail">nail</primary>
|
2005-04-29 05:01:22 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2005-04-29 05:01:22 +08:00
|
|
|
</sect2>
|
2005-05-31 00:20:27 +08:00
|
|
|
|
2003-09-21 08:26:59 +08:00
|
|
|
</sect1>
|