Troy Frericks wrote:
As I'm a novice with perl, can somebody tell me what the
"close(MIME)"
in /var/qmail/bin/qmail-scanner-queue.pl actually does?. I need to track down all of the files it is referencing.
Here are both the 'open' and the 'close' for reference (mimeunpacker_binary is reformime)...
==
open(MIME,"$mimeunpacker_binary <$scandir/$wmaildir/new/$file_id|")
||&tempfail("cannot call mimeunpacker - $!");
close(MIME)||&tempfail("cannot close mimeunpacker - $!");
==
the "open" (*1) line reads the output of the piped cmd
"$mimeunpacker_binary <$scandir/$wmaildir/new/$file_id|"
into the opened I/O filehandle named "MIME".
That MIME-named pipe is trying to get closed (*2) in order to be examined, but the close of the pipe is failing.
Perhaps modifying:
close(MIME)||&tempfail("cannot close mimeunpacker - $! - $?");
might reveal something helpful (e.g. exit status)?
1- http://www.perldoc.com/perl5.8.0/pod/func/open.html 2- http://www.perldoc.com/perl5.8.0/pod/func/close.html
Have you tried running the "$mimeunpacker_binary <$scandir/$wmaildir/new/$file_id" cmd by hand on the mail file?
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
