Re: mhastart via cron?

2004-12-29 05:03:00
Jim wrote (to me privately):
Gunnar Hjalmarsson wrote:
Assuming you have a POP account, set the config variables
accordingly and just call the script without arguments. The script
will then check the POP account, update the mbox file if it finds
new messages, and update the archive.

the response I get from my cron daemon is as follows:

Unexpected request; no action taken at
/path/to/ line 329

This line, in my perl editor is
 } else {
               die 'Unexpected request; no action taken';

within the autoupdate subroutine.

I am not sure where I am going wrong?
For information, I am updating from an mbox file - but this is not
being piped from a POP account. The mbox file is being updated by a
separate perl script ( - also GNU)

I see. is designed to also update the mbox file from a POP
account when called from cron. If you don't have a particular reason to
keep using a separate script for appending to the mbox file, the easiest
solution appears to be to have do that as well. Otherwise,
if you want that only updates the archive, you can try this
change at (approx.) line 263ff:

unless ($ENV{HTTP_USER_AGENT}) {
    updatearchive('-add', '-quiet');

Gunnar Hjalmarsson

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