diff --git a/weboob/backends/aum/backend.py b/weboob/backends/aum/backend.py index 8afab54b..c56f006c 100644 --- a/weboob/backends/aum/backend.py +++ b/weboob/backends/aum/backend.py @@ -97,6 +97,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh if not contact.get_id(): continue thread = Thread(contact.get_id()) + thread.title = 'Discussion with %s' % contact.get_name() yield thread def get_thread(self, id, profiles=None): @@ -141,6 +142,9 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh else: flags |= Message.IS_ACCUSED + if not thread.title: + thread.title = mail.title + msg = Message(thread=thread, id=mail.message_id, title=mail.title, @@ -192,9 +196,10 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh profile = self.browser.get_profile(ids[new_baskets]) thread = Thread(profile.get_id()) + thread.title = 'Basket of %s' % profile.get_name() thread.root = Message(thread=thread, id=self.MAGIC_ID_BASKET, - title='Basket of %s' % profile.get_name(), + title=thread.title, sender=profile.get_name(), receiver=self.browser.get_my_name(), date=None, # now