Modify

Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#30 closed enhancement (fixed)

filtering out the html version of the email

Reported by: gmcgrath@… Owned by: bas
Priority: minor Milestone: 1.0.0
Component: email2trac Version: 0.1
Keywords: Cc:

Description

Is there anyway to filter out the html version of an email as the text version seems to be the one actually used in the ticket? The HTML version just gets tacked on as an attachment and isn't particularly useful.

Attachments (2)

gmcgrath.vcf (266 bytes) - added by Garrett McGrath 16 years ago.
Added by email2trac
gmcgrath.2.vcf (266 bytes) - added by Garrett McGrath 16 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (9)

comment:1 Changed 16 years ago by bas

  • Status changed from new to assigned

There are programs that converts html messages to text messages. We can use one of these external programs to convert html to texx messages, but they are not 100% full proof, It can be helpful. We have to make it an option in email2trac.conf:

html2text : <path>/<utility>

Changed 16 years ago by Garrett McGrath

Added by email2trac

comment:2 Changed 16 years ago by Garrett McGrath

My question was more related to receiving emails that include both the
raw text version and the html version of the email, however being able
to over ride the raw text version would probably get the same net
benefit.
-Garrett

email2trac wrote:
> #30: filtering out the html version of the email
> -----------------------------------+--------------------------------
--------
> Reporter:  gmcgrath@princeton.edu  |        Owner:  bas
>     Type:  enhancement             |       Status:  assigned
> Priority:  minor                   |    Component:  email2trac
>  Version:  0.10                    |   Resolution:
> Keywords:                          |
> -----------------------------------+--------------------------------
--------
> Changes (by bas):
>
>   * status:  new => assigned
>
> Comment:
>
>  There are programs that converts html messages to text messages. We
can
>  use one of these external programs to convert html to texx
messages, but
>  they are not 100% full proof, It can be helpful. We have to make it
an
>  option in email2trac.conf:
>   html2text : <path>/<utility>
>
>

comment:3 Changed 16 years ago by anonymous

Oke my misreading of the message. Just another question is there a way to determine if the raw text version is the same as the html version?

Changed 16 years ago by Garrett McGrath

Added by email2trac

comment:4 Changed 16 years ago by Garrett McGrath

Not sure, if you used some of the afore mentioned tools you could test
for it, that or just diff the two of them and test to see if all
that's
left are html tags (the second solution seems like it would be more
work
thou...).
-Garrett

email2trac wrote:
> #30: filtering out the html version of the email
> -----------------------------------+--------------------------------
--------
> Reporter:  gmcgrath@princeton.edu  |        Owner:  bas
>     Type:  enhancement             |       Status:  assigned
> Priority:  minor                   |    Component:  email2trac
>  Version:  0.10                    |   Resolution:
> Keywords:                          |
> -----------------------------------+--------------------------------
--------
> Comment (by anonymous):
>
>  Oke my misreading of the message. Just another question is there a
way to
>  determine if the raw text version is the same as the html version?
>
>

comment:5 Changed 16 years ago by anonymous

#77 contains my own method to addressing this issue (ignore the part0001.html attachment)

comment:6 Changed 15 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [278]) email2trac.py.in:

  • added new parameter and feature to drop the HTML version of multipart/alternative message part, closes #30 keyword: drop_alternative_html_version default is 0

comment:7 Changed 15 years ago by bas

  • Milestone set to 1.0.0

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.