kolab 3.0 - accepting an event in an email in roundcube throws error

Dirk Werner dwerner at curiousbits.de
Thu Aug 30 10:27:06 CEST 2012


On 08/30/2012 08:41 AM, Aleksander Machniak wrote:
> On 08/29/2012 04:06 PM, Dirk Werner wrote:
>> in roundcube - when accepting an event via clicking on the accept button
>> in the event invitation email, an error is being thrown - 'error during
>> import'. Accepting the new event afterwards in the calendar works fine.
>> The following are the corresponding lines in /var/log/roundcubemail/imap
>> after hitting the accept button:
> Are there any errors in log? I think IMAP is irrelevant here. Could you
> provide full source of the invitation message?
>
I couldn't find something really suspicious in the logs, here is the
source of such an invitation email:

<!DOCTYPE html>
<html>
<head>
<title>Kolab Groupware :: Sie wurden zu "eeeeee"
eingeladen</title>
<link rel="shortcut icon" href="skins/larry/images/favicon.ico"/>
<link rel="stylesheet" type="text/css"
href="skins/larry/styles.css?s=1344168793" />
<link rel="stylesheet" type="text/css"
href="skins/larry/mail.css?s=1344168793" />
<!--[if IE 9]><link rel="stylesheet" type="text/css"
href="skins/larry/svggradients.css?s=1344168793" /><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" type="text/css"
href="skins/larry/iehacks.css?s=1344168793" /><![endif]-->
<!--[if lte IE 7]><link rel="stylesheet" type="text/css"
href="skins/larry/ie7hacks.css?s=1344168793" /><![endif]-->
<link rel="stylesheet" type="text/css"
href="plugins/jqueryui/themes/larry/jquery-ui-1.8.18.custom.css?s=1344168793">
<link rel="stylesheet" type="text/css"
href="plugins/calendar/skins/larry/calendar.css?s=1344198912">
<script type="text/javascript"
src="skins/larry/ui.js?s=1344168793"></script>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script src="program/js/jquery.min.js?s=1344168793"
type="text/javascript"></script>
<script src="program/js/common.js?s=1344168793"
type="text/javascript"></script>
<script src="program/js/app.js?s=1344168793"
type="text/javascript"></script>
<script type="text/javascript">

