>From: Shaun Gibson <[EMAIL PROTECTED]>
>
>Hi there
>
> I need to do the following :
>
> - lock a mailbox (without deleting it or the mail contained in it)
> - if a user tries to access a mailbox locked like this all they get back
> when trying to collect mail is a preset 'call support to re-enable this
> mailbox'.
>
> Suggestions anyone ?
If you use maildirs, try this:
cd $USER_HOME
chmod +t .
# safe editing
mv Maildir LOCKED.Maildir
mv .qmail LOCKED.qmail
echo './LOCKED.Maildir/' > .qmail
# incoming messages will be delivered
maildirmake Maildir
cp $MyStandardCallSupportMessage \
Maildir/new/`perl -e 'printf "%d",time'`.`uname -n`
# first POP3 connection get the standard "expired - call support" message
chown -R $USER_UID .qmail Maildir
chgrp -R $USER_GID .qmail Maildir
chmod -t .
# end of editing
--
Tullio Andreatta Logicom s.r.l. - Via L.Gambara, 55 - I-25100 Brescia ITALY
[EMAIL PROTECTED] http://www.logicom.it/