瀏覽代碼

fixes frappe/erpnext#8606 (#3322)

* fixes frappe/erpnext#8606

* fixes frappe/erpnext#8606
version-14
tundebabzy 8 年之前
committed by Rushabh Mehta
父節點
當前提交
c8d8baeaff
共有 1 個檔案被更改,包括 7 行新增7 行删除
  1. +7
    -7
      frappe/email/receive.py

+ 7
- 7
frappe/email/receive.py 查看文件

@@ -197,13 +197,13 @@ class EmailServer:

if not uid_validity or uid_validity != current_uid_validity:
# uidvalidity changed & all email uids are reindexed by server
frappe.db.sql("""update `tabCommunication` set uid=-1 where communication_medium='Email'
and email_account='{email_account}'""".format(email_account=self.settings.email_account))
frappe.db.sql("""update `tabEmail Account` set uidvalidity='{uidvalidity}', uidnext={uidnext} where
name='{email_account}'""".format(
uidvalidity=current_uid_validity,
uidnext=uidnext,
email_account=self.settings.email_account)
frappe.db.sql(
"""update `tabCommunication` set uid=-1 where communication_medium='Email'
and email_account=%s""", (self.settings.email_account,)
)
frappe.db.sql(
"""update `tabEmail Account` set uidvalidity=%s, uidnext=%s where
name=%s""", (current_uid_validity, uidnext, self.settings.email_account)
)

# uid validity not found pulling emails for first time


Loading…
取消
儲存