logging $! with $r->log_error

2010-12-11 Thread Mark Copper
Hi all, I stole this snippet years ago (and probably modified it improperly) only to learn yesterday it has a serious problem: unless(open MAIL, "| /usr/sbin/sendmail -t -i -F'...' -f'...''"){ $main::r->log_error("Couldn't open mail: $!"); return DECLINED; } namely this error: [Th

Re: logging $! with $r->log_error

2010-12-12 Thread Torsten Förtsch
On Friday, December 10, 2010 17:59:23 Mark Copper wrote: >unless(open MAIL, "| /usr/sbin/sendmail -t -i -F'...' -f'...''"){ >$main::r->log_error("Couldn't open mail: $!"); >return DECLINED; >} > > namely this error: >[Thu Dec 09 16:32:44 2010] [error] [client ...] Can't call me