var rcmail = new rcube_webmail();
rcmail.set_env({"task":"mail","x_frame_options":"sameorigin","skin":"larry","keep_alive":300,"framed":true,"action":"preview","comm_path":".\/?_task=mail&_framed=1","date_format":"yy-mm-dd","uid":"29","safemode":false,"sender":"\"Dirk,
Werner\"
<werner.dirk at airwerk.com>","permaurl":".\/?_task=mail&_action=show&_mbox=INBOX&_uid=29","delimiter":"\/","mailbox":"INBOX","mimetypes":{"0":"text\/plain","1":"text\/html","2":"text\/xml","3":"image\/jpeg","4":"image\/gif","5":"image\/png","6":"application\/x-javascript","7":"application\/pdf","9":"application\/vnd.oasis.opendocument.chart","10":"application\/vnd.oasis.opendocument.chart-template","11":"application\/vnd.oasis.opendocument.formula","12":"application\/vnd.oasis.opendocument.formula-template","13":"application\/vnd.oasis.opendocument.graphics","14":"application\/vnd.oasis.opendocument.graphics-template","15":"application\/vnd.oasis.opendocument.presentation","16":"application\/vnd.oasis.opendocument.presentation-template","17":"application\/vnd.oasis.opendocument.text","18":"application\/vnd.oasis.opendocument.text-master","19":"application\/vnd.oasis.opendocument.text-template","20":"application\/vnd.oasis.opendocument.spreadsheet","21":"application\/vnd.oasis.opendocument.spreadsheet-template"},"drafts_mailbox":"Drafts","trash_mailbox":"Trash","junk_mailbox":"Spam","flag_for_deletion":true,"read_when_deleted":true,"skip_deleted":true,"display_next":true,"request_token":"5530ba328c8e5f78f59916abe0eed295"});
if(window.parent && parent.rcmail)
parent.rcmail.set_env({"sieve_headers":[["Subject","Sie wurden zu
\"eeeeee\"
eingeladen"],["From","werner.dirk at airwerk.com"],["To","duck.donald at airwerk.com"]]});
rcmail.add_label({"loading":"Loading...","servererror":"Server
Error!","requesttimedout":"Request timed out","checkingmail":"Checking
for new messages...","deletemessage":"Delete
message","movemessagetotrash":"Move message to
trash","movingmessage":"Moving
message(s)...","deletingmessage":"Deleting
message(s)...","calendar.savingdata":"Saving
data...","calendar.deleteventconfirm":"Do you really want to delete this
event?"});
rcmail.register_button('calendar-create-from-mail', 'rcmbtn100', 'link',
'icon calendarlink active', '', '');
rcmail.register_button('tasklist-create-from-mail', 'rcmbtn101', 'link',
'icon taskaddlink active', '', '');
rcmail.register_button('reply', 'rcmbtn102', 'link', '', 'button reply
pressed', '');
rcmail.register_button('reply-all', 'rcmbtn103', 'link', '', 'button
replyall pressed', '');
rcmail.register_button('forward', 'rcmbtn104', 'link', '', 'button
forward pressed', '');
rcmail.register_button('permaurl', 'rcmbtn105', 'link', '', 'button
extwin pressed', '');
rcmail.gui_object('remoteobjectsmsg', 'remote-objects-message');
rcmail.register_button('calendar', 'rcmbtn106', 'link', '',
'button-calendar button-selected', '');
</script>

<script type="text/javascript"
src="plugins/jqueryui/js/jquery-ui-1.8.18.custom.min.js?s=1344168793"></script>
<script type="text/javascript"
src="plugins/calendar/lib/js/fullcalendar.js?s=1344198912"></script>
<script type="text/javascript"
src="plugins/calendar/calendar_base.js?s=1344198912"></script>
</head>
<body class="iframe fullheight">

<div id="messagepreviewheader">
<h3 class="subject">Sie wurden zu "eeeeee" eingeladen</h3>

<a href="#details" id="previewheaderstoggle"><span
class="iconlink"></span></a>
<div id="contactphoto"><img
src="./?_email=werner.dirk%40airwerk.com&_action=photo&_task=addressbook"
alt=""></div>

<table class="headers-table" id="preview-shortheaders"><tbody><tr>
    <td class="header-title">From</td>
    <td class="header from"><span><a
href="mailto:werner.dirk at airwerk.com" onclick="return
rcmail.command('compose','werner.dirk at airwerk.com',this)"
title="werner.dirk at airwerk.com" class="rcmContactAddress">Dirk,
Werner</a><a href="#add" onclick="return
rcmail.command('add-contact','"Dirk, Werner"
<werner.dirk at airwerk.com>',this)" title="Add to address book"
class="rcmaddcontact"><img src="skins/larry/images/addcontact.png"
alt="Add contact"></a></span></td>
    <td class="header-title">Date</td>
    <td class="header from">Today 10:12</td>
</tr></tbody></table>

<table id="preview-allheaders" class="headers-table"><tbody><tr><td
class="header-title">From</td>
<td class="header from"><span><a href="mailto:werner.dirk at airwerk.com"
onclick="return
rcmail.command('compose','werner.dirk at airwerk.com',this)"
title="werner.dirk at airwerk.com" class="rcmContactAddress">Dirk,
Werner</a><a href="#add" onclick="return
rcmail.command('add-contact','"Dirk, Werner"
<werner.dirk at airwerk.com>',this)" title="Add to address book"
class="rcmaddcontact"><img src="skins/larry/images/addcontact.png"
alt="Add contact"></a></span></td>
</tr>
<tr><td class="header-title">To</td>
<td class="header to"><span><a href="mailto:duck.donald at airwerk.com"
onclick="return
rcmail.command('compose','duck.donald at airwerk.com',this)"
title="duck.donald at airwerk.com" class="rcmContactAddress">Donald,
Duck</a><a href="#add" onclick="return
rcmail.command('add-contact','"Donald, Duck"
<duck.donald at airwerk.com>',this)" title="Add to address book"
class="rcmaddcontact"><img src="skins/larry/images/addcontact.png"
alt="Add contact"></a></span></td>
</tr>
<tr><td class="header-title">Date</td>
<td class="header date">Today 10:12</td>
</tr>
</tbody>
</table>


<!-- record navigation -->
<div id="countcontrols" class="pagenav">
    <a class="button reply" title="Reply to sender" id="rcmbtn102"
href="#" onclick="return rcmail.command('reply','',this,event)"><span
class="inner"><-</span></a>
    <a class="button replyall" title="Reply to list or to sender and all
recipients" id="rcmbtn103" href="#" onclick="return
rcmail.command('reply-all','',this,event)"><span
class="inner"><<-</span></a>
    <a class="button forward" title="Forward the message" id="rcmbtn104"
href="#" onclick="return rcmail.command('forward','',this,event)"><span
class="inner">-></span></a>
     
    <a class="button extwin" title="Open in new window" target="_blank"
id="rcmbtn105"
href="./?_task=mail&_action=show&_mbox=INBOX&_uid=29"
onclick="return rcmail.command('permaurl','',this,event)"><span
class="inner">[]</span></a>
</div>

</div>

<div id="messagepreview">
<div class="rightcol">
<ul id="attachment-list" class="attachmentslist"><li class="text
calendar ics"><a
href="./?_task=mail&_uid=29&_mbox=INBOX&_action=get&_part=2"
onclick="return rcmail.command('load-attachment',{part:'2',
mimetype:'text/calendar'},this)" title="">event.ics</a></li>
</ul>

</div>
<div class="leftcol">
<div id="message-objects">
<div id="remote-objects-message" class="notice" style="display: none">To
protect your privacy, remote images are blocked in this message. <a
href="#loadimages" onclick="rcmail.command('load-images')">Display
images</a></div>
</div>

<div class="calendar-invitebox"><table border="0"
class="calendar-eventdetails"><tbody><tr><td class="ititle">Invitation
to</td>
<td class="title">eeeeee</td>
</tr>
<tr><td class="label">Date</td>
<td class="location">2012-09-02</td>
</tr>
<tr><td class="label">Location</td>
<td class="location">eeeeeeee</td>
</tr>
</tbody>
</table>
<div id="loading-5F3CFEDA63244B1717C530E0284BC4DF-6EA0898908B974C5"
class="rsvp-status loading">Loading...</div>
<div class="rsvp-buttons"><div
id="rsvp-5F3CFEDA63244B1717C530E0284BC4DF-6EA0898908B974C5"
style="display:none"><input type="button" class="button"
onclick="rcube_calendar.add_event_from_mail('2:0', 'accepted')"
value="Accept"><input type="button" class="button"
onclick="rcube_calendar.add_event_from_mail('2:0', 'tentative')"
value="Maybe"><input type="button" class="button"
onclick="rcube_calendar.add_event_from_mail('2:0', 'declined')"
value="Decline"></div>
<div id="import-5F3CFEDA63244B1717C530E0284BC4DF-6EA0898908B974C5"
style="display:none"><input type="button" class="button"
onclick="rcube_calendar.add_event_from_mail('2:0')" value="Save to my
calendar"></div>
</div>
</div>
<div id="messagebody"><div class="message-part"><pre>This is a Kolab
Groupware object. To view this object you will need an email client that
understands the Kolab Groupware format. For a list of such email clients
please visit <a href="http://www.kolab.org/"
target="_blank">http://www.kolab.org/</a>

</pre>
</div>
</div>

</div>
</div>

<script type="text/javascript">

// UI startup
var UI = new rcube_mail_ui();
$(document).ready(function(){
    UI.set('errortitle', 'An error occurred!');
    UI.init();
});

</script>



<script type="text/javascript">

jQuery.extend(jQuery.ui.dialog.prototype.options.position, {
                using: function(pos) {
                    var me = jQuery(this),
                        offset = me.css(pos).offset(),
                        topOffset = offset.top - 12;
                    if (topOffset < 0)
                        me.css('top', pos.top - topOffset);
                    if (offset.left + me.outerWidth() + 12 >
jQuery(window).width())
                        me.css('left', pos.left - 12);
                }
            });
$(document).ready(function(){
rcmail.init();
rcube_calendar.fetch_event_rsvp_status({"uid":"5F3CFEDA63244B1717C530E0284BC4DF-6EA0898908B974C5","changed":1346314371,"fallback":"NEEDS-ACTION"})
});
</script>

</body>
</html>




More information about the users mailing list