mharc-users

Re: New feature?...maybe?

2002-08-07 13:26:01
On August 7, 2002 at 14:38, Sean M Alderman wrote:

      What do you think about adding a feature to Mharc which would allow for
procmail rules to be added which would forward/send certain email to an
Admin?  For instance, I've had a problem with cron for the past few
weeks and cron sends the mharc user emails which (apparently) get dumped
when I run readmail by hand.  I thought it might be "cool" to let local
system emails be sent onto another user, or an admin email address from
lib/config.sh or something along that line.

First, messages that do not match a list should show up in the
.catch archive.

Second, the template crontab provided with mharc redirects everything
to log/cron.log.  You should check that to see if any errors or warnings
were generated by any mharc scripts.  Since stdout and stderr are
redirected, nothing should be mailed from cron.  If you want a
more robust log (since the capturing of program output does not
give you details like date/time), you may want to look at using
the logcmd script that is included in the devtools sub-project
of MHonArc, <http://www.mhonarc.org/release/devtools/latest/bin/logcmd>.

Now, if cron itself had problem, this is outside the scope of mharc.
If any messages were sent to the mharc user you set up, the .catch
archive should have them.

If you would like to have admin mail not even processed by mharc,
I suggest creating your own .procmailrc file to control the initial
delivery of mail to the account.  Remember, in later version of mharc,
mharc's main procmailrc is now called "procmailrc.mharc".  This is
so it will not conflict with any .procmailrc in the home directory
of the archiving account.

In the .procmailrc, you can set up rules to forward messages that
match whatever criteria you want and have all other messages delivered
normally to the account's mail spool file which will then get processed
by mharc via cron.

Also, in the latest version of mharc, you can actually change what
happens to messages that reach the end of procmailrc.mharc.  See the
NEWS file for more information.  The following is worth noting
from the mk-procmailrc manpage:

    It is normal for messages to make it to the end since the list
    matching rules create copies of the message during filtering. This
    typically will be apparent by the ""Folder: /dev/null"" destinations
    in the procmail log. Message copying is done inorder to properly
    archive a message that has been cross-posted to multiple lists that
    are being archived. Exceptions to the message copying are for lists
    with the "Final" option set to 1, for CVS commit archives, or for
    messages that are captured by the catch archive.

If you can verify that a message shows up in the final destination
spool that does not show up in any archive (including the catch
archive), then please post to the list with details.

--ewh

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHARC-USERS

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