How to disable inline display of attachments

Sorry if this is a stupid question; I did make a fair attempt to find
the answer by googling site:lists.fsck.com.

I’m using RT 3.2.1 and would like to disable the display of attachments
inline in the main ticket display.

I set the variable $MaxInlineBody in RT_SiteConfig.pm to 0, but it had
no effect. I must be crazy, because I see no occurrence of that
variable anywhere in the source code.

Is the only recourse to modify the source code?

Thanks,
Kevin Murphy

What kind of attachments are they?On Fri, Nov 19, 2004 at 11:42:16AM -0500, Kevin Murphy wrote:

Sorry if this is a stupid question; I did make a fair attempt to find
the answer by googling site:lists.fsck.com.

I’m using RT 3.2.1 and would like to disable the display of attachments
inline in the main ticket display.

I set the variable $MaxInlineBody in RT_SiteConfig.pm to 0, but it had
no effect. I must be crazy, because I see no occurrence of that
variable anywhere in the source code.

Is the only recourse to modify the source code?

Thanks,
Kevin Murphy


The rt-users Archives

Be sure to check out the RT wiki at http://wiki.bestpractical.com

I’m using RT 3.2.1 and would like to disable the display of
attachments
inline in the main ticket display.
What kind of attachments are they?

The attachments are large text files (data) which nobody would ever
want to look at inline (not even the first few lines of each, although
that would be better than the whole thing). I’ve told the users to
start compressing them before attaching, which they should be doing
anyway.

In my experience, attachments usually play a supporting role with
respect to the main message, and, even if the attachments are short, it
still is usually not appropriate to display them in-line in the main
ticket history. It makes the ticket history really hard to visually
scan if there are a bunch of comments and a bunch of in-line
attachments made at different times.

Kevin Murphy

Does $MaxInlineBody in RT_Config.pm not do what you want?On Fri, Nov 19, 2004 at 05:14:18PM -0500, Kevin Murphy wrote:

On Nov 19, 2004, at 3:51 PM, Todd Chapman wrote:

I’m using RT 3.2.1 and would like to disable the display of
attachments
inline in the main ticket display.
What kind of attachments are they?

The attachments are large text files (data) which nobody would ever
want to look at inline (not even the first few lines of each, although
that would be better than the whole thing). I’ve told the users to
start compressing them before attaching, which they should be doing
anyway.

In my experience, attachments usually play a supporting role with
respect to the main message, and, even if the attachments are short, it
still is usually not appropriate to display them in-line in the main
ticket history. It makes the ticket history really hard to visually
scan if there are a bunch of comments and a bunch of in-line
attachments made at different times.

Kevin Murphy


The rt-users Archives

Be sure to check out the RT wiki at http://wiki.bestpractical.com

Does $MaxInlineBody in RT_Config.pm not do what you want?

No, and furthermore, $MaxInlineBody seems not to be used at all in the
RT code, which would explain why it doesn’t work:

$ find /usr/local/rt3 -type f | xargs grep -l MaxInlineBody
./etc/RT_Config.pm
./etc/RT_SiteConfig.pm

I’m using RT 3.2.1.

-Kevin Murphy

Does $MaxInlineBody in RT_Config.pm not do what you want?

No, and furthermore, $MaxInlineBody seems not to be used at all in the
RT code, which would explain why it doesn’t work:

Yikes. It sure used to be. It’s missing from html/Ticket/Elements/ShowTransactionAttachments

I’ve opened a ticket. This should be fixed for 3.2.3.

I’m using RT 3.2.1 and would like to disable the display of
attachments
inline in the main ticket display.
What kind of attachments are they?

The attachments are large text files (data) which nobody would ever
want to look at inline (not even the first few lines of each, although
that would be better than the whole thing). I’ve told the users to
start compressing them before attaching, which they should be doing
anyway.

In my experience, attachments usually play a supporting role with
respect to the main message, and, even if the attachments are short, it
still is usually not appropriate to display them in-line in the main
ticket history. It makes the ticket history really hard to visually
scan if there are a bunch of comments and a bunch of in-line
attachments made at different times.

This one goes back a ways (Nov, 2004) but I couldn’t seem to find an
answer. Like the original poster, MaxInlineBody doesn’t do what I need, I
just want to leave the .txt attachments as Attachments and not show them
inline.

Does anyone have a patch for this (RT 3.2.3) or can anyone point me in the
right direction for what I need to modify? I’m no coder, but I’ve managed
to hack in a few modifications that do what we need. From my amateur
point of view, it appears text attachments and emails that come in text
are stores text/plain meaning I can’t handle this in
ShowTransactionAttachments; it appears I’d need to handle this as the
attachment came in?

-jd

I would be interested to see the answer as well. I tried removing the
attachment as part of the main body text, but the ‘reply’/ticket information
also disappears.

Best Regards,
Ravin MathooraFrom: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of
doogles@doogles.com
Sent: 23 August 2005 12:47
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] how to disable inline display of attachments

I’m using RT 3.2.1 and would like to disable the display of
attachments
inline in the main ticket display.
What kind of attachments are they?

The attachments are large text files (data) which nobody would ever
want to look at inline (not even the first few lines of each, although
that would be better than the whole thing). I’ve told the users to
start compressing them before attaching, which they should be doing
anyway.

In my experience, attachments usually play a supporting role with
respect to the main message, and, even if the attachments are short, it
still is usually not appropriate to display them in-line in the main
ticket history. It makes the ticket history really hard to visually
scan if there are a bunch of comments and a bunch of in-line
attachments made at different times.

This one goes back a ways (Nov, 2004) but I couldn’t seem to find an
answer. Like the original poster, MaxInlineBody doesn’t do what I need, I
just want to leave the .txt attachments as Attachments and not show them
inline.

Does anyone have a patch for this (RT 3.2.3) or can anyone point me in the
right direction for what I need to modify? I’m no coder, but I’ve managed
to hack in a few modifications that do what we need. From my amateur
point of view, it appears text attachments and emails that come in text
are stores text/plain meaning I can’t handle this in
ShowTransactionAttachments; it appears I’d need to handle this as the
attachment came in?

-jd
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

This one goes back a ways (Nov, 2004) but I couldn’t seem to find an answer.
Like the original poster, MaxInlineBody doesn’t do what I need, I just want
to leave the .txt attachments as Attachments and not show them inline.

Does anyone have a patch for this (RT 3.2.3) or can anyone point me in the
right direction for what I need to modify? I’m no coder, but I’ve managed to
hack in a few modifications that do what we need. From my amateur point of
view, it appears text attachments and emails that come in text are stores
text/plain meaning I can’t handle this in ShowTransactionAttachments; it
appears I’d need to handle this as the attachment came in?

Since I didn’t get a reply from anyone (except the other rt-user asking
for the same thing), is this something I could offer a code-for-cash type
sponsorship to spur someone to develop this? Contact me off-list if this
is something you’re willing to try.

We’re still on RT 3.2.3, don’t know if that matters much.

-jd

This one goes back a ways (Nov, 2004) but I couldn’t seem to find an
answer. Like the original poster, MaxInlineBody doesn’t do what I need, I
just want to leave the .txt attachments as Attachments and not show them
inline.

We’re still on RT 3.2.3, don’t know if that matters much.

I am on 3.4.2, and text attachments are not included inline (if I 

understand what you mean by inline) but when I view the ticket in the
History, it says “Download .login text/plain 130b”.
I do see the text of the attachment in the auto-reply templates
(and actually it doesn’t include the body of the message, so the problem
is probably in my template)

You can send an email to support at limedaley.com if you would 

like to see how it works and if it is working differently than your system.