<div dir="ltr"><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">I've run into a issue (on RT 4.2.9) where an overly large attachment will cause my (OS X Sierra) server to become resource starved.  My guess is that somewhere between Apache, FastCGI, RT, and </span><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">postfix, attempting to send (e.g.) a 50MB attachment using the "On Create Notify AdminCcs" scrip is causing a timeout or similar.</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">$MaxAttachmentSize relates to the database, so doesn't seem helpful in this case.  And was the only setting I could find.</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">I do like receiving email notifications on create (or modify) so I don't want to disable the scrip.</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">From what I can tell the best thing to do would be to:</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px"> - copy NotifyOwnerOrAdminCc.pm to something like NotifyOwnerOrAdminCcWithLimits.pm</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px"> - set "On Create Notify AdminCcs" to use NotifyOwnerOrAdminCcWithLimits.pm</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px"> - in NotifyOwnerOrAdminCcWithLimits.pm figure out how to check the attachment size and either attach (if small) or link (if large)</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">Within NotifyOwnerOrAdminCc.pm my guess is that I would want to override AddAttachment() from SendEmail.pm</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">... at which point my Perl-fu starts to fail me.</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">Does this seem like the right solution (to avoiding the sending of large email attachments)?  And does the rough outline of my plan make sense?</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">Thanks!</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><br style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">Jason</span><br></div>