On Thu, 2004-04-29 at 07:25, Ilja Booij wrote:
> On Thu, 2004-04-29 at 14:59, [EMAIL PROTECTED] wrote:
> > Hello,
> > 
> > I would appreciate some hints, info, etc regarding
> > mailboxes permissions (IMAP). 
> > Is it possible to create mailboxes which cannot be deleted
> > from the database with the DELETE command from a mail client
> > (Eudora, Bat,NS, OE, etc)? Like the INBOX mailbox.
> > 
> > I would like to set up 6 default mailboxes which should be
> > always present / visivble for the users  and if some user
> > tried to delete any of these 6 mailboxes error to be returned.
> > 
> > The INBOX, as per rfc, cannot be deleted, but the checks for
> > this are hardcoded into the source and are valid only for
> > the INBOX mailbox. 
> > 
> > Should I  add my 6 boxes to the source and recompile or
> > there is another more intelligent approach?
> > 
> > Probably some of the flags in the "mailboxes" table in the
> > database?
> > 
> > Regarding: IMAP mail management /retrieval 
> >            dbmail 1.2.6 - 1.2.7
> 
> Indeed, it's hardcoded. I don't think there's anything on non-deletable
> mailboxes, except for INBOX, in the RFC, so we're not likely to
> implement it.
> 
> Ilja
> 
> 
> _______________________________________________
> Dbmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail

You can create a table with the default mailboxes name 
and make it a foreign key  on mailboxes

foreign key ( name ) references  yourtable( fieldname )

so popualte yourtable with INBOX and the mailboxes name you need

when you create a user add those mailboxes

With the foreign key the user won't be able to delete any mailbox that
is in   yourtable


Dirty but I think can work 


-- 
 ,''`.  Leonel Nunez
: :' :  http://enelserver.com
`. `'   DEBIAN GNU/LINUX
  `-    A REAL FREE OS


Reply via email to