私は次のシステムを使用しています。
$ uname -a
FreeBSD X 9.2-RELEASE-p17 FreeBSD 9.2-RELEASE-p17 #0 r282430: Mon May 4 13:59:58 PDT 2015 root@X:/usr/obj/usr/src/sys/R610 amd64
$ pkg info mailx
mailx-0.5_1
Name : mailx
Version : 0.5_1
Installed on : Fri May 15 11:16:36 2015 EDT
Origin : mail/mailx
Architecture : freebsd:9:x86:64
Prefix : /usr/local
Categories : mail
Licenses :
Maintainer : [email protected]
WWW : UNKNOWN
Comment : Mail command with mailx extensions
Annotations :
repo_type : binary
repository : FreeBSD
Flat size : 104KiB
Description :
Mail command with mailx extensions.
Mailx command is based on BSD mail command, but it also provides some
enhanced features such as:
o Edit header information.
o Use pager program to display long message.
o Add pipe (|) command. You can pass the mail message to the shell command by
using this feature.
o Add Save, Copy command.
o Add askcc, askbcc command. The mailx program ask you Cc: and Bcc: at the
beggining.
o Add hsubject command. This is similar to subject command, but it only
displays Subject: headers.
o Add tilda escape command.
See also the files in ${PREFIX}/share/doc/mailx directory.
$
mailx
コマンドラインでonを使用してFROMアドレスを変更するには?FreeBSD
ベストアンサー1
FreeBSD(オペレーティングシステム)にmailxプログラムはありません。しかし、Berkeley Mailから派生したmailxといういくつかのプログラムがあります。一部はFreeBSDに移植され、パッケージとして提供されました。
OPは次のパッケージを使用しています。
mailx-0.5_1
このパッケージはかなり古いPerlスクリプトです。
むしろ、Heirloomバージョンのmailxを使用することをお勧めします。
ガボ-mailx-12.4_7
まだ古いですが、機能ははるかに豊富です。 @Peschkeが正しく指摘したように、FROMアドレスを設定するための「-r」オプションがあります。
mailx -r [email protected] ...