• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 422
  • Last Modified:

Parsing CFPOP results

Hello Experts,

Spo i have finally started to look at CFPOP to enhance the commenting system of one of my apps. So far eveything works fine. I tested by creating a little email client in CF to get the message header .. view details and delete messages.

The issue im running into as that all the people sending messages have email signatures that just get added to the end of message without any line breaks or anything.

What I would really like is to remove the signature all together. As well as maintain the line breaks from the email.

Im sure there is a simple way to just parse the body variable but i am drawing a blank.

Any help would be appreciated.

Thanks a ton!
Joe
0
joedfuse
Asked:
joedfuse
  • 3
  • 2
1 Solution
 
joedfuseAuthor Commented:
Also, just to be clear the signature starts with their full name, title, company name, address, phone etc...

Its different info for each person but same general format
0
 
dgrafxCommented:
if i understand you correctly - there isn't a column for signature.

you'll need to devise some method of parsing if you consider it important.
i can't think of an "easy" method - one would need to view a handful of emails and possible stumble onto a pattern that one can exploit.

however you do have body, textbody, & htmlbody to look at and choose which one is best suited for your parsing needs.

good luck ...
0
 
joedfuseAuthor Commented:
Would htmlbody force the message to preserve formatting?
0
 
dgrafxCommented:
you'll need to try to see the differences
sometimes it's the same as body and other times it's not
0
 
joedfuseAuthor Commented:
HTMLbody works for my purpose... as long as the signature stays clean it can be included. Im sure it would be a lot of work to actually strip it out considering they all start with a unique name.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now