From: David Levine Date: Mon, 2 May 2016 16:55:31 +0000 (-0400) Subject: For slocal, changed default user, if -user switch isn't used, to be X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/8f4ce46a6be422b12b741f69770372486a5587c8 For slocal, changed default user, if -user switch isn't used, to be the user part of the Local-Mailbox profile entry, if present, or the current user. addr uses the same default. This allows addr to contain a '.', which slocal did not allow before. --- diff --git a/man/slocal.man b/man/slocal.man index 53f9314a..6c8e4909 100644 --- a/man/slocal.man +++ b/man/slocal.man @@ -1,4 +1,4 @@ -.TH SLOCAL %manext1% "November 23, 2012" "%nmhversion%" +.TH SLOCAL %manext1% "May 2, 2016" "%nmhversion%" .\" .\" %nmhwarning% .\" @@ -76,7 +76,7 @@ The switch tells .B slocal the name of the user for -whom it is delivering mail. The +whom it is delivering mail. It must exist on the local system. The .B \-mailbox switch tells .B slocal @@ -383,8 +383,14 @@ quicker delivery into your maildrop. .RB ` \-maildelivery "' defaults to $HOME/\&.maildelivery" .RB ` \-mailbox "' deaults to %mailspool%/$USER" .RB ` \-file "' defaults to stdin" +.RB ` \-addr "' defaults to the current user" .RB ` \-user "' defaults to the current user" .fi +.PP +.B \-addr +and +.B \-user +will be set the the user part of the Local-Mailbox profile entry, if set. .SH CONTEXT None .SH HISTORY diff --git a/test/slocal/test-slocal b/test/slocal/test-slocal index 08eb1a80..3fb73b24 100755 --- a/test/slocal/test-slocal +++ b/test/slocal/test-slocal @@ -143,19 +143,23 @@ run_prog $slocal -maildelivery "$md" $mbox <"$MH_TEST_DIR"/Mail/inbox/5 check "$MH_TEST_DIR/Mail/inbox/5" "$actual" 'keep first' check "$MH_TEST_DIR/Mail/inbox/5" "$actual2" 'keep first' -# Use current login for address, user, etc., because it must be an -# existing user on the host. -me=`"$MH_LIBEXEC_DIR"/ap -format '%(me)' 0` - # check -addr cat >"$md" <"$md" <"$md" <"$md" <"$md" <"$md" <