Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

msg-body.htm: <%body%> does not format properly

Quote Reply
msg-body.htm: <%body%> does not format properly
Hi,

I've been trying to have email messages displayed properly in the message pane (using the default template) or even in the simple template; what I get right now is that the text wrap around the next line way too soon, example:

<start example>
The WebReview team is here at Web2000. We're having a
wonderful
time. The balance of strategy, technology, and user
experience
information is outstanding. WebReview readers are encouraged
to
<end example>

The fact is, the body of the message is displayed with the tag: <%body%>, and there is no way to change that.

It could be possible that the parser that reads the e-mails from the catch-all account, breaks the lines too soon?

How can I have the tag fill up all the space available in the table, line by line (if the message has long enough line, of course)?

Thank you

Mario P. Bontempi

You can test it yourself: open an account at:
http://mil-1553.net/cgi-bin/webmail/user/login.cgi



Priyadarshana Bontempi
Quote Reply
Re: msg-body.htm: <%body%> does not format properly In reply to
Hi,

Email messages that are text are put inside <pre> tags.
I tested the line wrap in 800 by 600 resolution.
Anything beyound 60 caused the browser to scroll left.
I will make the line wrap length a config option in the
next version.
If you want to change it, around line 567 in webmail.cgi
you will find a line that looks like:

$body = &Webmail::linewrap (60, $body);

Change 60 to whatever you want the line wrap.

Cheers,

Scott

Quote Reply
Re: msg-body.htm: <%body%> does not format properl In reply to
Scott,

thank you very much for your answer.

I edited webmail.cgi at lines 567 and 615, to no avail.

I still get exactly the same wrapping.

Try to go to:

http://mil-1553.net/cgi-bin/webmail/user/login.cgi

login: web
pwd: 1

You will see the only message in the Inbox : TEST, and how tightly it wraps.

What shall I do?

Thank you

Priyadarshana Bontempi
Quote Reply
Re: msg-body.htm: <%body%> does not format properl In reply to
Hi,

I looked at it again. Sorry, I pointed you to the wrong place.
In Webmail.pm there is a routine called format_message that
does the line wrap. This is where you should have set it.
I went ahead and set it to 80 for you so I could make sure
I was not wrong again :)

Cheers,

Scott

Quote Reply
Re: msg-body.htm: <%body%> does not format properl In reply to
It works perfectly now.

Thank you very much.



Priyadarshana Bontempi