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:
[shell] (2002)
Cart Number Propagation (1997)
Updating Integer value in DB (2007)
re:check boxes (1997)
Default error page (2002)
search function (2005)
Search Order? (2000)
Request for page test (2003)
Need help with form (1998)
Sorting error (1997)
Emailer (1997)
build a select list from a db search (2004)
Date Time Oddness (1999)
Out of the woodwork (2007)
GuestBook example (1997)
Incompatibility with WebCat 3 templates ... (2000)
[WebDNA] Dynamic JSON Problem (2020)
Next X hits (1996)
PDF Tools (2006)
Multiple Ad databases? (1997)