Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Mailarc posting HTML messages

Quote Reply
Mailarc posting HTML messages
Hello--

Great plugin!

A problem though, when an HTML message is processed, the resulting post has blank lines throughout causing the messageto s p r e a d o u t down the page, similar to the advanced editor having double space as the default line break, I think. Is there a way to fix this? The HTML looks fine when the mail comes into Outlook or webmail.

Help me Obi wan Kenobi, you're my only hope!

Last edited by:

bretzke: Sep 18, 2002, 10:16 AM
Quote Reply
Re: [bretzke] Mailarc posting HTML messages In reply to
Hi,

Can you try editing Mailarc.pm and adding:

require GForum::Convert;
GForum::Convert::convert_markup(\$body->{body});

right after:

my $body = $self->get_body();

and let me know if that works.

Thanks,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Mailarc posting HTML messages In reply to
You'll also want to change the "2" on the end of this line (about 10-15 lines below the line Alex posted about):

$fields->{post_style} = ($head->effective_type eq 'text/plain') ? 0 : 2;

to a 1.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Alex] Mailarc posting HTML messages In reply to
Nope...it appears to convert the message to text, but leaves in all the HTML junk... class=008355819-18092002>hello

class=008355819-18092002>this class=008355819-18092002>is class=008355819-18092002>a

class=008355819-18092002>test


Quote Reply
Re: [Jagerman] Mailarc posting HTML messages In reply to
I tried it again with both fixes in place and then again removing Alex's fix, but keeping yours. The post resulted the same and is attached.
Quote Reply
Re: [Alex] Mailarc posting HTML messages In reply to
The problem actually appears to be in the post view, not the parsing/Mailarc plugin. If I copy/paste the HTML of an email into a post (in a HTML forum), the resulting post has the formating problems.

Any ideas? (except stop importing HTML messages?)

Dave