CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • error autofiling html format mails
Pages: [1]

Author Topic: error autofiling html format mails  (Read 789 times)

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
error autofiling html format mails
March 10, 2011, 03:13:51 am
I believe that we are having problems with autofiling any html format emails - Just as composing an Inbound Email manually by cutting and pasting into the rich text editor results in an 'dubious activity' message (solved by pasting as plain tesxt) so does the autofiling - and the text is truncated - so we know an email came not what it says!

The problem is that it rejects any html messages, but it does store any messages that have a plain text component or message.

Lots of people are sending HTML messages.

I understand that saving html in a database is not great news - one solution might be to attach the html message?

Or is there some setting somewhere that I have missed?

 
« Last Edit: March 10, 2011, 04:26:49 am by myles »

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: error autofiling html format mails
March 10, 2011, 09:25:57 am
I suppose I could run a script to convert them all to plain text just before the autofiling script runs...

http://www.aaronsw.com/2002/html2text/

Or export from Thuderbird in Mbox format - then re-import into the email account to be processed (which is user-clumbsy)

http://www.nic-nac-project.de/~kaosmos/mboximport-en.html

Or to keep it in the family using this php class - if it is an error in the script and not some setting I can switch:

http://www.chuggnutt.com/html2text.php

Any other ideas?
« Last Edit: March 10, 2011, 09:31:37 am by myles »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: error autofiling html format mails
March 10, 2011, 11:02:48 am

i think rather than "working around" the problem we should tackle and fix the problem head on

would be great if you can investigate and figure out where/when/why html emails get rejected, that way we could fix the code there

ping us on IRC if u need help getting started / making progress

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: error autofiling html format mails
March 10, 2011, 08:36:58 pm
Hi Lobo,

For my future reference...

Time differences might make IRC difficult as does my ignorance of using IRC.

Should I drop in at random times or is there a best time to find you?
When  you say ping 'us' do you mean you Lobo? Presumably you use 'lobo' as nick.

Further experiments suggest that if there is an error it is not as originally thought.

I suspect the errors are all browser related - I am testing by accessing the processor through the browser -

since the processing is more or less correct (emails are filed to the right people and so on) I'll move on to testing using cron.

But it is 4:30 am, so it will be another time!





myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
[false error!] Re: error autofiling html format mails
March 12, 2011, 01:08:26 pm
Runs fine from the comand line and cron - the errors had to do with testing in a browser (chrome) when logged in to Drupal as one user and runnig the tests using another drupal user.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • error autofiling html format mails

This forum was archived on 2017-11-26.