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
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
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 -->
10 <!ENTITY mailx-download-http "&sources-anduin-http;/mailx/heirloom-mailx_&mailx-version;.orig.tar.gz">
11 <!ENTITY mailx-download-ftp " ">
12 <!ENTITY mailx-md5sum "29a6033ef1412824d02eb9d9213cb1f2">
13 <!ENTITY mailx-size "317 KB">
14 <!ENTITY mailx-buildsize "3.2 MB">
15 <!ENTITY mailx-time "less than 0.1 SBU">
16]>
17
18<sect1 id="mailx" xreflabel="mailx-&mailx-version;">
19 <?dbhtml filename="mailx.html"?>
20
21
22 <title>mailx-&mailx-version;</title>
23
24 <indexterm zone="mailx">
25 <primary sortas="a-Heirloom-mailx">Heirloom mailx</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to Heirloom mailx</title>
30
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>
42
43 &lfs121_checked;
44
45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing='compact'>
47 <listitem>
48 <para>
49 Download (HTTP): <ulink url="&mailx-download-http;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download (FTP): <ulink url="&mailx-download-ftp;"/>
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download MD5 sum: &mailx-md5sum;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Download size: &mailx-size;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated disk space required: &mailx-buildsize;
70 </para>
71 </listitem>
72 <listitem>
73 <para>
74 Estimated build time: &mailx-time;
75 </para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
80 <itemizedlist spacing='compact'>
81 <listitem>
82 <para>
83 Required patch: <ulink
84 url="&patch-root;/heirloom-mailx-&mailx-version;-fixes-1.patch"/>
85 </para>
86 </listitem>
87 </itemizedlist>
88
89 <bridgehead renderas="sect3">Heirloom mailx Dependencies</bridgehead>
90
91 <bridgehead renderas="sect4">Optional</bridgehead>
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>
98
99 </sect2>
100
101 <sect2 role="installation">
102 <title>Installation of Heirloom mailx</title>
103
104 <!-- see r12697 for explanation, and still used by fedora even though it often
105 does work with a parallel make -->
106 <note>
107 <para>
108 This package does not support parallel build.
109 </para>
110 </note>
111
112 <para>
113 Install <application>Heirloom mailx</application> by running the
114 following commands.
115 </para>
116
117<screen><userinput>patch -Np1 -i ../heirloom-mailx-&mailx-version;-fixes-1.patch &amp;&amp;
118
119sed 's@&lt;openssl@&lt;openssl-1.0/openssl@' \
120 -i openssl.c fio.c makeconfig &amp;&amp;
121
122make -j1 LDFLAGS+="-L /usr/lib/openssl/" \
123 SENDMAIL=/usr/sbin/sendmail</userinput></screen>
124
125 <para>
126 This package does not come with a test suite.
127 </para>
128
129 <para>
130 Now, as the <systemitem class='username'>root</systemitem> user:
131 </para>
132
133<screen role='root'><userinput>make PREFIX=/usr UCBINSTALL=/usr/bin/install install &amp;&amp;
134
135ln -v -sf mailx /usr/bin/mail &amp;&amp;
136ln -v -sf mailx /usr/bin/nail &amp;&amp;
137
138install -v -m755 -d /usr/share/doc/heirloom-mailx-&mailx-version; &amp;&amp;
139install -v -m644 README /usr/share/doc/heirloom-mailx-&mailx-version;</userinput></screen>
140
141 </sect2>
142
143 <sect2 role="commands">
144 <title>Command Explanations</title>
145
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>
150
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>
158
159 </sect2>
160
161 <sect2 role="configuration">
162 <title>Configuring Heirloom mailx</title>
163
164 <sect3 id="mailx-config">
165 <title>Config Files</title>
166
167 <para>
168<!-- ~/.nailrc seems not to be supported anymore
169 <filename>/etc/nail.rc</filename>, <filename>~/.mailrc</filename>
170 and <filename>~/.nailrc</filename>
171-->
172 <filename>/etc/nail.rc</filename> and <filename>~/.mailrc</filename>
173 </para>
174
175 <indexterm zone="mailx mailx-config">
176 <primary sortas="e-etc-nail.rc">/etc/nail.rc</primary>
177 </indexterm>
178
179 <indexterm zone="mailx mailx-config">
180 <primary sortas="e-AA.mailrc">~/.mailrc</primary>
181 </indexterm>
182<!--
183 <indexterm zone="mailx mailx-config">
184 <primary sortas="e-AA.nailrc">~/.nailrc</primary>
185 </indexterm>
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
205 <screen role="nodump"><userinput>echo "set PAGER=<replaceable>&lt;more|less&gt;</replaceable>" &gt;&gt; /etc/nail.rc</userinput></screen>
206
207 <para>or individually for the actual user in <filename>~/.mailrc</filename>:</para>
208
209 <screen role="nodump"><userinput>echo "set PAGER=<replaceable>&lt;more|less&gt;</replaceable>" &gt;&gt; ~/.mailrc</userinput></screen>
210
211 <para>
212 Other interesting options to set in the config files might
213 be EDITOR and MAILDIR.
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
221 <screen role="nodump"><userinput>echo "set EDITOR=<replaceable>&lt;vim|nano|...&gt;</replaceable>" &gt;&gt; /etc/nail.rc</userinput></screen>
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
229<screen role="nodump"><userinput>echo "set MAILDIR=Maildir" &gt;&gt; /etc/nail.rc</userinput></screen>
230
231 </sect3>
232
233 </sect2>
234
235 <sect2 role="content">
236 <title>Contents</title>
237
238 <segmentedlist>
239 <segtitle>Installed Programs</segtitle>
240 <segtitle>Installed Libraries</segtitle>
241 <segtitle>Installed Directories</segtitle>
242
243 <seglistitem>
244 <seg>mail, mailx and nail</seg>
245 <seg>None</seg>
246 <seg>None</seg>
247 </seglistitem>
248 </segmentedlist>
249
250 <variablelist>
251 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
252 <?dbfo list-presentation="list"?>
253 <?dbhtml list-presentation="table"?>
254
255 <varlistentry id="mailx-prog">
256 <term><command>mailx</command></term>
257 <listitem>
258 <para>
259 is a command-line mail user agent compatible with the
260 <command>mailx</command> command found on commercial Unix
261 versions
262 </para>
263 <indexterm zone="mailx mailx-prog">
264 <primary sortas="b-mailx">mailx</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="mail-mailx">
270 <term><command>mail</command></term>
271 <listitem>
272 <para>
273 is a symbolic link to <command>mailx</command>
274 </para>
275 <indexterm zone="mailx mail-mailx">
276 <primary sortas="b-mail">mail</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="nail-mailx">
282 <term><command>nail</command></term>
283 <listitem>
284 <para>
285 is a symbolic link to <command>mailx</command>
286 </para>
287 <indexterm zone="mailx nail-mailx">
288 <primary sortas="b-nail">nail</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292 </variablelist>
293
294 </sect2>
295
296</sect1>
Note: See TracBrowser for help on using the repository browser.