Bug 234284

Summary: mail(1): add sender-envelope / return-path option (-r)
Product: Base System Reporter: Ben RUBSON <ben.rubson>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People    
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Ben RUBSON 2018-12-23 00:29:44 UTC

Would be nice to add an option to the mail command to be able to define the sender-envelope / the return-path mail address.

For example, GNU mail.mailutils has -r :
    -r, --return-address=ADDRESS
        use address as the return address when sending mail

FreeBSD mail does not use -r yet, so it could be chosen for this purpose.

Thank you very much,

Best regards,

Comment 1 Ben RUBSON 2018-12-23 15:27:23 UTC
BSD mailx also has -r :
-r from-addr
    Use from-addr as the from address in the message and envelope.
    Overrides any from options in the startup files.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2020-07-09 06:54:29 UTC
Fix incorrect assignment.