Figures, just after I gigged one of my programmers for using
/usr/ucb/Mail for just this very reason, I got bit by it.
Then approving a bounced message, approve has to quote all lines that
being with ~ in the message to be approved. Or it shouldn't use
/usr/ucb/Mail (/usr/bin/mailx) and should send the message via
sendmail directly. The offending line is:
open(MAIL, "|/usr/ucb/mail -s \"\" $post_to") || die("open(\"|mail ...\"): $!");
at line 196. Looks at a fast grep like approve is the only problem
program. I think the following patch should work. I took the quoting
solution. Anybody care to try it out?
*** /home/rouilj/bin/mapprove Tue Sep 5 18:51:51 1995
--- /tools/majordomo/bin/approve Mon Jun 26 14:24:25 1995
*** 204,210 ****
$from_skipped = 1;
- $_ =~ s/\~/\~\~/ if /^\~/;
print MAIL $_;
--- 204,209 ----
The security implications of this should be obvious.
Senior Systems Administrator IDD Information Services
firstname.lastname@example.org Waltham, MA (617) 890-7227 x337
(617) 487-3937 (Direct)
Senior Systems Consultant (SERL Project) University of Massachusetts at Boston
email@example.com (preferred) Boston, MA, (617) 287-6480
My employers don't acknowledge my existence much less my opinions.