Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

msgs_list_include*.htm template help

Quote Reply
msgs_list_include*.htm template help
Hi,

In it's current format, this causes a horizontal scroll and wrapping (which ncreases the row height) and makes the page look somewhat unpleasent. The horizontal scroll etc is introduced in a variety of cases as follows:

(1). No Name and from email address like aaaaaaaaaaaaaaaaaaaaa@bbbbbbbbbbbbbbbbbbb.com or so (which can happen)

(2). A Very Long Subject of the message which increases the row height due to wrapping. If wrapping is turned off then additional horizontal scroll.

What i would prefer is:

(1). Each message row is just single row without any wrapping in individual columns (subject/from/date/size for the inbox say)

(2). Each Column is a Fixed Width Column (This i can do)

For point (1) above, basically it would mean that the Subject And The From (To) part which is displayed is truncated to fixed number of characters to fit within the column width so that there is no line breaks due to wrapping (with basically wrapping turned off for those columns). If i use <nobr></nobr> in current formthen the Horizontal Scroll comes in (800X600 resolution IE ).

How could the above be achieved..... truncating the Subject/From(To) part to fit into fixed column width without line breaks.

Help on this needed.

Thnx

Anup
Quote Reply
Re: [anup123] msgs_list_include*.htm template help In reply to
I'd say this is impossible to do as you don't know how much to limit the columns by. In 2.2.0, there's the option to for the user to limit the length of the email and subject columns, but they'll have to set them to whatever they think is a good value.

Adrian
Quote Reply
Re: [brewt] msgs_list_include*.htm template help In reply to
Hi Adrian,

What i meant was following:

For Purpose of displaying only in msgs_list_include.htm

thru coding the truncation is set on characters to be displayed as follows:

Subject : 48

From/To: 24

Then i think the rest would be possible....The idea is to have the looping occupy 1 non wrapped row (without horizontal scroll) which would possibly result in more number of mesages being displayed per page for same page kb, besides making the formatting look uniform. This is perhaps how Hotmail does it whereby their Inbox or for that matter any folder has messages restrcited to signle non wrapped row. For example from an actual mail on Hotmail:

David Belton Anup - Power Up Your Classifieds, Isell Train... Oct 7

The actual Subject is

Anup - Power Up Your Classifieds, Isell Training Newsletter.

See how they have truncated the subjected as displayed in the Inbox.

Another example is truncation on from field:

JavaWorld's Enterpri... From the JavaWorld Archive: J2EE, Web service... Oct 14

The Actual From is: JavaWorld's Enterprise Java <.....@....>

Any suggestions

Thnx

Anup

Last edited by:

anup123: Oct 14, 2003, 2:19 AM
Quote Reply
Re: [anup123] msgs_list_include*.htm template help In reply to
Isn't that what
Options => Display => Maximum {subject,From,To} length
and
Folders => Edit => {Subject,From,To} display limit
do?

Like in my spam folder:
*****SPAM (17.40)***** Apcalis (Tadalafil)--The "Super Viagra" yd gowd...
Bridget Bourgeois
10/11 9:01 AM
3.93 KB
The subject is actually:
*****SPAM (17.40)***** Apcalis (Tadalafil)--The "Super Viagra" yd gowdsxevrtj

Adrian
Quote Reply
Re: [brewt] msgs_list_include*.htm template help In reply to
Hi Adrian,

That's wonderful. Actually I was expecting the same to be defined in prefs.cfg file also so since i did not find any change there i did not check on Options>Display user menu. Only i can be blamed for not checking the Options>Display menu.

Now my question is will the addition of following in prefs.cfg be helpful So that at least a new user account after the upgarde will get the default values:

'len_from' => '15',
'len_subject' => '40',
'len_to' => '15'

Will there have to be any specific order or it can be inserted anywhere undeer the display => in prefs.cfg

If the above is added will it cause any problems after the upgrade for existing users (on 2.1.0)

Thnx

Anup
Quote Reply
Re: [brewt] msgs_list_include*.htm template help In reply to
Hi Adrian,

This feature "Breaks" when threading in the folder is turned on.

Also it seems that the Old Scheme of Threading In Inbox (2.1.0) has been replaced with the Threading Scheme in Other Folders. With Nested Folders Implemented, will the Threading Feature work more so with messages being moved selectively into different nested folders.

