Commit 2bcc0d80 authored by Yusei Tahara's avatar Yusei Tahara

2008-07-02 yusei

* when ingest email message, find sender from person document first and organisation later.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22229 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 379c4d5e
...@@ -75,7 +75,9 @@ for recipient in text.split(\',\'):\n ...@@ -75,7 +75,9 @@ for recipient in text.split(\',\'):\n
recipient = recipient[recipient.find(\'<\') + 1:]\n recipient = recipient[recipient.find(\'<\') + 1:]\n
recipient = recipient[:recipient.find(\'>\')]\n recipient = recipient[:recipient.find(\'>\')]\n
if recipient:\n if recipient:\n
email = getResultValue(url_string=recipient, portal_type=\'Email\', parent_portal_type=(\'Person\', \'Organisation\'))\n email = getResultValue(url_string=recipient, portal_type=\'Email\', parent_portal_type=\'Person\')\n
if email is None:\n
email = getResultValue(url_string=recipient, portal_type=\'Email\', parent_portal_type=\'Organisation\')\n
if email is not None:\n if email is not None:\n
result.append(email.getParentValue())\n result.append(email.getParentValue())\n
return result\n return result\n
......
2008-07-02 yusei
* when ingest email message, find sender from person document first and organisation later.
2008-06-27 yusei 2008-06-27 yusei
* Start to develop version 5.2. * Start to develop version 5.2.
......
274 275
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment