Commit b3bd82f7 authored by Ivan Tyagov's avatar Ivan Tyagov

Return number of messages.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30516 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 22d55a7b
...@@ -64,12 +64,14 @@ ...@@ -64,12 +64,14 @@
if getattr(context.MailHost, "getMessageList", None) is None:\n if getattr(context.MailHost, "getMessageList", None) is None:\n
return "ERROR: MailHost is not a DummyMailHost"\n return "ERROR: MailHost is not a DummyMailHost"\n
\n \n
for mail in context.MailHost.getMessageList():\n message_list = context.MailHost.getMessageList()\n
for mail in message_list:\n
for part in mail:\n for part in mail:\n
print part\n print part\n
print "="*79\n print "="*79\n
print "" \n print "" \n
\n \n
print "Total messages: %s" %len(message_list)\n
return printed\n return printed\n
</string> </value> </string> </value>
</item> </item>
...@@ -113,9 +115,11 @@ return printed\n ...@@ -113,9 +115,11 @@ return printed\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>None</string> <string>None</string>
<string>message_list</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>mail</string> <string>mail</string>
<string>part</string> <string>part</string>
<string>len</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
15 16
\ 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