Author: hnategh
New Revision: 54404
URL: http://svn.stylite.de/viewvc/egroupware?rev=54404&view=rev
Log:
W.I.P. of new approach for mail winmail.dat attachment handling
- Try to use mail client cache and store resolved winmail.dat attachments, it will avoid resolve it again
Modified:
trunk/mail/js/app.js
— trunk/mail/js/app.js (original)
+++ trunk/mail/js/app.js Mon Nov 30 15:55:39 2015
@@ -847,21 +847,28 @@
// Try to resolve winmail.data attachment
if (dataElem.data && dataElem.data.attachmentsBlock[0]
-
&& dataElem.data.attachmentsBlock[0].winmailFlag
-
&& (dataElem.data.attachmentsBlock[0].mimetype =='application/ms-tnef' ||
-
dataElem.data.attachmentsBlock[0].filename == "winmail.dat"))
{
attachmentArea.getDOMNode().classList.add('loading');
-
this.egw.jsonq('mail.mail_ui.ajax_resolveWinmail',[_id], jQuery.proxy(function(_data){
attachmentArea.getDOMNode().classList.remove('loading');
if (typeof _data == 'object')
{
attachmentArea.set_value({content:_data});
-
-
this.data.attachmentsBlock = _data;
-
// Update client cache to avoid resolving winmail.dat attachment again
-
egw.dataStoreUID(this.data.uid, this.data);
-
set_prev_iframe_top();
}
else
{
console.log('Can not resolve the winmail.data!');
}
Go from Idea to Many App Stores Faster with Intel® XDK
Give your users amazing mobile app experiences with Intel® XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs