Solved

Parsing CFPOP results

Posted on 2013-05-14
5
416 Views
Last Modified: 2013-05-19
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
Comment
Question by:joedfuse
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:joedfuse
ID: 39164232
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
 
LVL 25

Expert Comment

by:dgrafx
ID: 39166735
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
 

Author Comment

by:joedfuse
ID: 39166804
Would htmlbody force the message to preserve formatting?
0
 
LVL 25

Accepted Solution

by:
dgrafx earned 500 total points
ID: 39166821
you'll need to try to see the differences
sometimes it's the same as body and other times it's not
0
 

Author Closing Comment

by:joedfuse
ID: 39179503
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question