Bug 473788 - mail -s option not recognized
Summary: mail -s option not recognized
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: mailx
Version: 10
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Ivana Varekova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-30 16:01 UTC by Henrique Martins
Modified: 2008-12-01 15:22 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-12-01 13:29:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Henrique Martins 2008-11-30 16:01:56 UTC
Description of problem:
mail -s <subject> 
doesnt' work, spitting out:

send-mail: invalid option -- 's'
send-mail: invalid option -- 's'
send-mail: fatal: usage: send-mail [options]

Version-Release number of selected component (if applicable):
mailx-12.4-1.fc10.i386

How reproducible:

Always

Steps to Reproduce:
Run:
  date | /bin/mailx root -s test
  
Actual results:
Error message above

Expected results:
Mail sent

Additional info:
It would be nicer if the error message said "mailx" insted of "send-mail".
It's also curious that the invalid option line is printed twice.

Comment 1 Ivana Varekova 2008-12-01 10:04:48 UTC
Hello, 
the address to whom the message is sent have to be the last option so you have to use "date | /bin/mailx -s test root".

Comment 2 Dmitry Butskoy 2008-12-01 13:29:15 UTC
It is a new implementation of the "mailx" command. Now it intertpetes its command line in well-known standard way: "options" should be before "arguments". The old behaviour of the previous mailx implementation seems to never be supported.

Sorry, but you have to change your scripts (if any) and habits.

Comment 3 Henrique Martins 2008-12-01 15:22:45 UTC
It's not my script, but I'll fix it and file the bug upstream in another bugzilla.  As that script hasn't changed in a while, it had to be a change in mailx, as the old one accepted it as posted.
Thanks


Note You need to log in before you can comment on or make changes to this bug.