gunnar: server/kolab-webclient/dimp/patches/dimp-1.1.4 t_dimp_HK_GW_ItipHandling.diff, NONE, 1.1 series, 1.4, 1.5
cvs at kolab.org
cvs at kolab.org
Fri Jan 22 18:20:04 CET 2010
Author: gunnar
Update of /kolabrepository/server/kolab-webclient/dimp/patches/dimp-1.1.4
In directory doto:/tmp/cvs-serv13340/kolab-webclient/dimp/patches/dimp-1.1.4
Modified Files:
series
Added Files:
t_dimp_HK_GW_ItipHandling.diff
Log Message:
MFB: kolab/issue3329 (Can not accept/deny invitations in Dimp)
--- NEW FILE: t_dimp_HK_GW_ItipHandling.diff ---
From: Gunnar Wrobel <p at rdus.de>
Subject: [PATCH] t/dimp/HK/GW/ItipHandling
Allow handling iTip messages in dimp.
Signed-off-by: Gunnar Wrobel <p at rdus.de>
---
imp.php | 23 +++++++
js/DimpBase.js | 14 ++++
2 files changed, 108 insertions(+), 27 deletions(-)
diff --git a/imp.php b/imp.php
index f8b9b5c..70264fe 100644
--- a/imp.php
+++ b/imp.php
@@ -710,6 +710,29 @@ case 'SendMDN':
$imp_ui = new IMP_UI_Message();
$imp_ui->MDNCheck($ob->header, true);
break;
+
+case 'iTip':
+ $selection = Util::getPost('selection');
+ $component = Util::getPost('component');
+ $action = str_replace('_', '-', $selection);
+ $_POST['action'] = array($component => $action);
+
+ if (empty($indices)) {
+ break;
+ }
+ $idx_string = _getIdxString($indices);
+
+ /* Parse MIME info and create the body of the message. */
+ require_once IMP_BASE . '/lib/MIME/Contents.php';
+ $imp_contents = &IMP_Contents::singleton($idx_string);
+
+ $cr = !$imp_contents->buildMessage();
+
+ if (is_a($cr, 'PEAR_Error')) {
+ $notification->push($cr, 'horde.error');
+ }
+
+ break;
}
// Clear the output buffer that we started above, and log any unexpected
diff --git a/js/DimpBase.js b/js/DimpBase.js
index 96cd917..39a728b 100644
--- a/js/DimpBase.js
+++ b/js/DimpBase.js
@@ -1663,6 +1663,20 @@ var DimpBase = {
nf.setStyle({ height: (document.viewport.getHeight() - nf.cumulativeOffset()[1] - 10) + 'px' });
},
+ itip: function(action, index, folder, component)
+ {
+ var args, vs;
+
+ vs = this.viewport.getViewportSelection().search({ imapuid: { equal: [ index ] }, view: { equal: [ folder ] } });
+ if (!vs.size() && folder != this.folder) {
+ vs = this.viewport.getViewportSelection(folder).search({ imapuid: { equal: [ index ] } });
+ }
+
+ args = this.viewport.addRequestParams({ selection: action, component: component });
+
+ DimpCore.doAction('iTip', args, DimpCore.toUIDArray(vs));
+ },
+
/* Flag actions for message list. */
flag: function(action, index, folder)
{
Index: series
===================================================================
RCS file: /kolabrepository/server/kolab-webclient/dimp/patches/dimp-1.1.4/series,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- series 22 Jan 2010 14:47:46 -0000 1.4
+++ series 22 Jan 2010 17:20:02 -0000 1.5
@@ -2,3 +2,4 @@
t_dimp_H_BL_CloseContextMenu.diff
t_dimp_H_GW_AclView.diff
t_dimp_H_GW_FoldersView.diff
+t_dimp_HK_GW_ItipHandling.diff
More information about the commits
mailing list