* draft message.
*/
-char *lproc = DEFAULT_PAGER;
+char *lproc = NULL;
/*
* This is the path for the Bell equivalent mail program.
* or message parts of type text/plain.
*/
-char *moreproc = DEFAULT_PAGER;
+char *moreproc = NULL;
/*
* This is the program (mhl) used to filter messages. It is
existing files.
- Added -noall/-all switches to sortm(1). sortm -noall requires
a messages argument.
+- $PAGER overrides the compiled-in default pager command.
----------------------------
and
.B repl
to display the draft message.
+(Note that
+.B $PAGER
+supersedes the default built-in pager command.)
.RE
.PP
.BR mailproc :
program used by
.B mhshow
to display message bodies (or message parts) of type text/plain.
+(Note that
+.B $PAGER
+supersedes the default built-in pager command.)
.RE
.PP
.BR mshproc :
about the values in that entry.
.RE
.PP
+.B $PAGER
+.RS 5
+If set to a non-null value, this supersedes the value of
+the default built-in pager command.
+.RE
+.PP
.B $editalt
.RS 5
This is the alternate message.
break;
}
+ /*
+ * Special handling for the pager processes: lproc and moreproc.
+ *
+ * If they are not set by the profile, use the callers $PAGER if
+ * available, otherwise set them to DEFAULT_PAGER.
+ */
+ if (lproc == NULL) {
+ lproc = getenv("PAGER");
+ if (lproc == NULL || lproc[0] == '\0')
+ lproc = DEFAULT_PAGER;
+ }
+ if (moreproc == NULL) {
+ moreproc = getenv("PAGER");
+ if (moreproc == NULL || moreproc[0] == '\0')
+ moreproc = DEFAULT_PAGER;
+ }
+
if (opp == NULL) {
/* Check for duplicated non-null profile entries. Except
allow multiple profile entries named "#", because that's