mailbox
inpos 2016-06-08 22:34:54 +03:00
parent d74db6bde5
commit c98032ebe8
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ from twisted.internet import protocol, ssl
from twisted.mail import imap4
from serpent.config import conf
from serpent.imap.mailbox import IMAPMailbox
from serpent.imap.mbox import IMAPMailbox
from serpent.misc import IMAP_HDELIM, IMAP_MBOX_REG, IMAP_ACC_CONN_NUM
from shutil import rmtree, move

View File

@ -60,9 +60,9 @@ class SmtpFileStore(object):
class MailDirStore(object):
def __init__(self):
from serpent.imap import mailbox
from serpent.imap import mbox
from mailbox import MaildirMessage
self.mbox = mailbox
self.mbox = mbox
self.mbox.MaildirMessage = MaildirMessage
def deliver(self, user, message):
mdir = os.path.join(conf.app_dir, conf.maildir_user_path % user)

View File

@ -1,4 +1,4 @@
from mailbox import Maildir, MaildirMessage
from mailbox import Maildir
import os
class ExtendedMaildir(Maildir):