Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.11

Request #18772 Add text/calendar helper functions
Submitted: 2011-08-31 18:41 UTC
From: liverpoolfcfan Assigned: alec
Status: Closed Package: Mail_Mime (version 1.8.2)
PHP Version: Irrelevant OS: all
Roadmaps: 1.9.0    
Subscription  


 [2011-08-31 18:41 UTC] liverpoolfcfan (Vincent Sherwood)
Description: ------------ More and more email clients/systems are now using 3 part multipart/alternative emails to send out and process calendar appointments. For example ... see below. It would be great to enhance the Mail_Mime package to allow a developer to easily add a text/calendar body part to a mime mail in the same way as you can a text/plain or a text/html body. The _build_params array could be expanded to add additional entries 'calendar_encoding' => 'utf-8', 'calendar_filename' => 'meeting.ics', 'calendar_method' => 'REQUEST' with those parameters being overrideable when constructing the object. The api would need to accept the text obviously - so helpers setCALENDARBody and getCALENDARBody would be needed. And, finally, the general getters and savers would need to be amended to account for the additional body type. Sample MIME Calendar Invite ---------------------------------- Subject: Send unaltered From: vincents@itsol.......ie Content-Type: multipart/alternative; boundary=Apple-Mail-11--672799234 Message-Id: <5555DBD3-9AAD-44E0-A10F- 34B859174C0E@itsol.......ie> Date: Wed, 31 Aug 2011 12:15:33 +0100 To: "itstest1@itsol.......ie" <itstest1@itsol.......ie> Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (iPod Mail 8L1) --Apple-Mail-11--672799234 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii La la la --Apple-Mail-11--672799234 Content-Type: text/calendar; charset=utf-8; name=meeting.ics; method=REQUEST Content-Transfer-Encoding: quoted-printable BEGIN:VCALENDAR=0D=0ACALSCALE:GREGORIAN=0D=0AM ETHOD:REQUEST=0D=0APRODID:-//A= pple=20Inc.//iPhone=203.0//EN=0D=0AVERSION:2.0=0D=0A BEGIN:VTIMEZONE=0D=0ATZI= D:Europe/Dublin=0D=0ABEGIN:DAYLIGHT=0D=0ADTSTART:2 0110327T010000=0D=0ARRULE:= FREQ=3DYEARLY;BYMONTH=3D3;BYDAY=3D- 1SU=0D=0ATZNAME:IST=20(Irish)=0D=0ATZOFFS= ETFROM:+0000=0D=0ATZOFFSETTO:+0100=0D=0AEND:DAY LIGHT=0D=0ABEGIN:STANDARD=0D=0A= DTSTART:20111030T020000=0D=0ARRULE:FREQ=3DYEARLY; BYMONTH=3D10;BYDAY=3D-1SU=0D= =0ATZNAME:GMT=0D=0ATZOFFSETFROM:+0100=0D=0ATZO FFSETTO:+0000=0D=0AEND:STANDAR= D=0D=0AEND:VTIMEZONE=0D=0ABEGIN:VEVENT=0D=0AAT TENDEE;CN=3D"itstest1@itsol...= ....ie";CUTYPE=3DINDIVIDUAL;PARTSTAT=3DNEEDS- A=0D=0A=20CTION;RSVP=3DTRUE:mai= lto:itstest1@itsol.......ie=0D=0ADESCRIPTION:La=20la=20la= 0D=0ADTEND;TZID=3D= Europe/Dublin:20110831T150000=0D=0ADTSTAMP:20110831 T111522Z=0D=0ADTSTART;TZI= D=3DEurope/Dublin:20110831T140000=0D=0ALAST- MODIFIED:20110831T111522Z=0D=0AO= RGANIZER;CN=3D"vincents":mailto:vincents@itsolutions.ie=0 D=0ASEQUENCE:0=0D=0A= SUMMARY:Send=20unaltered=0D=0ATRANSP:OPAQUE=0D=0 AUID:F36D19DD253E4285A6D4313= 30475565500000000000000000000000000000000=0D=0AX- MICROSOFT-CDO-INTENDEDSTATU= S:BUSY=0D=0AEND:VEVENT=0D=0AEND:VCALENDAR=0D=0 A= --Apple-Mail-11--672799234--

Comments

 [2015-08-02 18:47 UTC] alec (Aleksander Machniak)
-Status: Open +Status: Closed -Assigned To: +Assigned To: alec -Roadmap Versions: +Roadmap Versions: 1.9.0
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.