Remove large attachments and replace with download link

We need to give our users the possibility of receiving large files (say >
10MB)

Knowing the attachment size limit all email services impose, we thought
there should be a way to tell RT to replace large attachments with a
download
link when constructing the email message allowing the user to access those
files.

I’ve been searching the internet to no avail.

Any help will be appreciated

Regards,

Hugo Escobar

http://www.associationfinancialservices.com/

4770 Biscayne Blvd, Ste 700
Miami, FL 33137

main: 305.677.0022
support: 305.921.4620
email: hescobar@afslc.com

Follow us on Facebook and Linked-In
http://www.facebook.com/pages/Miami-FL/ASSOCIATION-FINANCIAL/64952991864
http://www.linkedin.com/companies/1006276

NOTICE: This email and any attachment to this email may contain
confidential information. If you are not the intended recipient, you must
not review, retransmit, convert to hard copy, photocopy, use or disseminate
this email or any attachments to it. If you have received this email in
error, please notify us immediately by return email and delete this
message. Please note that if this email contains a forwarded message or is
a reply to a prior message, some or all of the contents of this message or
any attachments may not have been produced by our firm. As our firm may be
deemed a debt collector, if your payment is in default, we may be
attempting to collect a debt on behalf of the association, and any
information obtained may be used for that purpose.

Le 07/06/2016 � 23:23, Hugo Escobar a �crit :

We need to give our users the possibility of receiving large files (say

10MB)

Knowing the attachment size limit all email services impose, we thought
there should be a way to tell RT to replace large attachments with a
download
link when constructing the email message allowing the user to access those
files.

I’ve been searching the internet to no avail.

Have a look at this plugin I just made:

http://search.cpan.org/~elacour/RT-Extension-AttachmentFilter-0.01/

It does not do what you ask for, but it can help you to understand the
process and now some usefull callbacks.

To my knowledge, nobody as done this, but I’m sure it’s possible to do
it cleanly.

Be careful there is code change on file upload between RT 4.2 and 4.4, I
still did not work on 4.4 code (but will do soon …).

We need to give our users the possibility of receiving large files (say

10MB)

Knowing the attachment size limit all email services impose, we thought
there should be a way to tell RT to replace large attachments with a
download
link when constructing the email message allowing the user to access those
files.

I’ve been searching the internet to no avail.

Any help will be appreciated

This is possible in RT 4.4 if you use ExternalStorage Type “AmazonS3”
[1] and activate the “Direct Linking” feature [2].

Chris

[1] https://docs.bestpractical.com/rt/latest/RT_Config.html#External-storage
[2]
https://docs.bestpractical.com/rt/latest/RT/ExternalStorage/AmazonS3.html#Direct-Linking

Thank for your comments and suggestions. We decided to upgrade RT to 4.4On Wed, Jun 8, 2016 at 3:11 AM, Christian Loos cloos@netcologne.de wrote:

Am 07.06.2016 um 23:23 schrieb Hugo Escobar:

We need to give our users the possibility of receiving large files (say

10MB)

Knowing the attachment size limit all email services impose, we thought
there should be a way to tell RT to replace large attachments with a
download
link when constructing the email message allowing the user to access
those
files.

I’ve been searching the internet to no avail.

Any help will be appreciated

This is possible in RT 4.4 if you use ExternalStorage Type “AmazonS3”
[1] and activate the “Direct Linking” feature [2].

Chris

[1]
https://docs.bestpractical.com/rt/latest/RT_Config.html#External-storage
[2]

https://docs.bestpractical.com/rt/latest/RT/ExternalStorage/AmazonS3.html#Direct-Linking

Regards,

Hugo Escobar

http://www.associationfinancialservices.com/

4770 Biscayne Blvd, Ste 700
Miami, FL 33137

main: 305.677.0022
support: 305.921.4620
email: hescobar@afslc.com

Follow us on Facebook and Linked-In
http://www.facebook.com/pages/Miami-FL/ASSOCIATION-FINANCIAL/64952991864
http://www.linkedin.com/companies/1006276

NOTICE: This email and any attachment to this email may contain
confidential information. If you are not the intended recipient, you must
not review, retransmit, convert to hard copy, photocopy, use or disseminate
this email or any attachments to it. If you have received this email in
error, please notify us immediately by return email and delete this
message. Please note that if this email contains a forwarded message or is
a reply to a prior message, some or all of the contents of this message or
any attachments may not have been produced by our firm. As our firm may be
deemed a debt collector, if your payment is in default, we may be
attempting to collect a debt on behalf of the association, and any
information obtained may be used for that purpose.