2007-06-05 21:50:22 +04:00
|
|
|
# $NetBSD: mail.tildehelp,v 1.5 2007/06/05 17:50:23 christos Exp $
|
1993-03-21 12:45:37 +03:00
|
|
|
-----------------------------------------------------------
|
|
|
|
The following ~ escapes are defined:
|
1999-02-17 23:48:48 +03:00
|
|
|
~? Print this message
|
1993-03-21 12:45:37 +03:00
|
|
|
~~ Quote a single tilde
|
1999-02-17 23:48:48 +03:00
|
|
|
~. Same as .
|
2006-10-22 04:35:29 +04:00
|
|
|
~@ [file ...] Add or edit attachments
|
Jumbo mail patch from our anonymous user:
1) Use editline [optional]:
Most of this code was borrowed from src/usr.bin/ftp. It does the
appropriate editing, history, and completion for all mail commands
(from cmdtab[]) and also does editing on header strings ('~h' inside
the mail editor).
2) '-B' flag:
This will suppress the "To:" line passed to sendmail. In most
configurations it will lead to sendmail adding "To: undisclosed
recipients;". Currently, AFAIK mail requires at least one exposed
recipient address.
3) Comments in rcfile:
Currently, comments in .mailrc are only supported if the first
(non-white) character on a line is '#' followed by white space,
i.e., '#' is a 'nop' command. This (trivial) patch allows the more
normal/expected use of '#' as a comment character. It does not
respect quoting, so that might be an objection which I should fix.
4) Sendmail option editing:
This adds the sendmail option string to the strings editable by the
'~h' command within the mail editor. Currently, you can only set
this string from the command-line, which is particularly annoying
when replying to mail.
5) Reply from:
When replying to a message, grab the "To:" address from the message
and, if there is only one such address and it does not match a list of
allowed addresses (set in the "ReplyFrom" variable), pass it to
sendmail as the "From:" address for the reply (with the '-f' option).
I often make aliases for myself so that my primary address is not
given out; if the alias gets out, I know who to blame. Unfortunately,
a reply to such a message would normally use the primary address
without this patch. A warning is displayed when this is going to
happen so that it can be modified with '~h'.
6) CC and BCC lists:
Allow '-c' and '-b' to accept white-space or ',' delimited lists.
Currently, a white-space delimited list of addresses work, but a
list of aliases will not get expanded. For example, currently:
mail -c "foo bar" christos
will fail to send mail to 'foo' and 'bar' if these are mail aliases
(in ~/.mailrc); sendmail aliases (in /etc/aliases) do work.
7) pipe command:
This pipes the current message into a shell command. I use this for
quick decoding of uuencoded mail, but I can imagine it might be
useful for decrypting encrypted mail, too.
8) show command:
This command takes a list of variables and shows their values. It
is probably stupid as the 'set' command without any argument
displays all variable values. Of course, if there are a lot of
variables you have to sift through the list for the one(s) you want.
2006-09-18 23:46:21 +04:00
|
|
|
~h Prompt for subject and to, cc, bcc, and smopts lists
|
1993-03-21 12:45:37 +03:00
|
|
|
~b users Add users to "blind" cc list
|
|
|
|
~c users Add users to cc list
|
1999-02-17 23:48:48 +03:00
|
|
|
~t users Add users to to list
|
|
|
|
~s subject Set subject
|
|
|
|
~w file Write message onto file
|
1993-03-21 12:45:37 +03:00
|
|
|
~d Read in dead.letter
|
1999-02-17 23:48:48 +03:00
|
|
|
~r file Read a file into the message buffer
|
|
|
|
~|command Pipe the message through the command
|
|
|
|
~^command Same as ~|
|
1993-03-21 12:45:37 +03:00
|
|
|
~f messages Read in messages
|
1999-02-17 23:48:48 +03:00
|
|
|
~< file Same as ~f
|
|
|
|
~<!command Insert the output of command in the message
|
|
|
|
~i name Insert the value of the named variable
|
|
|
|
~A Equivalent to iSign
|
|
|
|
~a Equivalent to isign
|
1993-03-21 12:45:37 +03:00
|
|
|
~F messages Same as ~f, but keep all header lines
|
|
|
|
~m messages Read in messages, right shifted by a tab
|
|
|
|
~M messages Same as ~m, but keep all header lines
|
1999-02-17 23:48:48 +03:00
|
|
|
~e Edit the message buffer (using ed or $EDITOR)
|
|
|
|
~v Invoke display editor (vi or $VISUAL) on message
|
|
|
|
~p Print the message buffer
|
|
|
|
~C Dump core
|
|
|
|
~q Quit, save partial message in dead.letter
|
|
|
|
~x Quit, do not save dead.letter
|
1993-03-21 12:45:37 +03:00
|
|
|
~!command Invoke the shell
|
1999-02-17 23:48:48 +03:00
|
|
|
~_ mail-cmd Perform the command-level request
|
|
|
|
~: mail-cmd Same as ~_
|
1993-03-21 12:45:37 +03:00
|
|
|
-----------------------------------------------------------
|