瀏覽代碼

Set subject while pulling email if subject not specified

version-14
Nabin Hait 11 年之前
父節點
當前提交
4da315c497
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      webnotes/utils/email_lib/receive.py

+ 4
- 1
webnotes/utils/email_lib/receive.py 查看文件

@@ -52,7 +52,10 @@ class IncomingMail:
else:
# assume that the encoding is utf-8
self.subject = self.subject.decode("utf-8")

if not self.subject:
self.subject = "No Subject"
def set_content_and_type(self):
self.content, self.content_type = '[Blank Email]', 'text/plain'
if self.text_content:


Loading…
取消
儲存