email receive bugfix
This commit is contained in:
parent
856eb53b22
commit
14464473da
@ -21,8 +21,8 @@ from webnotes.utils.email_lib.receive import POP3Mailbox
|
||||
from core.doctype.communication.communication import make
|
||||
|
||||
class JobsMailbox(POP3Mailbox):
|
||||
def setup(self):
|
||||
self.settings = webnotes.doc("Jobs Email Settings", "Jobs Email Settings")
|
||||
def setup(self, args=None):
|
||||
self.settings = args or webnotes.doc("Jobs Email Settings", "Jobs Email Settings")
|
||||
|
||||
def check_mails(self):
|
||||
return webnotes.conn.sql("select user from tabSessions where \
|
||||
|
@ -21,8 +21,8 @@ from webnotes.utils.email_lib.receive import POP3Mailbox
|
||||
from core.doctype.communication.communication import make
|
||||
|
||||
class SalesMailbox(POP3Mailbox):
|
||||
def setup(self):
|
||||
self.settings = webnotes.doc("Sales Email Settings", "Sales Email Settings")
|
||||
def setup(self, args=None):
|
||||
self.settings = args or webnotes.doc("Sales Email Settings", "Sales Email Settings")
|
||||
|
||||
def check_mails(self):
|
||||
return webnotes.conn.sql("select user from tabSessions where \
|
||||
|
@ -22,9 +22,9 @@ from webnotes.utils.email_lib.receive import POP3Mailbox
|
||||
from core.doctype.communication.communication import make
|
||||
|
||||
class SupportMailbox(POP3Mailbox):
|
||||
def setup(self):
|
||||
def setup(self, args=None):
|
||||
self.email_settings = webnotes.doc("Email Settings", "Email Settings")
|
||||
self.settings = webnotes._dict({
|
||||
self.settings = args or webnotes._dict({
|
||||
"use_ssl": self.email_settings.support_use_ssl,
|
||||
"host": self.email_settings.support_host,
|
||||
"username": self.email_settings.support_username,
|
||||
|
Loading…
x
Reference in New Issue
Block a user