linux関連/mailコマンド
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(linux関連);
*linux(ubuntu) にて日本語のテキストファイルをメールコマン...
-cat
-- ファイル名を指定(以下の例では、mail.txt utf8のファイ...
-iconv
-- -f 元の形式(以下の例では、utf8)
-- -t 変換後の形式(以下の例ではsjis)
-mail
-- -s 題名
-- -a ヘッダー追加(以下の例では、SJISと7bitの2つを追加)
---cat mail.txt | iconv -f utf8 -t sjis | mail -s "mail" ...
*man mail [#qcab3547]
MAIL(1) BS...
NAME
mail, mailx, Mail - send and receive mail
SYNOPSIS
mail [-dEIinv] [-a header] [-b bcc-addr] [-c cc-addr...
mail [-dEIiNnv] -f [file]
mail [-dEIiNnv] [-u user]
DESCRIPTION
mail is an intelligent mail processing system which ...
The options are as follows:
-a Specify additional header fields on the comm...
-b bcc-addr
Send blind carbon copies to bcc-addr.
-c cc-addr
Send carbon copies to list of users. cc-add...
-d Causes mail to output all sorts of informati...
-E Don’t send messages with an empty body.
-f [file]
Read in the contents of your mailbox (or the...
back to this file.
-I Forces mail to run in interactive mode, even...
-i Ignore tty interrupt signals. This is parti...
-N Inhibits initial display of message headers ...
-n Inhibits reading /etc/mail.rc upon startup.
-s subject
Specify subject on command line (only the fi...
-u user
Equivalent to:
$ mail -f /var/mail/user
except that locking is done.
-v Verbose mode. The details of delivery are d...
Startup actions
At startup time, mail will execute commands in the s...
Sending mail
To send a message to one or more people, mail can be...
Reading mail
In normal usage, mail is given no arguments and chec...
message found. The current message is initially set...
(which can be abbreviated p). Moving among the mess...
forwards and backwards, or simply enter a message nu...
Disposing of mail
After examining a message you can delete (d) or repl...
This is not irreversible; the message can be undelet...
exit (x) command. Deleted messages, however, will u...
Specifying messages
Commands such as print and delete can be given a lis...
Thus delete 1 2 deletes messages 1 and 2, while dele...
sages and ‘$’ addresses the last message; thus the c...
to print the first few lines of all messages.
Replying to or originating mail
You can use the reply command to set up a response t...
in, up to an end-of-file, defines the contents of th...
the tilde (‘~’) character specially. For instance, ...
response, right shifting it by a single tab-stop (se...
add and delete recipients to the message, and allow ...
mands. (These options are given in the summary belo...
Ending a mail processing session
You can end a mail session with the quit (q) command...
deleted, in which case they are discarded. Unexamin...
Personal and system wide distribution lists
It is also possible to create personal distribution ...
group of people. Such lists can be defined by placi...
alias cohorts bill ozalp jkf mark kridle@ucbcory
in the file .mailrc in your home directory. The cur...
System wide distribution lists can be created by edi...
ferent syntax. In mail you send, personal aliases w...
the recipients. System wide aliases are not expande...
system wide alias expanded as all mail goes through ...
Network mail (ARPA, UUCP, Berknet)
See mailaddr(7) for a description of network address...
mail has a number of options which can be set in the...
(These options are summarized below.)
SUMMARY
(Adapted from the “Mail Reference Manual”.)
Each command is typed on a line by itself, and may t...
entirety -- the first command which matches the type...
message list is given, then the next message forward...
forward of the current message, the search proceeds ...
messages” and aborts the command.
- Print out the preceding message. If given a...
? Prints a brief summary of commands.
! Executes the shell (see sh(1) and csh(1)) co...
alias (a) With no arguments, prints out all curren...
one argument, creates a new alias or changes...
alternates
(alt) The alternates command is useful if yo...
listed addresses are really you. When you r...
addresses listed on the alternates list. If...
names is displayed.
chdir (c) Changes the user’s working directory to ...
login directory.
copy (co) The copy command does the same thing th...
tion when you quit.
delete (d) Takes a list of messages as argument and...
will they be available for most other comman...
dp (also dt) Deletes the current message and pr...
messages.”
edit (e) Takes a list of messages and points the ...
read back in.
exit (ex or x) Effects an immediate return to the...
file in -f.
file (fi) The same as folder.
folder (fo) The folder command switches to a new ma...
rently reading. If you give it an argument,...
file and read in the new file. Some special...
your system mailbox, %user means user’s syst...
directory.
folders
List the names of the folders in your folder...
from (f) Takes a list of messages and prints thei...
headers
(h) Lists the current windowful of headers. ...
help A synonym for ?.
hold (ho, also preserve) Takes a message list and...
in mbox. Does not override the delete comma...
ignore Add the list of header fields named to the i...
when you print a message. This command is v...
and Print commands can be used to print a me...
arguments, it lists the current set of ignor...
inc Incorporate any new messages that have arriv...
sage list, and the current message is reset ...
list, nor does it cause any changes made so ...
list (l) List the valid mail commands.
mail (m) Takes as argument login names and distri...
mbox Indicate that a list of messages be sent to ...
sages if you do not have the hold option set.
more (mo) Takes a message list and invokes the pa...
next (n) (like + or CR) Goes to the next message ...
sage.
preserve
(pre) A synonym for hold.
Print (P) Like print but also prints out ignored h...
print (p) Takes a message list and types out each ...
quit (q) Terminates the session, saving all undel...
ing all messages marked with hold or preserv...
from his system mailbox. If new mail has ar...
while editing a mailbox file with the -f fla...
the rewrite of edit file fails, in which cas...
Reply (R) Reply to originator. Does not reply to ...
reply (r) Takes a message list and sends mail to t...
must not be deleted.
respond
A synonym for reply.
retain Add the list of header fields named to the r...
minal when you print a message. All other h...
a message in its entirety. If retain is exe...
save (s) Takes a message list and a filename and ...
followed by the line count and character cou...
saveignore
saveignore is to save what ignore is to prin...
by save or when automatically saving to mbox.
saveretain
saveretain is to save what retain is to prin...
when saving by save or when automatically sa...
set (se) With no arguments, prints all variable ...
space before or after =) or option. Quotati...
blanks or tabs, i.e., set indentprefix="->".
shell (sh) Invokes an interactive version of the s...
size Takes a message list and prints out the size...
source The source command reads commands from a file.
top Takes a message list and prints the top few ...
toplines and defaults to five.
Type (T) Identical to the Print command.
type (t) A synonym for print.
unalias
Takes a list of names defined by alias comma...
have any significance.
undelete
(u) Takes a message list and marks each mess...
unread (U) Takes a message list and marks each mess...
unset Takes a list of option names and discards th...
visual (v) Takes a message list and invokes the dis...
write (w) Similar to save, except that only the me...
sending and receiving source program text ov...
xit (x) A synonym for exit.
z mail presents message headers in windowfuls ...
to the next window with the z command. Also...
Tilde/escapes
Here is a summary of the tilde escapes, which are us...
only recognized at the beginning of lines. The name...
be set by the option escape.
~!command
Execute the indicated shell command, then re...
~bname ...
Add the given names to the list of carbon co...
copy).
~cname ...
Add the given names to the list of carbon co...
~d Read the file dead.letter from your home dir...
~e Invoke the text editor on the message collec...
text to the message.
~Fmessages
Identical to ~f, except all message headers ...
~fmessages
Read the named messages into the message bei...
headers currently being ignored (by the igno...
~h Edit the message header fields by typing eac...
field by using the current terminal erase an...
~Mmessages
Identical to ~m, except all message headers ...
~mmessages
Read the named messages into the message bei...
specified, read the current message. Messag...
included.
~p Print out the message collected so far, pref...
~q Abort the message being sent, copying the me...
~Rstring
Use string as the Reply-To field.
~rfilename
Read the named file into the message.
~sstring
Cause the named string to become the current...
~tname ...
Add the given names to the direct recipient ...
~v Invoke an alternate editor (defined by the V...
will be a screen editor. After you quit the...
~wfilename
Write the message onto the named file.
~|command
Pipe the message through the command as a fi...
original text of the message. The command f...
~:mail-command
Execute the given mail command. Not all com...
~~string
Insert the string of text in the message pre...
double that character in order to send it.
Mail options
Options are controlled via set and unset commands. ...
whether they are set or not; or string, in which cas...
append Causes messages saved in mbox to be appended...
/etc/mail.rc).
ask, asksub
Causes mail to prompt you for the subject of...
will be sent.
askbcc Causes you to be prompted for additional bli...
line indicates your satisfaction with the cu...
askcc Causes you to be prompted for additional car...
indicates your satisfaction with the current...
autoinc
Causes new mail to be automatically incorpor...
each prompt, except that the current message...
autoprint
Causes the delete command to behave like dp;...
debug Setting the binary option debug is the same ...
information useful for debugging mail.
dot The binary option dot causes mail to interpr...
hold This option is used to hold messages in the ...
ignore Causes interrupt signals from your terminal ...
ignoreeof
An option related to dot is ignoreeof which ...
also applies to mail command mode.
keep Setting this option causes mail to truncate ...
keepsave
Messages saved with the save command are not...
sages.
metoo Usually, when a group is expanded that conta...
causes the sender to be included in the group.
noheader
Setting the option noheader is the same as g...
nosave Normally, when you abort a message with two ...
file dead.letter in your home directory. Se...
quiet Suppresses the printing of the version when ...
Replyall
Reverses the sense of reply and Reply comman...
searchheaders
If this option is set, then a message-list s...
string ‘y’ in the header field ‘x’. The str...
“Subject” header field. The form “/to:y” is...
in the “To”, “Cc” or “Bcc” header fields. T...
search for ‘y’ to just the “To:” field.
skipempty
Don’t send messages with an empty body.
verbose
Setting the option verbose is the same as us...
actual delivery of messages is displayed on ...
Option string values
EDITOR Pathname of the text editor to use in ...
LISTER Pathname of the directory lister to us...
MBOX The name of the mbox file. It can be ...
PAGER Pathname of the program to use in the ...
used if this option is not defined.
REPLYTO If set, will be used to initialize the...
SHELL Pathname of the shell to use in the ! ...
defined.
TMPDIR Directory in which temporary files are...
VISUAL Pathname of the text editor to use in ...
crt The valued option crt is used as a thr...
If crt is set without a value, then th...
threshold (see stty(1)).
escape If defined, the first character of thi...
folder The name of the directory to use for s...
to be an absolute pathname; otherwise,...
indentprefix String used by the ~m tilde escape for...
quote the value if it contains spaces ...
record If defined, gives the pathname of the ...
not so saved.
screen Size of window of message headers for z.
sendmail Pathname to an alternative mail delive...
toplines If defined, gives the number of lines ...
lines are printed.
ENVIRONMENT
mail utilizes the HOME, LOGNAME, USER, SHELL, DEAD, ...
variables.
If the MAIL environment variable is set, its value i...
FILES
/var/mail/* post office (unless ove...
~/mbox user’s old mail
~/.mailrc file giving initial mai...
/tmp/R* temporary files
/usr/share/mailx/mail.*help help files
/etc/mail.rc system initialization f...
SEE ALSO
fmt(1), newaliases(1), vacation(1), aliases(5), mail...
"Mail Reference Manual", /usr/share/doc/mailx.
HISTORY
A mail command appeared in Version 3 AT&T UNIX. Thi...
Shoens.
BUGS
There are some flags that are not documented here. ...
Usually, Mail and mailx are just links to mail, whic...
BSD ...
終了行:
#navi(linux関連);
*linux(ubuntu) にて日本語のテキストファイルをメールコマン...
-cat
-- ファイル名を指定(以下の例では、mail.txt utf8のファイ...
-iconv
-- -f 元の形式(以下の例では、utf8)
-- -t 変換後の形式(以下の例ではsjis)
-mail
-- -s 題名
-- -a ヘッダー追加(以下の例では、SJISと7bitの2つを追加)
---cat mail.txt | iconv -f utf8 -t sjis | mail -s "mail" ...
*man mail [#qcab3547]
MAIL(1) BS...
NAME
mail, mailx, Mail - send and receive mail
SYNOPSIS
mail [-dEIinv] [-a header] [-b bcc-addr] [-c cc-addr...
mail [-dEIiNnv] -f [file]
mail [-dEIiNnv] [-u user]
DESCRIPTION
mail is an intelligent mail processing system which ...
The options are as follows:
-a Specify additional header fields on the comm...
-b bcc-addr
Send blind carbon copies to bcc-addr.
-c cc-addr
Send carbon copies to list of users. cc-add...
-d Causes mail to output all sorts of informati...
-E Don’t send messages with an empty body.
-f [file]
Read in the contents of your mailbox (or the...
back to this file.
-I Forces mail to run in interactive mode, even...
-i Ignore tty interrupt signals. This is parti...
-N Inhibits initial display of message headers ...
-n Inhibits reading /etc/mail.rc upon startup.
-s subject
Specify subject on command line (only the fi...
-u user
Equivalent to:
$ mail -f /var/mail/user
except that locking is done.
-v Verbose mode. The details of delivery are d...
Startup actions
At startup time, mail will execute commands in the s...
Sending mail
To send a message to one or more people, mail can be...
Reading mail
In normal usage, mail is given no arguments and chec...
message found. The current message is initially set...
(which can be abbreviated p). Moving among the mess...
forwards and backwards, or simply enter a message nu...
Disposing of mail
After examining a message you can delete (d) or repl...
This is not irreversible; the message can be undelet...
exit (x) command. Deleted messages, however, will u...
Specifying messages
Commands such as print and delete can be given a lis...
Thus delete 1 2 deletes messages 1 and 2, while dele...
sages and ‘$’ addresses the last message; thus the c...
to print the first few lines of all messages.
Replying to or originating mail
You can use the reply command to set up a response t...
in, up to an end-of-file, defines the contents of th...
the tilde (‘~’) character specially. For instance, ...
response, right shifting it by a single tab-stop (se...
add and delete recipients to the message, and allow ...
mands. (These options are given in the summary belo...
Ending a mail processing session
You can end a mail session with the quit (q) command...
deleted, in which case they are discarded. Unexamin...
Personal and system wide distribution lists
It is also possible to create personal distribution ...
group of people. Such lists can be defined by placi...
alias cohorts bill ozalp jkf mark kridle@ucbcory
in the file .mailrc in your home directory. The cur...
System wide distribution lists can be created by edi...
ferent syntax. In mail you send, personal aliases w...
the recipients. System wide aliases are not expande...
system wide alias expanded as all mail goes through ...
Network mail (ARPA, UUCP, Berknet)
See mailaddr(7) for a description of network address...
mail has a number of options which can be set in the...
(These options are summarized below.)
SUMMARY
(Adapted from the “Mail Reference Manual”.)
Each command is typed on a line by itself, and may t...
entirety -- the first command which matches the type...
message list is given, then the next message forward...
forward of the current message, the search proceeds ...
messages” and aborts the command.
- Print out the preceding message. If given a...
? Prints a brief summary of commands.
! Executes the shell (see sh(1) and csh(1)) co...
alias (a) With no arguments, prints out all curren...
one argument, creates a new alias or changes...
alternates
(alt) The alternates command is useful if yo...
listed addresses are really you. When you r...
addresses listed on the alternates list. If...
names is displayed.
chdir (c) Changes the user’s working directory to ...
login directory.
copy (co) The copy command does the same thing th...
tion when you quit.
delete (d) Takes a list of messages as argument and...
will they be available for most other comman...
dp (also dt) Deletes the current message and pr...
messages.”
edit (e) Takes a list of messages and points the ...
read back in.
exit (ex or x) Effects an immediate return to the...
file in -f.
file (fi) The same as folder.
folder (fo) The folder command switches to a new ma...
rently reading. If you give it an argument,...
file and read in the new file. Some special...
your system mailbox, %user means user’s syst...
directory.
folders
List the names of the folders in your folder...
from (f) Takes a list of messages and prints thei...
headers
(h) Lists the current windowful of headers. ...
help A synonym for ?.
hold (ho, also preserve) Takes a message list and...
in mbox. Does not override the delete comma...
ignore Add the list of header fields named to the i...
when you print a message. This command is v...
and Print commands can be used to print a me...
arguments, it lists the current set of ignor...
inc Incorporate any new messages that have arriv...
sage list, and the current message is reset ...
list, nor does it cause any changes made so ...
list (l) List the valid mail commands.
mail (m) Takes as argument login names and distri...
mbox Indicate that a list of messages be sent to ...
sages if you do not have the hold option set.
more (mo) Takes a message list and invokes the pa...
next (n) (like + or CR) Goes to the next message ...
sage.
preserve
(pre) A synonym for hold.
Print (P) Like print but also prints out ignored h...
print (p) Takes a message list and types out each ...
quit (q) Terminates the session, saving all undel...
ing all messages marked with hold or preserv...
from his system mailbox. If new mail has ar...
while editing a mailbox file with the -f fla...
the rewrite of edit file fails, in which cas...
Reply (R) Reply to originator. Does not reply to ...
reply (r) Takes a message list and sends mail to t...
must not be deleted.
respond
A synonym for reply.
retain Add the list of header fields named to the r...
minal when you print a message. All other h...
a message in its entirety. If retain is exe...
save (s) Takes a message list and a filename and ...
followed by the line count and character cou...
saveignore
saveignore is to save what ignore is to prin...
by save or when automatically saving to mbox.
saveretain
saveretain is to save what retain is to prin...
when saving by save or when automatically sa...
set (se) With no arguments, prints all variable ...
space before or after =) or option. Quotati...
blanks or tabs, i.e., set indentprefix="->".
shell (sh) Invokes an interactive version of the s...
size Takes a message list and prints out the size...
source The source command reads commands from a file.
top Takes a message list and prints the top few ...
toplines and defaults to five.
Type (T) Identical to the Print command.
type (t) A synonym for print.
unalias
Takes a list of names defined by alias comma...
have any significance.
undelete
(u) Takes a message list and marks each mess...
unread (U) Takes a message list and marks each mess...
unset Takes a list of option names and discards th...
visual (v) Takes a message list and invokes the dis...
write (w) Similar to save, except that only the me...
sending and receiving source program text ov...
xit (x) A synonym for exit.
z mail presents message headers in windowfuls ...
to the next window with the z command. Also...
Tilde/escapes
Here is a summary of the tilde escapes, which are us...
only recognized at the beginning of lines. The name...
be set by the option escape.
~!command
Execute the indicated shell command, then re...
~bname ...
Add the given names to the list of carbon co...
copy).
~cname ...
Add the given names to the list of carbon co...
~d Read the file dead.letter from your home dir...
~e Invoke the text editor on the message collec...
text to the message.
~Fmessages
Identical to ~f, except all message headers ...
~fmessages
Read the named messages into the message bei...
headers currently being ignored (by the igno...
~h Edit the message header fields by typing eac...
field by using the current terminal erase an...
~Mmessages
Identical to ~m, except all message headers ...
~mmessages
Read the named messages into the message bei...
specified, read the current message. Messag...
included.
~p Print out the message collected so far, pref...
~q Abort the message being sent, copying the me...
~Rstring
Use string as the Reply-To field.
~rfilename
Read the named file into the message.
~sstring
Cause the named string to become the current...
~tname ...
Add the given names to the direct recipient ...
~v Invoke an alternate editor (defined by the V...
will be a screen editor. After you quit the...
~wfilename
Write the message onto the named file.
~|command
Pipe the message through the command as a fi...
original text of the message. The command f...
~:mail-command
Execute the given mail command. Not all com...
~~string
Insert the string of text in the message pre...
double that character in order to send it.
Mail options
Options are controlled via set and unset commands. ...
whether they are set or not; or string, in which cas...
append Causes messages saved in mbox to be appended...
/etc/mail.rc).
ask, asksub
Causes mail to prompt you for the subject of...
will be sent.
askbcc Causes you to be prompted for additional bli...
line indicates your satisfaction with the cu...
askcc Causes you to be prompted for additional car...
indicates your satisfaction with the current...
autoinc
Causes new mail to be automatically incorpor...
each prompt, except that the current message...
autoprint
Causes the delete command to behave like dp;...
debug Setting the binary option debug is the same ...
information useful for debugging mail.
dot The binary option dot causes mail to interpr...
hold This option is used to hold messages in the ...
ignore Causes interrupt signals from your terminal ...
ignoreeof
An option related to dot is ignoreeof which ...
also applies to mail command mode.
keep Setting this option causes mail to truncate ...
keepsave
Messages saved with the save command are not...
sages.
metoo Usually, when a group is expanded that conta...
causes the sender to be included in the group.
noheader
Setting the option noheader is the same as g...
nosave Normally, when you abort a message with two ...
file dead.letter in your home directory. Se...
quiet Suppresses the printing of the version when ...
Replyall
Reverses the sense of reply and Reply comman...
searchheaders
If this option is set, then a message-list s...
string ‘y’ in the header field ‘x’. The str...
“Subject” header field. The form “/to:y” is...
in the “To”, “Cc” or “Bcc” header fields. T...
search for ‘y’ to just the “To:” field.
skipempty
Don’t send messages with an empty body.
verbose
Setting the option verbose is the same as us...
actual delivery of messages is displayed on ...
Option string values
EDITOR Pathname of the text editor to use in ...
LISTER Pathname of the directory lister to us...
MBOX The name of the mbox file. It can be ...
PAGER Pathname of the program to use in the ...
used if this option is not defined.
REPLYTO If set, will be used to initialize the...
SHELL Pathname of the shell to use in the ! ...
defined.
TMPDIR Directory in which temporary files are...
VISUAL Pathname of the text editor to use in ...
crt The valued option crt is used as a thr...
If crt is set without a value, then th...
threshold (see stty(1)).
escape If defined, the first character of thi...
folder The name of the directory to use for s...
to be an absolute pathname; otherwise,...
indentprefix String used by the ~m tilde escape for...
quote the value if it contains spaces ...
record If defined, gives the pathname of the ...
not so saved.
screen Size of window of message headers for z.
sendmail Pathname to an alternative mail delive...
toplines If defined, gives the number of lines ...
lines are printed.
ENVIRONMENT
mail utilizes the HOME, LOGNAME, USER, SHELL, DEAD, ...
variables.
If the MAIL environment variable is set, its value i...
FILES
/var/mail/* post office (unless ove...
~/mbox user’s old mail
~/.mailrc file giving initial mai...
/tmp/R* temporary files
/usr/share/mailx/mail.*help help files
/etc/mail.rc system initialization f...
SEE ALSO
fmt(1), newaliases(1), vacation(1), aliases(5), mail...
"Mail Reference Manual", /usr/share/doc/mailx.
HISTORY
A mail command appeared in Version 3 AT&T UNIX. Thi...
Shoens.
BUGS
There are some flags that are not documented here. ...
Usually, Mail and mailx are just links to mail, whic...
BSD ...
ページ名: