diff 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
line wrap: on
line diff
--- a/plugins/calendar/calendar.php	Sat Jan 13 09:45:02 2018 -0500
+++ b/plugins/calendar/calendar.php	Sat Jan 13 17:06:41 2018 -0500
@@ -3320,9 +3320,14 @@
       }
       else {
 	// hack around missing database_driver implementation of that method
+	$mbox_u = str_replace('/','%2F',$mbox); // e.g. Bookings%2FBigHouse%2FPending
+	$url = "https://hppllc.org/roundcube/?_task=mail&_mbox=$mbox_u&_uid=$uid";
 	$event['links'] = array(
-				array('mailurl' => "https://hppllc.org/roundcube/?_task=mail&_mbox=Bookings%2FBigHouse%2FPending&_uid=$uid",
+				array('mailurl' => $url,
 				      'subject' => 'link to original email'));
+	$event['vurl'] = $url; // so it gets saved
+
+	rcube::write_log('cal',"$mbox $mbox_u ".$event['links'][0]['mailurl']);
       }
       // copy mail attachments to event
       if ($message->attachments) {