From f84f2c779bce7d49aa170406d9b03afd2f5bd655 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 29 Nov 2011 12:09:29 +0000 Subject: [PATCH] * Addressbook: ablity to mail (multiple) vCard via context menu --- addressbook/inc/class.addressbook_ui.inc.php | 22 +++++++++- felamimail/inc/class.felamimail_bo.inc.php | 40 +++++++++-------- felamimail/inc/class.uicompose.inc.php | 18 ++++++-- .../inc/class.links_stream_wrapper.inc.php | 44 ++++++++++++++++++- phpgwapi/inc/class.mime_magic.inc.php | 9 +++- 5 files changed, 108 insertions(+), 25 deletions(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 91a0f07873..714e22a983 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -585,7 +585,15 @@ class addressbook_ui extends addressbook_bo $this->prefs['document_dir'], $group, 'Insert in document', 'document_', $this->prefs['default_document'], $this->config['contact_export_limit'] ); - + if ($GLOBALS['egw_info']['user']['apps']['felamimail']) + { + $actions['mail'] = array( + 'caption' => lang('Mail VCard'), + 'icon' => 'filemanager/mail_post_to', + 'group' => $group, + 'onExecute' => 'javaScript:adb_mail_vcard', + ); + } ++$group; if (!($tid_filter == 'D' && !$GLOBALS['egw_info']['user']['apps']['admin'] && $this->config['history'] != 'userpurge')) { @@ -2192,7 +2200,19 @@ class addressbook_ui extends addressbook_bo */ function js() { + list($width,$height) = explode('x',egw_link::get_registry('felamimail','add_popup')); + return '