-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIMAPService.py
More file actions
30 lines (23 loc) · 841 Bytes
/
IMAPService.py
File metadata and controls
30 lines (23 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import socket
# Minimal IMAPService placeholder to prepare for future implementation.
# This file intentionally keeps a tiny, importable skeleton so other modules
# can reference IMAPService during transition without runtime import errors.
loginfo = None
conf = None
def initModule(log, cfg):
global loginfo, conf
loginfo = log
conf = cfg
try:
loginfo.write('[IMAP] IMAPService placeholder initialized')
except Exception:
pass
class IMAPService:
def __init__(self, bindIP, port, userGroup, ssl=False):
self.bindIP = bindIP
self.port = port
self.userGroup = userGroup
self.useSSL = ssl
# Not implemented: this is a placeholder for future IMAP implementation.
def startListen(self):
raise NotImplementedError('IMAPService not implemented yet')