Table of Contents

Class: MaildirDirdbmDomain Twisted-0.17.4/twisted/mail/maildir.py

A Maildir Domain where membership is checked by a dirdbm file

Base Classes   
AbstractMaildirDomain
Methods   
__init__
authenticateUserAPOP
userDirectory
  __init__ 
__init__ (
        self,
        root,
        postmaster=0,
        )

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/inbox/{cur,new,del} <-- each user has these three directories

  authenticateUserAPOP 
authenticateUserAPOP (
        self,
        user,
        magic,
        digest,
        domain,
        )

Return Mailbox to valid APOP authentications

Check the credentials, returning None if they are invalid or a MaildirMailbox if they are valid.

  userDirectory 
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, inbox), creating it if necessary. Otherwise, returns postmaster's mailbox instead if bounces go to postmaster, otherwise return None


Table of Contents

This document was automatically generated on Sat Apr 20 01:30:55 2002 by HappyDoc version 2.0