1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
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 "https://ftp.debian.org/debian/pool/main/h/heirloom-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 | &lfs113_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 | <para condition="html" role="usernotes">User Notes:
|
---|
100 | <ulink url="&blfs-wiki;/mailx"/></para>
|
---|
101 |
|
---|
102 | </sect2>
|
---|
103 |
|
---|
104 | <sect2 role="installation">
|
---|
105 | <title>Installation of Heirloom mailx</title>
|
---|
106 |
|
---|
107 | <!-- see r12697 for explanation, and still used by fedora even though it often
|
---|
108 | does work with a parallel make -->
|
---|
109 | <note>
|
---|
110 | <para>
|
---|
111 | This package does not support parallel build.
|
---|
112 | </para>
|
---|
113 | </note>
|
---|
114 |
|
---|
115 | <para>
|
---|
116 | Install <application>Heirloom mailx</application> by running the
|
---|
117 | following commands.
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <screen><userinput>patch -Np1 -i ../heirloom-mailx-&mailx-version;-fixes-1.patch &&
|
---|
121 |
|
---|
122 | sed 's@<openssl@<openssl-1.0/openssl@' \
|
---|
123 | -i openssl.c fio.c makeconfig &&
|
---|
124 |
|
---|
125 | make -j1 LDFLAGS+="-L /usr/lib/openssl/" \
|
---|
126 | SENDMAIL=/usr/sbin/sendmail</userinput></screen>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | This package does not come with a test suite.
|
---|
130 | </para>
|
---|
131 |
|
---|
132 | <para>
|
---|
133 | Now, as the <systemitem class='username'>root</systemitem> user:
|
---|
134 | </para>
|
---|
135 |
|
---|
136 | <screen role='root'><userinput>make PREFIX=/usr UCBINSTALL=/usr/bin/install install &&
|
---|
137 |
|
---|
138 | ln -v -sf mailx /usr/bin/mail &&
|
---|
139 | ln -v -sf mailx /usr/bin/nail &&
|
---|
140 |
|
---|
141 | install -v -m755 -d /usr/share/doc/heirloom-mailx-&mailx-version; &&
|
---|
142 | install -v -m644 README /usr/share/doc/heirloom-mailx-&mailx-version;</userinput></screen>
|
---|
143 |
|
---|
144 | </sect2>
|
---|
145 |
|
---|
146 | <sect2 role="commands">
|
---|
147 | <title>Command Explanations</title>
|
---|
148 |
|
---|
149 | <para>
|
---|
150 | <command>make SENDMAIL=/usr/sbin/sendmail</command>: This changes the
|
---|
151 | default MTA path of <command>/usr/lib/sendmail</command>.
|
---|
152 | </para>
|
---|
153 |
|
---|
154 | <para>
|
---|
155 | <command>make PREFIX=/usr UCBINSTALL=/usr/bin/install
|
---|
156 | install</command>: This changes the default installation path of
|
---|
157 | <filename class='directory'>/usr/local</filename> and the default
|
---|
158 | <command>install</command> command path of
|
---|
159 | <filename class='directory'>/usr/ucb</filename>.
|
---|
160 | </para>
|
---|
161 |
|
---|
162 | </sect2>
|
---|
163 |
|
---|
164 | <sect2 role="configuration">
|
---|
165 | <title>Configuring Heirloom mailx</title>
|
---|
166 |
|
---|
167 | <sect3 id="mailx-config">
|
---|
168 | <title>Config Files</title>
|
---|
169 |
|
---|
170 | <para>
|
---|
171 | <!-- ~/.nailrc seems not to be supported anymore
|
---|
172 | <filename>/etc/nail.rc</filename>, <filename>~/.mailrc</filename>
|
---|
173 | and <filename>~/.nailrc</filename>
|
---|
174 | -->
|
---|
175 | <filename>/etc/nail.rc</filename> and <filename>~/.mailrc</filename>
|
---|
176 | </para>
|
---|
177 |
|
---|
178 | <indexterm zone="mailx mailx-config">
|
---|
179 | <primary sortas="e-etc-nail.rc">/etc/nail.rc</primary>
|
---|
180 | </indexterm>
|
---|
181 |
|
---|
182 | <indexterm zone="mailx mailx-config">
|
---|
183 | <primary sortas="e-AA.mailrc">~/.mailrc</primary>
|
---|
184 | </indexterm>
|
---|
185 | <!--
|
---|
186 | <indexterm zone="mailx mailx-config">
|
---|
187 | <primary sortas="e-AA.nailrc">~/.nailrc</primary>
|
---|
188 | </indexterm>
|
---|
189 | -->
|
---|
190 | </sect3>
|
---|
191 |
|
---|
192 | <sect3>
|
---|
193 | <title>Configuration Information</title>
|
---|
194 |
|
---|
195 | <para>
|
---|
196 | For displaying mails, <application>mailx</application>
|
---|
197 | uses a pager program. Since the default of <command>pg</command>
|
---|
198 | is not available on a LFS system, its required to
|
---|
199 | specify which pager is to use. By default, there is
|
---|
200 | <command>more</command> and the more comfortable
|
---|
201 | <command>less</command> installed. If the
|
---|
202 | variable PAGER is not set in <filename>/etc/profile</filename>
|
---|
203 | or <filename>~/.bash_profile</filename>, or if it
|
---|
204 | should be another pager just for reading mails, it can be
|
---|
205 | set system wide in <filename>/etc/nail.rc</filename>:
|
---|
206 | </para>
|
---|
207 |
|
---|
208 | <screen role="nodump"><userinput>echo "set PAGER=<replaceable><more|less></replaceable>" >> /etc/nail.rc</userinput></screen>
|
---|
209 |
|
---|
210 | <para>or individually for the actual user in <filename>~/.mailrc</filename>:</para>
|
---|
211 |
|
---|
212 | <screen role="nodump"><userinput>echo "set PAGER=<replaceable><more|less></replaceable>" >> ~/.mailrc</userinput></screen>
|
---|
213 |
|
---|
214 | <para>
|
---|
215 | Other interesting options to set in the config files might
|
---|
216 | be EDITOR and MAILDIR.
|
---|
217 | </para>
|
---|
218 |
|
---|
219 | <para>
|
---|
220 | If not set in the environment for other packages, the
|
---|
221 | default editor can be set by:
|
---|
222 | </para>
|
---|
223 |
|
---|
224 | <screen role="nodump"><userinput>echo "set EDITOR=<replaceable><vim|nano|...></replaceable>" >> /etc/nail.rc</userinput></screen>
|
---|
225 |
|
---|
226 | <para>
|
---|
227 | Depending on which kind of <xref linkend="server-mail"/> is
|
---|
228 | installed, it might be required to set the MAILDIR variable
|
---|
229 | so <application>mailx</application> is able to find the mails:
|
---|
230 | </para>
|
---|
231 |
|
---|
232 | <screen role="nodump"><userinput>echo "set MAILDIR=Maildir" >> /etc/nail.rc</userinput></screen>
|
---|
233 |
|
---|
234 | </sect3>
|
---|
235 |
|
---|
236 | </sect2>
|
---|
237 |
|
---|
238 | <sect2 role="content">
|
---|
239 | <title>Contents</title>
|
---|
240 |
|
---|
241 | <segmentedlist>
|
---|
242 | <segtitle>Installed Programs</segtitle>
|
---|
243 | <segtitle>Installed Libraries</segtitle>
|
---|
244 | <segtitle>Installed Directories</segtitle>
|
---|
245 |
|
---|
246 | <seglistitem>
|
---|
247 | <seg>mail, mailx and nail</seg>
|
---|
248 | <seg>None</seg>
|
---|
249 | <seg>None</seg>
|
---|
250 | </seglistitem>
|
---|
251 | </segmentedlist>
|
---|
252 |
|
---|
253 | <variablelist>
|
---|
254 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
255 | <?dbfo list-presentation="list"?>
|
---|
256 | <?dbhtml list-presentation="table"?>
|
---|
257 |
|
---|
258 | <varlistentry id="mailx-prog">
|
---|
259 | <term><command>mailx</command></term>
|
---|
260 | <listitem>
|
---|
261 | <para>
|
---|
262 | is a command-line mail user agent compatible with the
|
---|
263 | <command>mailx</command> command found on commercial Unix
|
---|
264 | versions
|
---|
265 | </para>
|
---|
266 | <indexterm zone="mailx mailx-prog">
|
---|
267 | <primary sortas="b-mailx">mailx</primary>
|
---|
268 | </indexterm>
|
---|
269 | </listitem>
|
---|
270 | </varlistentry>
|
---|
271 |
|
---|
272 | <varlistentry id="mail-mailx">
|
---|
273 | <term><command>mail</command></term>
|
---|
274 | <listitem>
|
---|
275 | <para>
|
---|
276 | is a symbolic link to <command>mailx</command>
|
---|
277 | </para>
|
---|
278 | <indexterm zone="mailx mail-mailx">
|
---|
279 | <primary sortas="b-mail">mail</primary>
|
---|
280 | </indexterm>
|
---|
281 | </listitem>
|
---|
282 | </varlistentry>
|
---|
283 |
|
---|
284 | <varlistentry id="nail-mailx">
|
---|
285 | <term><command>nail</command></term>
|
---|
286 | <listitem>
|
---|
287 | <para>
|
---|
288 | is a symbolic link to <command>mailx</command>
|
---|
289 | </para>
|
---|
290 | <indexterm zone="mailx nail-mailx">
|
---|
291 | <primary sortas="b-nail">nail</primary>
|
---|
292 | </indexterm>
|
---|
293 | </listitem>
|
---|
294 | </varlistentry>
|
---|
295 | </variablelist>
|
---|
296 |
|
---|
297 | </sect2>
|
---|
298 |
|
---|
299 | </sect1>
|
---|