From nobody@FreeBSD.org  Mon Feb 26 16:20:33 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 7903816A401
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Feb 2007 16:20:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 6A0FE13C481
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Feb 2007 16:20:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l1QGKWNa035935
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Feb 2007 16:20:33 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l1QGKWE5035895;
	Mon, 26 Feb 2007 16:20:32 GMT
	(envelope-from nobody)
Message-Id: <200702261620.l1QGKWE5035895@www.freebsd.org>
Date: Mon, 26 Feb 2007 16:20:32 GMT
From: Andrea Brancatelli<andrea@brancatelli.it>
To: freebsd-gnats-submit@FreeBSD.org
Subject: "mail" command not parsing sendmail parameters
X-Send-Pr-Version: www-3.0

>Number:         109569
>Category:       bin
>Synopsis:       mail(1) command not parsing sendmail parameters
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 26 16:30:05 GMT 2007
>Closed-Date:    
>Last-Modified:  Sun Jan 20 04:08:10 UTC 2008
>Originator:     Andrea Brancatelli
>Release:        6.0-RELEASE
>Organization:
>Environment:
FreeBSD cupido.sara.it 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
the man page for mail reports that by some extra arguments to sendmail
can be passed from mail:

NAME
     mail, Mail, mailx -- send and receive mail

SYNOPSIS
     mail [-EiInv] [-s subject] [-c cc-addr] [-b bcc-addr] [-F] to-addr ...
          [-sendmail-option ...]
     mail [-EHiInNv] [-F] -f [name]
     mail [-EHiInNv] [-F] [-u user]
     mail -e [-f name]
     mail [-H]

Apart from the man page being wrong (it should be -- -sendmail-option),
the problem is that FreeBSD mail just ignore the latest parameter!

Actually looking at
http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/mail/main.c?rev=1.15&content-type=text/x-cvsweb-markup
I had the idea that the code to pass stuff to sendmail is totally missing!?!


>How-To-Repeat:
just send a mail like

mail someone@somewhere.it -- -r ovveride@return.path
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
