Package twisted :: Package mail :: Module maildir :: Class MaildirDirdbmDomain
[show private | hide private]
[frames | no frames]

Class MaildirDirdbmDomain

AbstractMaildirDomain --+
                        |
                       MaildirDirdbmDomain


A Maildir Domain where membership is checked by a dirdbm file
Method Summary
  __init__(self, service, root, postmaster)
Initialize
  addUser(self, user, password)
  exists(self, user)
Check for existence of user in the domain (inherited from AbstractMaildirDomain)
  getCredentialsCheckers(self)
  requestAvatar(self, avatarId, mind, *interfaces)
  startMessage(self, user)
Save a message for a given user (inherited from AbstractMaildirDomain)
  userDirectory(self, name)
Get the directory for a user

Class Variable Summary
tuple __implements__
NoneType portal

Method Details

__init__(self, service, root, postmaster=0)
(Constructor)

Initialize

The first argument is where the Domain directory is rooted. The second is whether non-existing addresses are simply forwarded to postmaster instead of outright bounce

The directory structure of a MailddirDirdbmDomain is:

/passwd <-- a dirdbm file /USER/{cur,new,del} <-- each user has these three directories

userDirectory(self, name)

Get the directory for a user

If the user exists in the dirdbm file, return the directory os.path.join(root, name), creating it if necessary. Otherwise, returns postmaster's mailbox instead if bounces go to postmaster, otherwise return None

Class Variable Details

__implements__

Type:
tuple
Value:
(<class twisted.cred.portal.IRealm at 0x84d83d4>,)                     

portal

Type:
NoneType
Value:
None                                                                   

Generated by Epydoc 1.1 on Fri Jun 27 03:45:35 2003 http://epydoc.sf.net