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.)
SunPS Web Infrastructure Team
## Specify a package to protect names from MHonArc.
## MHonArc uses package main for most stuff; a minor
## Edit to point to installed mhonarc.
$MHonArc_base = "/home/sunps/Apps/MHonArc2.4.6";
$MHonArc = "$MHonArc_base/mhonarc";
## Define ARGV (ARGV is same across all packages).
## Edit options as required/desired.
@ARGV = ("-add",
## Just require mhonarc, this prevents the overhead of a
## fork/exec. We reset the namespace to main just in-case.