Script to check out if max attachment size is reached

Greetings rt-users followers,

I would like to create a script that check out if the max attachment
size of a response is reached and if so, send an autoreply to the
requestor informing him that his documents are too heavy. Indeed,
customers send documents to our customer services but sometimes the
transaction is droped by the system because max attachment is reached
and neither the customer service or the client is notified of it.

I have already checked out the different contribs but nothing seems to
match my request…

Unfortunatly, I’m not really comfortable with rt-users mailing list yet
so maybe this request has already been asked.

Thanks is advance for your help and sorry for my bad english !

Loic Cadoret
IT Technician
Keyyo

Greetings rt-users followers,

I would like to create a script that check out if the max attachment
size of a response is reached and if so, send an autoreply to the
requestor informing him that his documents are too heavy. Indeed,
customers send documents to our customer services but sometimes the
transaction is droped by the system because max attachment is reached
and neither the customer service or the client is notified of it.

Starting in RT 4.2.7, RT records explicit transactions when attachments
are dropped or truncated due to hitting $MaxAttachmentSize. While we
explicitly prevent such transactions from triggering scrips (to prevent
infinite loops), you can likely use them as the basis of your
notifications – or, at least the signal to the RT users to notify
customers of the drop.

  • Alex

Alex,

Thank you for your answer. I forgot to tell you that we are running the
3.8.11 version of RT (our dev team is working on an upgrade but it’s
going to take time and we cannot afford to wait for the migration…).
So do you think that a script would be possible ?

Thanks for your time,

Best regards

Loic Cadoret
IT Technician
KeyyoLe 06/03/2015 18:10, Alex Vandiver a écrit :

On Fri, 06 Mar 2015 12:42:38 +0100 Loïc Cadoret lcadoret@keyyo.com wrote:

Greetings rt-users followers,

I would like to create a script that check out if the max attachment
size of a response is reached and if so, send an autoreply to the
requestor informing him that his documents are too heavy. Indeed,
customers send documents to our customer services but sometimes the
transaction is droped by the system because max attachment is reached
and neither the customer service or the client is notified of it.
Starting in RT 4.2.7, RT records explicit transactions when attachments
are dropped or truncated due to hitting $MaxAttachmentSize. While we
explicitly prevent such transactions from triggering scrips (to prevent
infinite loops), you can likely use them as the basis of your
notifications – or, at least the signal to the RT users to notify
customers of the drop.

  • Alex