mharc-users

procmailrc conflict (was private Re: monthly archives)

2002-07-22 09:19:40
On July 22, 2002 at 13:45, someone wrote in private mail:

"bin/filter-spool &&  bin/web-archive"

Now, because all mail is processed by procmail (procmail
as a mailer in sendmail.cf) filter-spool returns false
and web-archive is never called.

Maibe you could point this issue in the docs for people
who use procmail as local_mailer in sendmail.cf? Maibe
you point in out already somewhere but I missed it, in
that case my apologies.

Good catch.

I am not sure I like this behavior since it increases the
chance of a race condition between mail being delivered into
the raw mail archives and mhonarc trying to read the raw mail
when updating the html archives.

One approach is to change the name of ".procmailrc" to something
else to avoid the condition you have encountered.  I think I
will do this.  I will probably make the filename configurable
in lib/config.sh for user flexibility.

The current way to avoid the problem, if one considers it that,
is to not have mharc installed in the home directory of the
archiving account.

Side note: I have considered removing the dependency on procmail
entirely, but I do not look forward to trying to replicate the
robust file locking capabilities of procmail, mainly with respect
to the mail spool file.

--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>
  • procmailrc conflict (was private Re: monthly archives), Earl Hood <=