Revision: 1673
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1673&view=rev
Author:   cimorrison
Date:     2010-12-08 14:07:52 +0000 (Wed, 08 Dec 2010)

Log Message:
-----------
Made the filename for the .ics attachment a config variable

Modified Paths:
--------------
    mrbs/branches/ics_attachments/web/functions_mail.inc
    mrbs/branches/ics_attachments/web/systemdefaults.inc.php

Modified: mrbs/branches/ics_attachments/web/functions_mail.inc
===================================================================
--- mrbs/branches/ics_attachments/web/functions_mail.inc        2010-12-08 
13:37:47 UTC (rev 1672)
+++ mrbs/branches/ics_attachments/web/functions_mail.inc        2010-12-08 
14:07:52 UTC (rev 1673)
@@ -807,7 +807,7 @@
   {
     $attachment['method']   = "REQUEST";
     $attachment['content']  = create_icalendar($attachment['method'], $data, 
$text_body, $html_body, $series);
-    $attachment['name']     = "meeting.ics";
+    $attachment['name']     = $mail_settings['ics_filename'] . ".ics";
   }
 
   // If the subject contains any non-ASCII characters...

Modified: mrbs/branches/ics_attachments/web/systemdefaults.inc.php
===================================================================
--- mrbs/branches/ics_attachments/web/systemdefaults.inc.php    2010-12-08 
13:37:47 UTC (rev 1672)
+++ mrbs/branches/ics_attachments/web/systemdefaults.inc.php    2010-12-08 
14:07:52 UTC (rev 1673)
@@ -852,8 +852,12 @@
 // fields are set)
 $mail_settings['treat_cc_as_to'] = FALSE;
 
+// The filename to be used for iCalendar attachments.   Will always have the
+// extension '.ics'
+$mail_settings['ics_filename'] = "booking";
 
 
+
 /**********
  * Language
  **********/


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to