Any comments?

Thnx

Anup
Quote Reply
Re: [anup123] msgs_list_include*.htm template help In reply to
Anywhere (in the first level of the hash) is fine.

Adrian
Quote Reply
Re: [anup123] msgs_list_include*.htm template help In reply to
In Reply To:
This feature "Breaks" when threading in the folder is turned on.
How does it "break"?

In Reply To:
Also it seems that the Old Scheme of Threading In Inbox (2.1.0) has been replaced with the Threading Scheme in Other Folders. With Nested Folders Implemented, will the Threading Feature work more so with messages being moved selectively into different nested folders.
Yes, the threading has been changed yet again. Now, threading only works with messages which are in the same folder.

Adrian
Quote Reply
Re: [brewt] msgs_list_include*.htm template help In reply to
Hi Adrian,

With the values set for sub/from/to the things works fine with no threading on.

When the Threading is Turned On then the rules of display limits are not followed and it defaults to as if no limits have been set.

Quote:
Yes, the threading has been changed yet again. Now, threading only works with messages which are in the same folder

OK But with Nested Folders, and messages being moved, it is hardly possible that the message would ever be in the same folder.

Message in Inbox
Reply is in Sent

Two folders being different Threading will never function unless I am missing something very obvious.

Earlier, the threading in Inbox followed a scheme which displayed the thread on reading a mail which was fine (irrespective of which folder the threaded messages were in).
Quote Reply
Re: [anup123] msgs_list_include*.htm template help In reply to
In Reply To:
When the Threading is Turned On then the rules of display limits are not followed and it defaults to as if no limits have been set.
Thanks, it's fixed. I've attached the fixed templates.

Adrian
Quote Reply
Re: [brewt] msgs_list_include*.htm template help In reply to
Hi,

I just noticed while trying to get the style.css to work for messageloop that in nessa, the

<td class="msgs-list"> has to be <td class="msgs_list"> as in style.css there is td.msgs_list

I have not checked the brewt template set though.

Thnx

Anup
Quote Reply
Re: [brewt] msgs_list_include*.htm template help In reply to
Hi Adrian,

Could this be done for Folders Name display also?

Thnx

Anup
Quote Reply
Re: [brewt] msgs_list_include*.htm template help In reply to
Hi Adrian,

I find a similar thing in msgs_search_results.htm template. The listing is not obeying the length restrictions on from/to/subject etc

Anup
Quote Reply
Re: [anup123] msgs_list_include*.htm template help In reply to
Yup, I had fixed that already Smile

Adrian
Quote Reply
Re: [brewt] msgs_list_include*.htm template help In reply to
Can the fixed template sets be made available. I ma running with custom template set based around nessa.

Thnx

Anup
Quote Reply
Re: [anup123] msgs_list_include*.htm template help In reply to
It's just a matter of appending "_disp" to the msgs_subject/msgs_sent_from/msgs_sent_from_email variables in the template.

Adrian
Quote Reply
Re: [brewt] msgs_list_include*.htm template help In reply to
Hi,

It gives following:

Unknown Tag: 'msgs_sent_from_disp'


Anup
Quote Reply
Re: [anup123] msgs_list_include*.htm template help In reply to
Just change:
Code:
<%if msgtrack_status eq 'New'%><b><%endif%><%if msgs_sent_from_name%><%msgs_sent_from_name%><%elsif msgs_sent_from%><%msgs_sent_from%><%else%><i>No From</i><%endif%><%if msgtrack_status eq 'New'%></b><%endif%><br>
to:
Code:
<%if msgtrack_status eq 'New'%><b><%endif%><%if msgs_sent_from%><span title="<%msgs_sent_from%>"><%endif%><%if msgs_sent_from_name_disp%><%msgs_sent_from_name_disp%><%elsif msgs_sent_from_email_disp%><%msgs_sent_from_email_disp%><%else%><i>No From</i><%endif%><%if msgs_sent_from%></span><%endif%><%if msgtrack_status eq 'New'%></b><%endif%><br>

Adrian
Quote Reply
Re: [brewt] msgs_list_include*.htm template help In reply to
Thnx. It's done.

Anup