comparison plugins/calendar/calendar.php @ 17:3bd5fe8166b8

switch to using vurl as well for better display, and it gets saved
author Charlie Root
date Sat, 13 Jan 2018 17:06:41 -0500
parents f6fe4b6ae66a
children
comparison
equal deleted inserted replaced
16:165944ca08e7 17:3bd5fe8166b8
3318 if ($msgref = $this->driver->get_message_reference($message->headers, $mbox)) { 3318 if ($msgref = $this->driver->get_message_reference($message->headers, $mbox)) {
3319 $event['links'] = array($msgref); 3319 $event['links'] = array($msgref);
3320 } 3320 }
3321 else { 3321 else {
3322 // hack around missing database_driver implementation of that method 3322 // hack around missing database_driver implementation of that method
3323 $mbox_u = str_replace('/','%2F',$mbox); // e.g. Bookings%2FBigHouse%2FPending
3324 $url = "https://hppllc.org/roundcube/?_task=mail&_mbox=$mbox_u&_uid=$uid";
3323 $event['links'] = array( 3325 $event['links'] = array(
3324 array('mailurl' => "https://hppllc.org/roundcube/?_task=mail&_mbox=Bookings%2FBigHouse%2FPending&_uid=$uid", 3326 array('mailurl' => $url,
3325 'subject' => 'link to original email')); 3327 'subject' => 'link to original email'));
3328 $event['vurl'] = $url; // so it gets saved
3329
3330 rcube::write_log('cal',"$mbox $mbox_u ".$event['links'][0]['mailurl']);
3326 } 3331 }
3327 // copy mail attachments to event 3332 // copy mail attachments to event
3328 if ($message->attachments) { 3333 if ($message->attachments) {
3329 $eventid = 'cal-'; 3334 $eventid = 'cal-';
3330 if (!is_array($_SESSION[self::SESSION_KEY]) || $_SESSION[self::SESSION_KEY]['id'] != $eventid) { 3335 if (!is_array($_SESSION[self::SESSION_KEY]) || $_SESSION[self::SESSION_KEY]['id'] != $eventid) {