[kupfer: 1/7] thunderbird: fix creating new mail for multiple recipients
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer: 1/7] thunderbird: fix creating new mail for multiple recipients
- Date: Tue, 22 May 2012 15:22:07 +0000 (UTC)
commit 0b4fc4922baf50c50a0301dc03a9386954db358e
Author: Karol BÄdkowski <karol bedkowski gmail com>
Date: Fri Mar 16 17:06:15 2012 +0100
thunderbird: fix creating new mail for multiple recipients
Added missing activate_muiltiple in NewMailAction.
Closes: lp#955100
kupfer/plugin/thunderbird.py | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/kupfer/plugin/thunderbird.py b/kupfer/plugin/thunderbird.py
index ff0799e..882873d 100644
--- a/kupfer/plugin/thunderbird.py
+++ b/kupfer/plugin/thunderbird.py
@@ -5,7 +5,7 @@ __kupfer_name__ = _("Thunderbird")
__kupfer_sources__ = ("ContactsSource", )
__kupfer_actions__ = ("NewMailAction", )
__description__ = _("Thunderbird/Icedove Contacts and Actions")
-__version__ = "2011-04-10"
+__version__ = "2012-03-15"
__author__ = "Karol BÄdkowski <karol bedkowski gmail com>"
from kupfer.objects import Action
@@ -18,6 +18,12 @@ from kupfer.obj.contacts import ContactLeaf, EmailContact, email_from_leaf
from kupfer.plugin import thunderbird_support as support
+"""
+Changes:
+ 2012-03-15: Karol BÄdkowski
+ + activate_multiple for new mail action
+"""
+
class ComposeMail(RunnableLeaf):
''' Create new mail without recipient '''
@@ -41,10 +47,12 @@ class NewMailAction(Action):
Action.__init__(self, _('Compose Email'))
def activate(self, leaf):
- email = email_from_leaf(leaf)
+ self.activate_multiple((leaf, ))
- if not utils.spawn_async(['thunderbird', 'mailto:%s' % email]):
- utils.spawn_async(['icedove', 'mailto:%s' % email])
+ def activate_multiple(self, objects):
+ recipients = ",".join(email_from_leaf(L) for L in objects)
+ if not utils.spawn_async(['thunderbird', 'mailto:%s' % recipients]):
+ utils.spawn_async(['icedove', 'mailto:%s' % recipients])
def get_icon_name(self):
return "mail-message-new"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]