[imp] Re: Using hook to copy Squirrelmail to Turba on first login?

Jan Schneider jan at horde.org
Thu Apr 21 07:46:03 PDT 2005


Zitat von Josh Trutwin <josh at trutwins.homeip.net>:

> On Thu, 21 Apr 2005 10:08:06 +0200
> Jan Schneider <jan at horde.org> wrote:
>
>> > Is there an elegant way to make a maintenance task conditional?  I
>> > was going to try to query the Squirrelmail db to see if there were
>> > any addressbook entries, if not, skip the maintenance task.  I had
>> > some conditional code in the describeMaintenance() method of the
>> > task, but this is too late it seems.
>>
>> No, I don't think this is possible out-of-the-box at the moment.
>
> Ok, I will just customize the message to let them know to press "skip
> maintenance" if there are no entries to import.

This task type should not allow to be skipped. Remember, it's called 
"TOS". But your script should be smart enough to not cause any errors 
when run on an empty Squirrelmail address book.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the imp mailing list