Our organization uses a script to automatically parse inbound emails into their associated tickets as notes. This can become problematic when an email comes in that has a large number of replies - the large email is added in it's entirety to the notes section, and over time these compound and inflate the ticket notes with lots of extraneous information.
My goal is to truncate everything but the "newest" part of an email when it is parsed into a note. My problem is determining where the most recent reply to an email chain ends, and the rest begins. In plaintext, I believe it's quite simple - look for lines beginning with '>'. In HTML, however, I feel like I'm sifting though a sea of div tags.
Does anyone have any experience with this?#QradarSOAR#SupportMigration#Support