← Back to team overview

openerp-india team mailing list archive

[Bug 1033396] [NEW] While fetching email, OpenERP can't create attachment if file is type of audio/video.

 

Public bug reported:

Hello,

I have created one Incoming mail server, in the System >> Configuration
>> Incoming Mail Servers and allow  Keep attachment as True.

Now i have sent one *.mp3 file in one email as attachment and tried to
fetch email. But attachment was not created.

I think the problem is in mail module and in mail/mail_message.py file's
parse_message method.

If you can change following line  and change it like then problem will
be solved.

- elif part.get_content_maintype() in ('application', 'image'):

+ elif part.get_content_maintype() in ('application', 'image','audio'):

Anyone can check it and suggest me if i am worng or not?

If i am right then OpenERP should change this line to proper one.

Thanks,
Hiren Vora,
www.emiprotechnologies.com
hiren@xxxxxxxxxxxxxxxxxxxxxx

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1033396

Title:
  While fetching email, OpenERP can't create attachment if file is type
  of audio/video.

Status in OpenERP Addons (modules):
  New

Bug description:
  Hello,

  I have created one Incoming mail server, in the System >>
  Configuration >> Incoming Mail Servers and allow  Keep attachment as
  True.

  Now i have sent one *.mp3 file in one email as attachment and tried to
  fetch email. But attachment was not created.

  I think the problem is in mail module and in mail/mail_message.py
  file's parse_message method.

  If you can change following line  and change it like then problem will
  be solved.

  - elif part.get_content_maintype() in ('application', 'image'):

  + elif part.get_content_maintype() in ('application',
  'image','audio'):

  Anyone can check it and suggest me if i am worng or not?

  If i am right then OpenERP should change this line to proper one.

  Thanks,
  Hiren Vora,
  www.emiprotechnologies.com
  hiren@xxxxxxxxxxxxxxxxxxxxxx

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1033396/+subscriptions


Follow ups

References