Chen Jian

导航

 

插入代码:\addons\mail\mail_mail.py #309 line

this = self.pool.get('res.users').browse(cr, uid, uid, context=context)
if tools.email_split(email.get('email_to')[0])[0].split('@')[1]==this.alias_domain and tools.email_split(mail.email_from)[0].split('@')[1]!=this.alias_domain:
    return True

插入代码:\addons\mail\mail_followers.py #177 line

this = self.pool.get('res.users').browse(cr, uid, uid, context=context)
if tools.email_split(email_from)[0].split('@')[1]==this.alias_domain and msg.type=='email':
    return False

posted on 2014-01-15 19:51  Chen Jian  阅读(219)  评论(0编辑  收藏  举报