From 809e4cb1458859eac403bf2e23d717c23a9cc892 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 12 May 2012 07:44:16 -0500 Subject: [PATCH] SIGNATURE/Local-Mailbox are not used by post, but just by front ends (comp, forw, repl, etc.) that read the profile. --- man/mh-profile.man | 13 +++++++++---- sbr/mts.c | 4 +++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/man/mh-profile.man b/man/mh-profile.man index 79615e5..1a9201c 100644 --- a/man/mh-profile.man +++ b/man/mh-profile.man @@ -327,8 +327,11 @@ superseded by the environment variable .BR Signature : RAND MH System (agent: Marshall Rose) .RS 5 -Tells -.B send +Tells front-end programs such as +.BR comp, +.BR forw, +and +.B repl your mail signature. This is superseded by the environment variable .BR $SIGNATURE . @@ -339,7 +342,8 @@ the \fI/etc/passwd\fP file will be used. Your signature will be added to the address .B send puts in the \*(lqFrom:\*(rq header; do not include an address in the -signature text. (profile, no default) +signature text. The \*(lqLocal\-Mailbox\*(rq profile component +supersedes all of this. (profile, no default) .RE .SS "Process Profile Entries" @@ -743,7 +747,8 @@ This variable tells .B send and .B post -your mail signature. This supersedes the \*(lqSignature\*(rq profile entry. +your mail signature. This supersedes the \*(lqSignature\*(rq profile entry, +and is not used when the \*(lqLocal\-Mailbox\*(rq profile component is set. .RE .PP .B $USER diff --git a/sbr/mts.c b/sbr/mts.c index 548731e..88bae83 100644 --- a/sbr/mts.c +++ b/sbr/mts.c @@ -404,7 +404,9 @@ getuserinfo (void) /* The $SIGNATURE environment variable overrides the GECOS field's idea of your real name. If SIGNATURE isn't set, use the Signature profile - setting if it exists. */ + setting if it exists. + Note that post(8) and whom(1) use context_foil (), so they + won't see the profile component. */ if ((cp = getenv ("SIGNATURE")) && *cp) strncpy (fullname, cp, sizeof(fullname)); else if ((cp = context_find("Signature"))) -- 1.7.10.4