I have found the source of the problem: the script failed when expiring messages in /var/mail/... but not is mailboxes in my $HOME directory; so, it was a permissions issue which i've now resolved.
Sorry to have pestered you David, especially there was no real problem, just a simple matter of looking more closely at the file permissions. Best wishes, Jamie