[email protected] writes:
Hi,

> Maybe this is "solved" by the instructions in DSA-3104:
>   ... use the "--" separator before the email addresses ...

Yes, I guess you need to use the -- option:

 perl -e 'print "hello\n~!ls>file\nbye\n"' | mailx -- recip1 -I recip2

So that mailx fails and does not execute the ls command:
  send-mail: fatal: alias initialization mode requires no recipient
  Can't send mail: sendmail process failed with error code 75


> Noting that the -- option, or the expandaddr setting, do not seem
> documented in the man page.

The expandaddr is documented (inside `Recipient address specification'
in the man page), but you are right that `--' is not.

Regards,
robert


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to