Problem with Shared POP script
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 54618
interpreted = N
texte = Hi all,Is anyone using the Shared POP script to capture email?We built a customer service system that keys on the "to" field of inboundemails to "thread" correspondence. (We send outbound email with a uniquenumber in the from and reply-to fields so when we receive the reply, we canstrip down the "to" field until all that remains is the unique number.)Here's the problem:The 'to" field is isolated from the header using this code:[text]to=[include file=getline.inc&find=To:&data=[url][header][/url]][/text]Getline.inc contains:[text]result=[middle startafter=[url][find][/url]][data][/middle][/text]As you can see, it is searching for "To:" in the email header, which worksmost of the time... Unless the "Reply-To:" field comes first. Then thescript finds the "To" in "Reply-To" and finds the sender's address from thereply-to field.Anyone have a suggestion on how I can differentiate "find=To:" from"find=Reply-To:"?Thanks!Ph. -------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Hi all,Is anyone using the Shared POP script to capture email?We built a customer service system that keys on the "to" field of inboundemails to "thread" correspondence. (We send outbound email with a uniquenumber in the from and reply-to fields so when we receive the reply, we canstrip down the "to" field until all that remains is the unique number.)Here's the problem:The 'to" field is isolated from the header using this code:[text]to=[include file=getline.inc&find=To:&data=[url][header][/url]][/text]Getline.inc contains:[text]result=[middle startafter=[url][find][/url]][data][/middle][/text]As you can see, it is searching for "To:" in the email header, which worksmost of the time... Unless the "Reply-To:" field comes first. Then thescript finds the "To" in "Reply-To" and finds the sender's address from thereply-to field.Anyone have a suggestion on how I can differentiate "find=To:" from"find=Reply-To:"?Thanks!Ph. -------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Phil Herring
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
make updates in a temporary database (2004)
Emailer prefs in two places ... (1997)
Clear command and ShoppingCart.tmpl (1997)
Logout? (1998)
Another bug to squash (WebCat2b13 Mac .acgi) (1997)
WebCat2 several catalogs? (1997)
Price Change (2000)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Searching a field and returning the highest value (1997)
Re: (1998)
refreshing IE with posted .tmpl (1997)
[WebDNA] Serial numbers and pricing for WebDNA 7.0 (2011)
browser info.txt and SSL (1997)
Mac Vs WindowsNT (1997)
WebCatalog 2.1b3 - Plugin or cgi ? (1997)
Test (2003)
2.1b3 --> way slow (1997)
[WebDNA] tcp connect is slow...any ways to speed it up? (2008)
categorys (1998)
[WebDNA] To: WSC (2010)