lib/vdomain/vdomain.h
changeset 2 b3afb9f1e801
parent 0 6f7a81934006
equal deleted inserted replaced
1:30113bfbe723 2:b3afb9f1e801
    27   vpwtable* table();
    27   vpwtable* table();
    28   
    28   
    29   mystring userdir(mystring username) const;
    29   mystring userdir(mystring username) const;
    30 
    30 
    31   // Virtual user manipulation functions
    31   // Virtual user manipulation functions
    32   vpwentry* lookup(mystring name, bool nodefault);
    32   vpwentry* lookup(mystring name);
    33   bool exists(mystring name);
    33   bool exists(mystring name);
    34   
    34   
    35   response set(const vpwentry*, bool onlyadd, mystring maildir = "");
    35   response set(const vpwentry*, bool onlyadd);
    36   response chattr(mystring user, unsigned attr, mystring newval);
    36   response chattr(mystring user, unsigned attr, mystring newval);
    37   response chattr(const vpwentry*, unsigned attr, mystring newval);
    37   response chattr(const vpwentry*, unsigned attr, mystring newval);
    38   response deluser(mystring name, bool del_mailbox);
    38   response deluser(mystring name, bool del_mailbox);
    39 
    39 
    40   // Virtual user validation functions
    40   // Virtual user validation functions
    49   static const unsigned ATTR_MSGSIZE = 5;
    49   static const unsigned ATTR_MSGSIZE = 5;
    50   static const unsigned ATTR_MSGCOUNT = 6;
    50   static const unsigned ATTR_MSGCOUNT = 6;
    51   static const unsigned ATTR_EXPIRY = 7;
    51   static const unsigned ATTR_EXPIRY = 7;
    52   static const unsigned ATTR_MAILBOX_ENABLED = 8;
    52   static const unsigned ATTR_MAILBOX_ENABLED = 8;
    53   static const unsigned ATTR_PERSONAL = 9;
    53   static const unsigned ATTR_PERSONAL = 9;
       
    54   static const unsigned ATTR_HAS_MAILBOX = 10;
    54 };
    55 };
    55 
    56 
    56 #endif // VMAILMGR__VDOMAIN__H__
    57 #endif // VMAILMGR__VDOMAIN__H__