summaryrefslogtreecommitdiff
path: root/examples/python/mimetest.py
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2010-04-08 17:34:49 +0200
committerWojciech Polak <polak@gnu.org>2010-04-08 17:34:49 +0200
commit1a374c8cbea21dabe2f7db123a559576531238db (patch)
tree9f73937ae604b2ba5ea090a54422953254187847 /examples/python/mimetest.py
parentd8ab03b03566831cb5dfe8caf4a1e1b77106a342 (diff)
downloadmailutils-1a374c8cbea21dabe2f7db123a559576531238db.tar.gz
mailutils-1a374c8cbea21dabe2f7db123a559576531238db.tar.bz2
Reflect recent RFC compatibility changes in Python/C++.
* examples/python/mimetest.py: Update. * include/mailutils/cpp/message.h (get_attachment_name): Overload. * libmu_cpp/message.cc (Message::get_attachment_name): Overload. * python/libmu_py/message.c (api_message_get_attachment_name): Update. * python/mailutils/message.py (Message.get_attachment_name): Add optional charset parameter. Return (name, lang) tuple.
Diffstat (limited to 'examples/python/mimetest.py')
-rw-r--r--examples/python/mimetest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/mimetest.py b/examples/python/mimetest.py
index c14d72789..471a05211 100644
--- a/examples/python/mimetest.py
+++ b/examples/python/mimetest.py
@@ -90,7 +90,7 @@ def message_display_parts (msg, indent):
else:
# Save the attachements.
try:
- fname = part.get_attachment_name ()
+ fname, lang = part.get_attachment_name ()
except:
fname = util.tempname ()

Return to:

Send suggestions and report system problems to the System administrator.