At 3:10 PM +1200 4/29/10, John Bruin wrote:
I have inherited a Perl script which sends and parses email. I am having
trouble trying to figure out what the "-oi" and "-oem" arguments do in the
sub below. Can anyone help?

Thanks
John

sub mail(*) {
        my $top = shift;
        open(MAIL, "| $sendmail -t -oi -oem") or die "open: $!";
        $top->print(\*MAIL);
        close MAIL;
}

I did a 'man sendmail' on my Unix-based system and came up with this explanation:

       -oi    When reading a message from standard input, don't treat  a  line
              with only a . character as the end of input.

but, alas, no explanation for -oem. Try the same command on your system, or submit the query 'sendmail command line options' to your favorite search engine

Good luck!


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to