From: David Levine Date: Sat, 12 May 2012 12:44:16 +0000 (-0500) Subject: SIGNATURE/Local-Mailbox are not used by post, but just by front X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=809e4cb1458859eac403bf2e23d717c23a9cc892;p=mmh SIGNATURE/Local-Mailbox are not used by post, but just by front ends (comp, forw, repl, etc.) that read the profile. --- 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")))