mhonarc-users

Libraries

2000-07-05 20:05:47
I've inherited a MHonArc installation (v. 2.0.1) that works but I want
to upgrade to the current version (v. 2.4.6).

The v. 2.0.1 installation uses an entry in the /etc/mail/aliases file to
pipe incoming messages directly to a wrapper script <below> that adds
the command-line variables. I've modified the wrapper script <below> to
call v. 2.4.6 instead of v. 2.0.1 but all this does is create errors:

   ----- Transcript of session follows -----
/home/sunps/Apps/MHonArc2.4.6/mhonarc did not return a true value at 
/home/sunps/Apps/MHonArc2.4.6/webnewmail-eric line 31.
554 "|/home/sunps/Apps/MHonArc2.4.6/webnewmail-eric"... unknown mailer error 2

Line 31 is the "require" statement, but I haven't added any MIME filters
- I'm using the library files included with the distribution. (Yes, I
read the Appendix section about Perl messages.)

Please help!

Eric P.
SunPS Web Infrastructure Team

=========================begin
/MHonArc2.4.6/webnewmail-eric=============================
#!/usr/local/bin/perl -w
# webnewmail-eric

##      Specify a package to protect names from MHonArc.
##      MHonArc uses package main for most stuff; a minor
##      inconvenience.

package webnewmail;

##      Edit to point to installed mhonarc.

$MHonArc_base = "/home/sunps/Apps/MHonArc2.4.6";
push(@INC, "$MHonArc_base/lib");
$MHonArc = "$MHonArc_base/mhonarc";

##      Define ARGV (ARGV is same across all packages).
##      Edit options as required/desired.

@ARGV = ("-add",
         "-quiet",
         "-reverse",
         "-treverse",
         "-umask","112",
         "-rcfile", "/home/sunps/Apps/MHonArc2.4.6/rcfile-eric",
         "-outdir", "/home/sunps/Servers/Production/docs/Newsgroup/Eric1");

##      Just require mhonarc, this prevents the overhead of a
##      fork/exec.  We reset the namespace to main just in-case.

package main;
require $webnewmail::MHonArc;

# EOF
=========================end
/MHonArc2.4.6/webnewmail-eric=============================

<Prev in Thread] Current Thread [Next in Thread>