← Back to team overview

openerp-india team mailing list archive

[Bug 1131743] [NEW] Remove html2plaintext, let html2text python package handle it.

 

Public bug reported:

There are several issues with plain text notification/email handling:

- there are two html2 text handlers used in the codebase: 
  1. if html2text is available that *can* be used, but it is not used everywhere;
  2. there is a html2plaintext function in tools/mail.py which does the same thing as html2text, but worse

- html2plaintext handles links nicely, but renders lists poorly, this is
the main bug here, which *needs* a change

The items below could be considered wishes:
- html2text renders a lot better, but is imported in such a way the option to set INLINE_LINKS to False is not reachable centrally
- the mail module explicitly calls html2plaintext for a body_alternative, while this can be handled automatically (by just not specifying the alternative)
- a couple of addons use html2plaintext: hr_recruitment, project_issue, crm_helpdesk, pad, mail, crm_claim

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

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

Title:
  Remove html2plaintext, let html2text python package handle it.

Status in OpenERP Server:
  New

Bug description:
  There are several issues with plain text notification/email handling:

  - there are two html2 text handlers used in the codebase: 
    1. if html2text is available that *can* be used, but it is not used everywhere;
    2. there is a html2plaintext function in tools/mail.py which does the same thing as html2text, but worse

  - html2plaintext handles links nicely, but renders lists poorly, this
  is the main bug here, which *needs* a change

  The items below could be considered wishes:
  - html2text renders a lot better, but is imported in such a way the option to set INLINE_LINKS to False is not reachable centrally
  - the mail module explicitly calls html2plaintext for a body_alternative, while this can be handled automatically (by just not specifying the alternative)
  - a couple of addons use html2plaintext: hr_recruitment, project_issue, crm_helpdesk, pad, mail, crm_claim

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


Follow ups

References