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
No related merge requests found
......@@ -64,12 +64,14 @@
if getattr(context.MailHost, "getMessageList", None) is None:\n
return "ERROR: MailHost is not a DummyMailHost"\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
print part\n
print "="*79\n
print "" \n
\n
\n
print "Total messages: %s" %len(message_list)\n
return printed\n
</string> </value>
</item>
......@@ -113,9 +115,11 @@ return printed\n
<string>_getattr_</string>
<string>context</string>
<string>None</string>
<string>message_list</string>
<string>_getiter_</string>
<string>mail</string>
<string>part</string>
<string>len</string>
</tuple>
</value>
</item>
......
15
\ No newline at end of file
16
\ 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