Avoiding signature images
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2018 05:09 AM
Hi All,
How to avoid signature images from being attached with incident, regardless of image sizes/types?
I am looking for the best solution, referred few threads & thought of doing that by calculating the hash values of signature images to ignore & maintain that in a table. But I don't know how to calculate the hash value of signature images alone & maintain that in a table.
Kindly help me.
Thanks,
Anna.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2019 05:30 AM
I haven't noticed any performance issue, but then again I haven't tested on a production instance.
Used:
//used on on before business rule on sys_attachment. Current relates to the current object.
var newAttachment = GlideStringUtil.base64Encode(new GlideSysAttachment().getBytes(current));
//found is an attachment key found in sys_attachment based on our blacklisted attachment table
var invAttachment = GlideStringUtil.base64Encode(new GlideSysAttachment().getBytes(found));
if(newAttachment == invAttachment) {
gs.log("We blacklisted something");
current.setAbortAction(true);
}
Did you use something similiar, and what were your performance issues?
Best regards,
Sebastian Laursen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2019 02:07 PM
My company implemented the Email Image filtering properties and set the glide.email.inbound.image_sys_attachment.filter.minimum_bytes property to 5000. It isn't perfect, but it has eliminated the majority of the junk signature images, and it's been over a year and no one has complained that it blocked a legitimate attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2019 01:10 PM
Also, as of New York, a SHA256 is calculated and put into sys_attachment.hash field and this is something you can use.
See "Attachments are assigned unique identifiers" in the New York release notes.
Additionally if an email arrives with an attachment (image or otherwise),its hash is compared to other attachments on the target record that have a hash. If the identical content already exists on the target record, the attachment is not moved to the target record, but remains on the sys_email record.