Scythe000 Posted February 25, 2003 Posted February 25, 2003 Hi, all! Okay, I looked over the other article about parsing emails, and it was really helpfull, but I can't seem to get it to work. I believe I'm following his directions, but everytime I run my script, my field (for example "city") stays blank. Here is the contents of the email I'm trying to parse: Form from: http://travelagentdeals.com/pages/Subscribe.html Filled out by: 207.178.226.62 Email created by: Follow up: http://www.travelagentdeals.com/pages/thank_you.html ------------------------------------------------------------ Fax+Number: 234-235-2341 Zip+Code: 123456 Business+Profile: only Commercial SMTP+Server: mail.iswest.com Name: john bigboote Done: Submit Query ARC%2FIATAN+Number: Specialize+in: Debug: OFF Consortium: Website: City: drhesrhe Computer+Type: HTML capable Phone+Number: 234-235-2341 Agency: Additional+Email+12: State%2FProvince: ca Additional+Email+22: Email: [email protected] Additional+Email+32: Agency+Address+1: Okay, and here is a snippet of my script, which should display the value of the city in the current email, which I'm pulling in using pop3it: Set Field ["city", "Middle(TextChunk, Position( Email, "
BobWeaver Posted February 25, 2003 Posted February 25, 2003 Not sure which other article you are refering to, but the formula you posted won't do this by itself. It looks like you may have missed something. What exactly is "TextChunk" ?
andygaunt Posted February 25, 2003 Posted February 25, 2003 As per your code above, It works fine IF the TextChunk and Email fields contain the same data (as posted by you)
djgogi Posted February 25, 2003 Posted February 25, 2003 Didn't check your script but I've attached the file with an alternative way to script it. (It works with data you have supplied) Dj Parser.fp5.zip
Newbies SteveAtWork Posted March 5, 2003 Newbies Posted March 5, 2003 Hate to interject, but I am also searching for a solution to parsing email data into FMP - can someone post, or point me to, the full solution for this? Thanks.
Lee Smith Posted March 5, 2003 Posted March 5, 2003 Steven, If your mail is separated like the example given by the original poster, then download the attachment offered above by DJ, It works great. If not, an example of your text file that you need to parse would help point you in the right direction. Lee
Scythe000 Posted March 20, 2003 Author Posted March 20, 2003 Ugh, thanks, guys. I made a dumb mistake as was posted. I appreciate the advice. I would have responed sooner, but i seems that i'm no longer being notified of responses to my posts by e-mail...hhmmm..
Recommended Posts
This topic is 7920 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now