mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
Add some info about PAGER,EDITOR,MAILDIR options
This commit is contained in:
parent
3cbfa4557e
commit
aa48c25fed
@ -171,8 +171,11 @@ install -v -m644 README /usr/share/doc/heirloom-mailx-&mailx-version;</userinput
|
|||||||
<title>Config Files</title>
|
<title>Config Files</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
<!-- ~/.nailrc seems not to be supported anymore
|
||||||
<filename>/etc/nail.rc</filename>, <filename>~/.mailrc</filename>
|
<filename>/etc/nail.rc</filename>, <filename>~/.mailrc</filename>
|
||||||
and <filename>~/.nailrc</filename>
|
and <filename>~/.nailrc</filename>
|
||||||
|
-->
|
||||||
|
<filename>/etc/nail.rc</filename> and <filename>~/.mailrc</filename>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<indexterm zone="mailx mailx-config">
|
<indexterm zone="mailx mailx-config">
|
||||||
@ -182,10 +185,54 @@ install -v -m644 README /usr/share/doc/heirloom-mailx-&mailx-version;</userinput
|
|||||||
<indexterm zone="mailx mailx-config">
|
<indexterm zone="mailx mailx-config">
|
||||||
<primary sortas="e-AA.mailrc">~/.mailrc</primary>
|
<primary sortas="e-AA.mailrc">~/.mailrc</primary>
|
||||||
</indexterm>
|
</indexterm>
|
||||||
|
<!--
|
||||||
<indexterm zone="mailx mailx-config">
|
<indexterm zone="mailx mailx-config">
|
||||||
<primary sortas="e-AA.nailrc">~/.nailrc</primary>
|
<primary sortas="e-AA.nailrc">~/.nailrc</primary>
|
||||||
</indexterm>
|
</indexterm>
|
||||||
|
-->
|
||||||
|
</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>
|
||||||
|
|
||||||
|
<screen><userinput role="nodump">echo "set PAGER=<more|less>" >> /etc/nail.rc</userinput></screen>
|
||||||
|
|
||||||
|
<para>or individually for the actual user in <filename>~/.mailrc</filename>:</para>
|
||||||
|
|
||||||
|
<screen><userinput role="nodump">echo "set PAGER=<more|less>" >> ~/.mailrc</userinput></screen>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Other interesting options to set in the config files might
|
||||||
|
be EDITOR and MAILDIR.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
If not set in the environment for other packages, the
|
||||||
|
default editor can be set by:
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<screen><userinput role="nodump">echo "set EDITOR=<vim|nano|...>" >> /etc/nail.rc</userinput></screen>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<screen><userinput role="nodump">echo "set MAILDIR=Maildir" >> /etc/nail.rc</userinput></screen>
|
||||||
|
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user