source: networking/mailnews/mailx.xml

trunk
Last change on this file was 868811b, checked in by Bruce Dubbs <bdubbs@…>, 2 months ago

Many tags.
genutils
sysutils
netlibs
netprogs
netutils
editors
filesystems
shells

  • Property mode set to 100644
File size: 9.2 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[bfe245f]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[13bc31d]7 <!-- upstream is apparently still using CVS at sourceforge,
8 but not making tarballs. fedora have a script using CVS, but
9 debian keep a tarball -->
[a21aaef4]10 <!ENTITY mailx-download-http "&sources-anduin-http;/mailx/heirloom-mailx_&mailx-version;.orig.tar.gz">
[8044beb]11 <!ENTITY mailx-download-ftp " ">
[13bc31d]12 <!ENTITY mailx-md5sum "29a6033ef1412824d02eb9d9213cb1f2">
13 <!ENTITY mailx-size "317 KB">
14 <!ENTITY mailx-buildsize "3.2 MB">
[058bfd80]15 <!ENTITY mailx-time "less than 0.1 SBU">
[bfe245f]16]>
17
[a027d7d3]18<sect1 id="mailx" xreflabel="mailx-&mailx-version;">
[058bfd80]19 <?dbhtml filename="mailx.html"?>
[e6f1fd6]20
21
[a027d7d3]22 <title>mailx-&mailx-version;</title>
[e6f1fd6]23
[058bfd80]24 <indexterm zone="mailx">
25 <primary sortas="a-Heirloom-mailx">Heirloom mailx</primary>
[24acf2f2]26 </indexterm>
[e6f1fd6]27
[24acf2f2]28 <sect2 role="package">
[058bfd80]29 <title>Introduction to Heirloom mailx</title>
[e6f1fd6]30
[7c56ece]31 <para>
32 The <application>Heirloom mailx</application> package (formerly
33 known as the <application>Nail</application> package) contains
34 <command>mailx</command>, a command-line Mail User Agent derived from
35 Berkeley Mail. It is intended to provide the functionality of the POSIX
36 <command>mailx</command> command with additional support for MIME
37 messages, IMAP (including caching), POP3, SMTP, S/MIME, message
38 threading/sorting, scoring, and filtering. <application>Heirloom
39 mailx</application> is especially useful for writing scripts and batch
40 processing.
41 </para>
[e6f1fd6]42
[868811b]43 &lfs121_checked;
[5f04edc]44
[24acf2f2]45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing='compact'>
47 <listitem>
[7c56ece]48 <para>
49 Download (HTTP): <ulink url="&mailx-download-http;"/>
50 </para>
[24acf2f2]51 </listitem>
52 <listitem>
[7c56ece]53 <para>
54 Download (FTP): <ulink url="&mailx-download-ftp;"/>
55 </para>
[24acf2f2]56 </listitem>
57 <listitem>
[7c56ece]58 <para>
59 Download MD5 sum: &mailx-md5sum;
60 </para>
[24acf2f2]61 </listitem>
[7c56ece]62 <listitem>
63 <para>
64 Download size: &mailx-size;
65 </para>
[24acf2f2]66 </listitem>
67 <listitem>
[7c56ece]68 <para>
69 Estimated disk space required: &mailx-buildsize;
70 </para>
[24acf2f2]71 </listitem>
72 <listitem>
[7c56ece]73 <para>
74 Estimated build time: &mailx-time;
75 </para>
[24acf2f2]76 </listitem>
77 </itemizedlist>
[e6f1fd6]78
[a1813d08]79 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
80 <itemizedlist spacing='compact'>
81 <listitem>
[7c56ece]82 <para>
83 Required patch: <ulink
84 url="&patch-root;/heirloom-mailx-&mailx-version;-fixes-1.patch"/>
[13bc31d]85 </para>
[a1813d08]86 </listitem>
87 </itemizedlist>
88
[058bfd80]89 <bridgehead renderas="sect3">Heirloom mailx Dependencies</bridgehead>
[e6f1fd6]90
[24acf2f2]91 <bridgehead renderas="sect4">Optional</bridgehead>
[eff6c3a8]92 <para role="optional">
93 <!-- <xref linkend="openssl10"/> or -->
94 <xref linkend="nss"/>,
95 <xref linkend="mitkrb"/> (for IMAP GSSAPI authentication), and an
96 <xref linkend="server-mail"/>
97 </para>
[e6f1fd6]98
[24acf2f2]99 </sect2>
[e6f1fd6]100
[24acf2f2]101 <sect2 role="installation">
[058bfd80]102 <title>Installation of Heirloom mailx</title>
[e6f1fd6]103
[13bc31d]104 <!-- see r12697 for explanation, and still used by fedora even though it often
105 does work with a parallel make -->
[2e4388d]106 <note>
107 <para>
108 This package does not support parallel build.
109 </para>
110 </note>
111
[7c56ece]112 <para>
113 Install <application>Heirloom mailx</application> by running the
114 following commands.
115 </para>
[e6f1fd6]116
[13bc31d]117<screen><userinput>patch -Np1 -i ../heirloom-mailx-&mailx-version;-fixes-1.patch &amp;&amp;
[2791835]118
[a4f37269]119sed 's@&lt;openssl@&lt;openssl-1.0/openssl@' \
[2791835]120 -i openssl.c fio.c makeconfig &amp;&amp;
121
[fb8f00e]122make -j1 LDFLAGS+="-L /usr/lib/openssl/" \
123 SENDMAIL=/usr/sbin/sendmail</userinput></screen>
[e6f1fd6]124
[7c56ece]125 <para>
126 This package does not come with a test suite.
127 </para>
[aee33b88]128
[7c56ece]129 <para>
130 Now, as the <systemitem class='username'>root</systemitem> user:
131 </para>
[e6f1fd6]132
[058bfd80]133<screen role='root'><userinput>make PREFIX=/usr UCBINSTALL=/usr/bin/install install &amp;&amp;
[2791835]134
[058bfd80]135ln -v -sf mailx /usr/bin/mail &amp;&amp;
136ln -v -sf mailx /usr/bin/nail &amp;&amp;
[2791835]137
138install -v -m755 -d /usr/share/doc/heirloom-mailx-&mailx-version; &amp;&amp;
[13bc31d]139install -v -m644 README /usr/share/doc/heirloom-mailx-&mailx-version;</userinput></screen>
[e6f1fd6]140
[24acf2f2]141 </sect2>
[e6f1fd6]142
[24acf2f2]143 <sect2 role="commands">
[e3353b3]144 <title>Command Explanations</title>
[e6f1fd6]145
[7c56ece]146 <para>
147 <command>make SENDMAIL=/usr/sbin/sendmail</command>: This changes the
148 default MTA path of <command>/usr/lib/sendmail</command>.
149 </para>
[e6f1fd6]150
[7c56ece]151 <para>
152 <command>make PREFIX=/usr UCBINSTALL=/usr/bin/install
153 install</command>: This changes the default installation path of
154 <filename class='directory'>/usr/local</filename> and the default
155 <command>install</command> command path of
156 <filename class='directory'>/usr/ucb</filename>.
157 </para>
[e6f1fd6]158
[24acf2f2]159 </sect2>
[e6f1fd6]160
[24acf2f2]161 <sect2 role="configuration">
[058bfd80]162 <title>Configuring Heirloom mailx</title>
[e6f1fd6]163
[058bfd80]164 <sect3 id="mailx-config">
[e3353b3]165 <title>Config Files</title>
[e6f1fd6]166
[7c56ece]167 <para>
[aa48c25f]168<!-- ~/.nailrc seems not to be supported anymore
[7c56ece]169 <filename>/etc/nail.rc</filename>, <filename>~/.mailrc</filename>
170 and <filename>~/.nailrc</filename>
[aa48c25f]171-->
172 <filename>/etc/nail.rc</filename> and <filename>~/.mailrc</filename>
[7c56ece]173 </para>
[e6f1fd6]174
[058bfd80]175 <indexterm zone="mailx mailx-config">
[24acf2f2]176 <primary sortas="e-etc-nail.rc">/etc/nail.rc</primary>
177 </indexterm>
[e6f1fd6]178
[058bfd80]179 <indexterm zone="mailx mailx-config">
[24acf2f2]180 <primary sortas="e-AA.mailrc">~/.mailrc</primary>
181 </indexterm>
[aa48c25f]182<!--
[058bfd80]183 <indexterm zone="mailx mailx-config">
[24acf2f2]184 <primary sortas="e-AA.nailrc">~/.nailrc</primary>
185 </indexterm>
[aa48c25f]186-->
187 </sect3>
188
189 <sect3>
190 <title>Configuration Information</title>
191
192 <para>
193 For displaying mails, <application>mailx</application>
194 uses a pager program. Since the default of <command>pg</command>
195 is not available on a LFS system, its required to
196 specify which pager is to use. By default, there is
197 <command>more</command> and the more comfortable
198 <command>less</command> installed. If the
199 variable PAGER is not set in <filename>/etc/profile</filename>
200 or <filename>~/.bash_profile</filename>, or if it
201 should be another pager just for reading mails, it can be
202 set system wide in <filename>/etc/nail.rc</filename>:
203 </para>
204
[22d849a]205 <screen role="nodump"><userinput>echo "set PAGER=<replaceable>&lt;more|less&gt;</replaceable>" &gt;&gt; /etc/nail.rc</userinput></screen>
[aa48c25f]206
207 <para>or individually for the actual user in <filename>~/.mailrc</filename>:</para>
208
[22d849a]209 <screen role="nodump"><userinput>echo "set PAGER=<replaceable>&lt;more|less&gt;</replaceable>" &gt;&gt; ~/.mailrc</userinput></screen>
[aa48c25f]210
211 <para>
212 Other interesting options to set in the config files might
[54d58907]213 be EDITOR and MAILDIR.
[aa48c25f]214 </para>
215
216 <para>
217 If not set in the environment for other packages, the
218 default editor can be set by:
219 </para>
220
[22d849a]221 <screen role="nodump"><userinput>echo "set EDITOR=<replaceable>&lt;vim|nano|...&gt;</replaceable>" &gt;&gt; /etc/nail.rc</userinput></screen>
[aa48c25f]222
223 <para>
224 Depending on which kind of <xref linkend="server-mail"/> is
225 installed, it might be required to set the MAILDIR variable
226 so <application>mailx</application> is able to find the mails:
227 </para>
228
[22d849a]229<screen role="nodump"><userinput>echo "set MAILDIR=Maildir" &gt;&gt; /etc/nail.rc</userinput></screen>
[e6f1fd6]230
[24acf2f2]231 </sect3>
[e6f1fd6]232
[24acf2f2]233 </sect2>
[e6f1fd6]234
[24acf2f2]235 <sect2 role="content">
236 <title>Contents</title>
[e6f1fd6]237
[24acf2f2]238 <segmentedlist>
239 <segtitle>Installed Programs</segtitle>
240 <segtitle>Installed Libraries</segtitle>
241 <segtitle>Installed Directories</segtitle>
[e6f1fd6]242
[24acf2f2]243 <seglistitem>
244 <seg>mail, mailx and nail</seg>
245 <seg>None</seg>
246 <seg>None</seg>
247 </seglistitem>
248 </segmentedlist>
[e6f1fd6]249
[24acf2f2]250 <variablelist>
251 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
252 <?dbfo list-presentation="list"?>
253 <?dbhtml list-presentation="table"?>
[e6f1fd6]254
[058bfd80]255 <varlistentry id="mailx-prog">
256 <term><command>mailx</command></term>
[24acf2f2]257 <listitem>
[7c56ece]258 <para>
259 is a command-line mail user agent compatible with the
260 <command>mailx</command> command found on commercial Unix
[4c24eb0a]261 versions
[7c56ece]262 </para>
[058bfd80]263 <indexterm zone="mailx mailx-prog">
264 <primary sortas="b-mailx">mailx</primary>
[24acf2f2]265 </indexterm>
266 </listitem>
267 </varlistentry>
[e6f1fd6]268
[058bfd80]269 <varlistentry id="mail-mailx">
[24acf2f2]270 <term><command>mail</command></term>
271 <listitem>
[7c56ece]272 <para>
[4c24eb0a]273 is a symbolic link to <command>mailx</command>
[7c56ece]274 </para>
[058bfd80]275 <indexterm zone="mailx mail-mailx">
[b960e3ec]276 <primary sortas="b-mail">mail</primary>
[24acf2f2]277 </indexterm>
278 </listitem>
279 </varlistentry>
[e6f1fd6]280
[058bfd80]281 <varlistentry id="nail-mailx">
282 <term><command>nail</command></term>
[24acf2f2]283 <listitem>
[7c56ece]284 <para>
[4c24eb0a]285 is a symbolic link to <command>mailx</command>
[7c56ece]286 </para>
[058bfd80]287 <indexterm zone="mailx nail-mailx">
[b960e3ec]288 <primary sortas="b-nail">nail</primary>
[24acf2f2]289 </indexterm>
290 </listitem>
291 </varlistentry>
292 </variablelist>
[e6f1fd6]293
[24acf2f2]294 </sect2>
[e6f1fd6]295
[768bab5]296</sect1>
Note: See TracBrowser for help on using the repository browser.