From aa48c25feda8005386b423db1e0d9193962755d9 Mon Sep 17 00:00:00 2001 From: Thomas Trepl Date: Sat, 26 Nov 2022 17:25:30 +0100 Subject: [PATCH] Add some info about PAGER,EDITOR,MAILDIR options --- networking/mailnews/mailx.xml | 49 ++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/networking/mailnews/mailx.xml b/networking/mailnews/mailx.xml index bafc094aa5..3bd7781b1b 100644 --- a/networking/mailnews/mailx.xml +++ b/networking/mailnews/mailx.xml @@ -171,8 +171,11 @@ install -v -m644 README /usr/share/doc/heirloom-mailx-&mailx-version;Config Files + + /etc/nail.rc and ~/.mailrc @@ -182,10 +185,54 @@ install -v -m644 README /usr/share/doc/heirloom-mailx-&mailx-version; ~/.mailrc - + + + + + Configuration Information + + + For displaying mails, mailx + uses a pager program. Since the default of pg + is not available on a LFS system, its required to + specify which pager is to use. By default, there is + more and the more comfortable + less installed. If the + variable PAGER is not set in /etc/profile + or ~/.bash_profile, or if it + should be another pager just for reading mails, it can be + set system wide in /etc/nail.rc: + + +echo "set PAGER=<more|less>" >> /etc/nail.rc + + or individually for the actual user in ~/.mailrc: + +echo "set PAGER=<more|less>" >> ~/.mailrc + + + Other interesting options to set in the config files might + be EDITOR and MAILDIR. + + + + If not set in the environment for other packages, the + default editor can be set by: + + +echo "set EDITOR=<vim|nano|...>" >> /etc/nail.rc + + + Depending on which kind of is + installed, it might be required to set the MAILDIR variable + so mailx is able to find the mails: + + +echo "set MAILDIR=Maildir" >> /etc/nail.rc