<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Stripping attachments from inbound emails in SPM forum</title>
    <link>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036513#M31027</link>
    <description>&lt;P&gt;So with the help of Rob Hayes on my team, we've figured out how to filter by that alt=".*"&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We put a bus rule on the sys_email table just like yours, and made the image tag contain what we wanted to filter. In our case, we're looking for alt=".*_target_sn"&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We also discovered that for some reason, the MAC version of outlook strips the first character off the alt= value in each image tag on every reply. So we made the tag start with 123456789_target_sn. You'll see in the script where we filter the regex accordingly. This gives our end users up to 10 replies before it starts stacking the images we're trying to filter.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Table: sys_emal&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;When: After&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Condition: current.body.indexOf('&amp;lt;img') &amp;gt; 0&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;(function executeRule(current, previous /*null when async*/) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var attachsToDelete = current.body.match(/&amp;lt;img.*alt=".*target_sn".*&amp;gt;/g);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var numToDelete = attachsToDelete.length;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; if (numToDelete &amp;gt; 0) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; for (var x = 0; x &amp;lt; numToDelete; x++) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var sysIdStart = attachsToDelete[x].search(/src="cid:/) + 'src="cid:'.length;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var fileName = attachsToDelete[x].substring(sysIdStart, attachsToDelete[x].search(/@/));&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var grSysAttach = new GlideRecord('sys_attachment');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; grSysAttach.addQuery('file_name','STARTSWITH', fileName);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; grSysAttach.addQuery('table_name', 'sys_email');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; grSysAttach.addQuery('table_sys_id', current.sys_id);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; grSysAttach.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; if (grSysAttach.next() &amp;amp;&amp;amp; grSysAttach.getRowCount() &amp;lt; 2) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; grSysAttach.deleteRecord();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;// current.body = current.body.replace(/&amp;lt;img.*alt="sn_header_footer".*&amp;gt;/g,'');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;})(current, previous);&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 07 Sep 2016 15:53:15 GMT</pubDate>
    <dc:creator>davidself3</dc:creator>
    <dc:date>2016-09-07T15:53:15Z</dc:date>
    <item>
      <title>Stripping attachments from inbound emails</title>
      <link>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036510#M31024</link>
      <description>&lt;P&gt;A while ago I wrote a small Business Rule that stripped out image attachments from emails.&lt;/P&gt;&lt;P&gt;Works pretty well, but it was not restricted to working on embedded files, so a user attaching a genuinely small image may find it stripped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have revisited this and i have now come up with an updated version - running on Fuji.&lt;/P&gt;&lt;P&gt;this will only process images that are embedded and not attached.&lt;/P&gt;&lt;P&gt;This code strips all files that are below 7500 bytes - I would normally use less, but the company logo where I am now is just under this size.&lt;/P&gt;&lt;P&gt;I have tested with emails in from O365, outlook, gmail, vpop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name: &amp;nbsp; Remove small embedded image attachments&lt;/P&gt;&lt;P&gt;Table: &amp;nbsp; sys_email&lt;/P&gt;&lt;P&gt;When: &amp;nbsp; After&lt;/P&gt;&lt;P&gt;Insert: Checked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14489935985443294 jive_text_macro" data-renderedposition="302_8_1192_688" jivemacro_uid="_14489935985443294"&gt;&lt;P&gt;function onAfter(current, previous) {&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; //This function will be automatically called when this rule is processed.&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; var strText = current.body;&lt;/P&gt;&lt;P&gt; &amp;nbsp; var regex = /sys_attachment\b[\W.]do\b[\W?]sys_id=\w{32}/igm;&lt;/P&gt;&lt;P&gt; &amp;nbsp; var arrMatches =[];&lt;/P&gt;&lt;P&gt; &amp;nbsp; // now try to find a match&lt;/P&gt;&lt;P&gt; &amp;nbsp; // the error is setting the value arrMatches to something as otherwise it breaks&lt;/P&gt;&lt;P&gt; &amp;nbsp; try &lt;/P&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;P&gt; &amp;nbsp; arrMatches = strText.match(regex);&lt;/P&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;P&gt; &amp;nbsp; catch(e)&lt;/P&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;P&gt; &amp;nbsp; arrMatches = 'something';&lt;/P&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;P&gt; &amp;nbsp; if (arrMatches != null)&lt;/P&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;P&gt; &amp;nbsp; for (i=0;i&amp;lt;arrMatches.length;i++)&lt;/P&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;P&gt; &amp;nbsp; // get the Sys Attachment Sys_id&lt;/P&gt;&lt;P&gt; &amp;nbsp; var strSASys_id = arrMatches[i].substr(arrMatches[i].length - 32);&lt;/P&gt;&lt;P&gt; &amp;nbsp; // now look for the record&lt;/P&gt;&lt;P&gt; &amp;nbsp; // needs to be the type contains image (as we are only removing those)&lt;/P&gt;&lt;P&gt; &amp;nbsp; // and size needs to be below 7500.&lt;/P&gt;&lt;P&gt; &amp;nbsp; // this figure has been chosen as an ARM logo comes in at 7079&lt;/P&gt;&lt;P&gt; &amp;nbsp; // normally I would suggest 5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; var sagr = new GlideRecord('sys_attachment');&lt;/P&gt;&lt;P&gt; &amp;nbsp; sagr.addQuery('sys_id',strSASys_id);&lt;/P&gt;&lt;P&gt; &amp;nbsp; sagr.addQuery('content_type','CONTAINS','image');&lt;/P&gt;&lt;P&gt; &amp;nbsp; sagr.addQuery('size_bytes','&amp;lt;','7500');&lt;/P&gt;&lt;P&gt; &amp;nbsp; sagr.query();&lt;/P&gt;&lt;P&gt; &amp;nbsp; if (sagr.next())&lt;/P&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;P&gt; &amp;nbsp; sagr.deleteRecord();&lt;/P&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and a tweaked attachment mail script that we will use&lt;/P&gt;&lt;P&gt;the latest attachments are at the top&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14489936882954904 jive_text_macro" data-renderedposition="1074_8_1192_864" jivemacro_uid="_14489936882954904" modifiedtitle="true"&gt;&lt;P&gt;printattachments(); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function printattachments() { &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; // set defaults and intial settings&lt;/P&gt;&lt;P&gt; &amp;nbsp; var i=0;&lt;/P&gt;&lt;P&gt; &amp;nbsp; var strAtt = '';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; // query against the attachment table and see if there are any attachments&lt;/P&gt;&lt;P&gt; &amp;nbsp; var gr = new GlideRecord('sys_attachment');&lt;/P&gt;&lt;P&gt; &amp;nbsp; gr.addEncodedQuery('content_typeNOT LIKEmessage^content_typeNOT LIKEcalendar^table_sys_id='+current.sys_id);&lt;/P&gt;&lt;P&gt; &amp;nbsp; gr.orderByDesc('sys_updated_on');&lt;/P&gt;&lt;P&gt; &amp;nbsp; gr.query();&lt;/P&gt;&lt;P&gt; &amp;nbsp; while (gr.next()) &lt;/P&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;P&gt; &amp;nbsp; // increase the count of attachments and then create a message with a HREF link to each attachment&lt;/P&gt;&lt;P&gt; &amp;nbsp; i++;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &amp;nbsp; strAtt += 'Attachment: &amp;lt;a href="&lt;/SPAN&gt;&lt;A title="k-external-small" class="jive-link-external-small" href="http://'+gs.getProperty" rel="nofollow" target="_blank"&gt;http://'+gs.getProperty&lt;/A&gt;&lt;SPAN&gt;("instance_name")+'.service-now.com/sys_attachment.do?sys_id=' + gr.sys_id + '"&amp;gt;' + gr.file_name + '&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; } &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; // Now check to see if there are any attachments and anything to add to the notification&lt;/P&gt;&lt;P&gt; &amp;nbsp; // if there are no attachments, add nothing to the ticket.&lt;/P&gt;&lt;P&gt; &amp;nbsp; if (i &amp;gt; 0)&lt;/P&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;P&gt; &amp;nbsp; // there are attachments, now lets get the ticket type&lt;/P&gt;&lt;P&gt; &amp;nbsp; if (current.sys_class_name == 'incident')&lt;/P&gt;&lt;P&gt; &amp;nbsp; strTicket = 'Incident';&lt;/P&gt;&lt;P&gt; &amp;nbsp; else if (current.sys_class_name == 'sc_request')&lt;/P&gt;&lt;P&gt; &amp;nbsp; strTicket = 'Request';&lt;/P&gt;&lt;P&gt; &amp;nbsp; else if (current.sys_class_name == 'sc_req_item')&lt;/P&gt;&lt;P&gt; &amp;nbsp; strTicket = 'Order';&lt;/P&gt;&lt;P&gt; &amp;nbsp; else if (current.sys_class_name == 'change_request')&lt;/P&gt;&lt;P&gt; &amp;nbsp; strTicket = 'Change Request';&lt;/P&gt;&lt;P&gt; &amp;nbsp; else if (current.sys_class_name == 'change_task')&lt;/P&gt;&lt;P&gt; &amp;nbsp; strTicket = 'Change Task';&lt;/P&gt;&lt;P&gt; &amp;nbsp; else if (current.sys_class_name == 'problem')&lt;/P&gt;&lt;P&gt; &amp;nbsp; strTicket = 'Problem';&lt;/P&gt;&lt;P&gt; &amp;nbsp; else if (current.sys_class_name == 'problem_task')&lt;/P&gt;&lt;P&gt; &amp;nbsp; strTicket = 'Problem Task';&lt;/P&gt;&lt;P&gt; &amp;nbsp; else&lt;/P&gt;&lt;P&gt; &amp;nbsp; strTicket = current.sys_class_name;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; // now lets see if we have 1 or more attachments&lt;/P&gt;&lt;P&gt; &amp;nbsp; if (i==1)&lt;/P&gt;&lt;P&gt; &amp;nbsp; strMsg = 'There is 1 attachment associated with this ' + strTicket + '.&amp;lt;br&amp;gt;Please click on the link to open / download the attachment :&amp;lt;p&amp;gt;';&lt;/P&gt;&lt;P&gt; &amp;nbsp; else&lt;/P&gt;&lt;P&gt; &amp;nbsp; strMsg = 'There are ' + i + ' attachments associated with this ' + strTicket + '.&amp;lt;br&amp;gt;Please click on the link to open / download the relevant attachment :&amp;lt;p&amp;gt;';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; // Lets combine our nice ticket count with all the links&lt;/P&gt;&lt;P&gt; &amp;nbsp; strMsg += strAtt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; template.print(strMsg);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Dec 2015 18:17:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036510#M31024</guid>
      <dc:creator>poyntzj</dc:creator>
      <dc:date>2015-12-01T18:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Stripping attachments from inbound emails</title>
      <link>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036511#M31025</link>
      <description>&lt;P&gt;Thank you for sharing this Julian, I'm currently working on a solution that will strip alt=signature and this was a great starting point for my efforts.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Best,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;David&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Aug 2016 15:44:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036511#M31025</guid>
      <dc:creator>dself</dc:creator>
      <dc:date>2016-08-31T15:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Stripping attachments from inbound emails</title>
      <link>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036512#M31026</link>
      <description>&lt;P&gt;Be nice to see what you come up with&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:16:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036512#M31026</guid>
      <dc:creator>poyntzj</dc:creator>
      <dc:date>2016-09-01T09:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Stripping attachments from inbound emails</title>
      <link>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036513#M31027</link>
      <description>&lt;P&gt;So with the help of Rob Hayes on my team, we've figured out how to filter by that alt=".*"&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We put a bus rule on the sys_email table just like yours, and made the image tag contain what we wanted to filter. In our case, we're looking for alt=".*_target_sn"&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We also discovered that for some reason, the MAC version of outlook strips the first character off the alt= value in each image tag on every reply. So we made the tag start with 123456789_target_sn. You'll see in the script where we filter the regex accordingly. This gives our end users up to 10 replies before it starts stacking the images we're trying to filter.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Table: sys_emal&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;When: After&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Condition: current.body.indexOf('&amp;lt;img') &amp;gt; 0&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;(function executeRule(current, previous /*null when async*/) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var attachsToDelete = current.body.match(/&amp;lt;img.*alt=".*target_sn".*&amp;gt;/g);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var numToDelete = attachsToDelete.length;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; if (numToDelete &amp;gt; 0) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; for (var x = 0; x &amp;lt; numToDelete; x++) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var sysIdStart = attachsToDelete[x].search(/src="cid:/) + 'src="cid:'.length;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var fileName = attachsToDelete[x].substring(sysIdStart, attachsToDelete[x].search(/@/));&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var grSysAttach = new GlideRecord('sys_attachment');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; grSysAttach.addQuery('file_name','STARTSWITH', fileName);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; grSysAttach.addQuery('table_name', 'sys_email');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; grSysAttach.addQuery('table_sys_id', current.sys_id);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; grSysAttach.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; if (grSysAttach.next() &amp;amp;&amp;amp; grSysAttach.getRowCount() &amp;lt; 2) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; grSysAttach.deleteRecord();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;// current.body = current.body.replace(/&amp;lt;img.*alt="sn_header_footer".*&amp;gt;/g,'');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;})(current, previous);&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Sep 2016 15:53:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036513#M31027</guid>
      <dc:creator>davidself3</dc:creator>
      <dc:date>2016-09-07T15:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Stripping attachments from inbound emails</title>
      <link>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036514#M31028</link>
      <description>&lt;P&gt;Hi Julian your postings on email attachments have been very insightful- can you read my question I posted today and provide some ideas ? &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A title="Select Specific Attachments in Notifcations" __default_attr="236717" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="Select Specific Attachments in Notifcations" data-renderedposition="52_8_287_16" href="https://www.servicenow.com/community?id=community_question&amp;amp;sys_id=4b304f61db98dbc01dcaf3231f9619ea"&gt;Select Specific Attachments in Notifcations&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Sep 2016 19:15:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036514#M31028</guid>
      <dc:creator>bammar</dc:creator>
      <dc:date>2016-09-08T19:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stripping attachments from inbound emails</title>
      <link>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036515#M31029</link>
      <description>&lt;P&gt;I'm assuming Image Tags can be set up in Exchange - would that be correct David?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jan 2017 15:07:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036515#M31029</guid>
      <dc:creator>amacqueen</dc:creator>
      <dc:date>2017-01-20T15:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Stripping attachments from inbound emails</title>
      <link>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036516#M31030</link>
      <description>&lt;P&gt;Hi Angus! Sorry for the delayed response, didn't even see this until just now. But what we did was set the tag by editing the jpg itself. Then we put that in our notification template that gets sent out by ServiceNow on all header / footers. Then the code in the business rule looks for that image tag and deletes it after it hits the table.. Works like a charm! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2017-01-20 at 11.16.22 AM.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/106298i9E6C180A74E43843/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-01-20 at 11.16.22 AM.png" alt="Screen Shot 2017-01-20 at 11.16.22 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:15:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036516#M31030</guid>
      <dc:creator>davidself3</dc:creator>
      <dc:date>2017-01-20T17:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stripping attachments from inbound emails</title>
      <link>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036517#M31031</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Follow up, we're using the email header footer addon created by Jonatan Jardi on share. Here's the link right to it. &lt;/SPAN&gt;&lt;A title="k-external-small" class="jive-link-external-small" href="https://share.servicenow.com/app.do#/detailV2/94762fb72bb221004a1e976be8da1504/overview" rel="nofollow" target="_blank"&gt;https://share.servicenow.com/app.do#/detailV2/94762fb72bb221004a1e976be8da1504/overview&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:26:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/stripping-attachments-from-inbound-emails/m-p/1036517#M31031</guid>
      <dc:creator>davidself3</dc:creator>
      <dc:date>2017-01-20T17:26:44Z</dc:date>
    </item>
  </channel>
</rss>

