← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 675617] Re: [TRUNK][WISH] bin/tools/misc.py def email_send, add parameter for attachment mime type for ICS file

 

Hello Serge,

This is a sensible suggestion, however we can't introduce this change at this stage of the preparation of the final v6.0 release (because it requires a change of the API of email_send since the attachments would need to be passed differently)
Your workaround is to implement a variant of email_send indeed.

We'll keep this suggestion in mind for post-v6 release, thanks!

** Changed in: openobject-server
   Importance: Undecided => Wishlist

** Changed in: openobject-server
       Status: New => Won't Fix

-- 
[TRUNK][WISH] bin/tools/misc.py  def email_send, add parameter for attachment mime type for ICS file
https://bugs.launchpad.net/bugs/675617
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Won't Fix

Bug description:
IN  bin/tools/misc.py
def email_send

if attach:
        msg.attach(email_text)
        for (fname,fcontent) in attach:
            part = MIMEBase('application', "octet-stream")


Add parameter for 'application' and 'octet-stream'

Why :  we need send ics file by email, but with application and octet-stream, mail program don't detect is a calendar file,  for the moment i create a new function with  'text','calendar',  with this modification, gmail automatically detect the attachment is a calendar event and ask to add to google calendar. 

Thank





References