Turning off *all* attachments in RT2

I thought the following config.pm settings would cause RT2 to drop all
attachments. It is still saving the attachments and giving me the link to
download the attachment. Any ideas how to completely turn off attachments?

$MaxAttachmentSize sets the maximum size (in bytes) of attachments stored

in the database.

$MaxAttachmentSize = 0;

$TruncateLongAttachments: if this is set to a non-undef value,

RT will truncate attachments longer than MaxAttachmentLength.

$TruncateLongAttachments = 1;

$DropLongAttachments: if this is set to a non-undef value,

RT will silently drop attachments longer than MaxAttachmentLength.

$DropLongAttachments = 1;

(yes I have stopped and then started Apache after making the changes)

I thought the following config.pm settings would cause RT2 to drop all
attachments. It is still saving the attachments and giving me the link to
download the attachment. Any ideas how to completely turn off attachments?

$MaxAttachmentSize sets the maximum size (in bytes) of attachments stored

in the database.

$MaxAttachmentSize = 0;

Is it possible that this value, when set to 0, allows any size to be saved?
What happens if you set it to 1?

rob

Aren’t you going to run into major issues here, being that RT2 considers
text that you send to it (via e-mail or the commandline or web ui)
attachments?

Sheeri Kritzer
Systems Administrator
University Systems Group
Tufts University
617-627-3925
sheeri.kritzer@tufts.eduOn Fri, 8 Feb 2002, Rob Walker wrote:

On Friday 08 February 2002 03:38, Bill Gerrard wrote:

I thought the following config.pm settings would cause RT2 to drop all
attachments. It is still saving the attachments and giving me the link to
download the attachment. Any ideas how to completely turn off attachments?

$MaxAttachmentSize sets the maximum size (in bytes) of attachments stored

in the database.

$MaxAttachmentSize = 0;

Is it possible that this value, when set to 0, allows any size to be saved?
What happens if you set it to 1?

rob


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Well, so far it looks like you can not turn off attachments in RT2. I
guess I’m going to have to implement our modified stripmime routine from
RT1 on our RT2 installation.

Yes RT2 treats everything as attachments, including the regular old
message plain text.

It appears that MaxAttachmentSize of 0 means unlimited. I changed it to 1
and started getting 1 byte message text and 1 byte attachments when
TruncateLongAttachments was defined. If I undef TruncateLongAttachments
and define DropLongAttachments then the messages end up completely empty.

TruncateLongAttachments has precedence over DropLongAttachments.

In case anyone is wondering our policy is plain text messages only to our
ticketing systems. No HTML pages, no word docs, no screen shots, etc.

This has turned out to be a good thing as well since we have some
employees who feel they need to view every single attachment they receive
no matter how many times we warn them about virii or worms in attachments.

I could hide the attachments link, however the attachments still get
saved to the database.

Thanks for your kind advice in helping figure this out…