email receive bugfix

This commit is contained in:
Rushabh Mehta 2013-02-06 20:31:08 +05:30
parent 856eb53b22
commit 14464473da
3 changed files with 6 additions and 6 deletions

View File

@ -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 \

View File

@ -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 \

View File

@ -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,