Bug 234284 - mail(1): add sender-envelope / return-path option (-r)
Summary: mail(1): add sender-envelope / return-path option (-r)
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2018-12-23 00:29 UTC by Ben RUBSON
Modified: 2020-07-09 06:54 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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.