sync support emails only when sync_support_mails is set to 1

This commit is contained in:
Anand Doshi 2012-05-14 18:02:21 +05:30
parent 4602ef39e3
commit 4924c96380

View File

@ -171,5 +171,6 @@ def get_support_mails():
"""
Gets new emails from support inbox and updates / creates Support Ticket records
"""
SupportMailbox().get_messages()
import webnotes
if webnotes.conn.get_value('Email Settings', None, 'sync_support_mails'):
SupportMailbox().get_messages()