Re: Problem with Shared POP script
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 54621
interpreted = N
texte = What if you ran the getline.inc file twice, the first time looking for Reply-To: and the second time looking for To:If get the same email back them maybe you could try searching for " To:"Or could you just search for the " To:" to begin with. Perhaps searching for the extra space could be what you are looking for to begin with.Try this:[text]to=[include file=getline.inc&find=[url] To:[/url]&data=[url][header][/url]][/text]Matt Perosinj-singles.comijo.comPhil Herring wrote:>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 inbound>emails to "thread" correspondence. (We send outbound email with a unique>number in the from and reply-to fields so when we receive the reply, we can>strip 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 works>most of the time... Unless the "Reply-To:" field comes first. Then the>script finds the "To" in "Reply-To" and finds the sender's address from the>reply-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/>> >-------------------------------------------------------------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:
What if you ran the getline.inc file twice, the first time looking for Reply-To: and the second time looking for To:If get the same email back them maybe you could try searching for " To:"Or could you just search for the " To:" to begin with. Perhaps searching for the extra space could be what you are looking for to begin with.Try this:[text]to=[include file=getline.inc&find=[url] To:[/url]&data=[url][header][/url]][/text]Matt Perosinj-singles.comijo.comPhil Herring wrote:>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 inbound>emails to "thread" correspondence. (We send outbound email with a unique>number in the from and reply-to fields so when we receive the reply, we can>strip 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 works>most of the time... Unless the "Reply-To:" field comes first. Then the>script finds the "To" in "Reply-To" and finds the sender's address from the>reply-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/>> >-------------------------------------------------------------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/
Matthew A Perosi
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:
Press Release hit the NewsWire!!! (1997)
Calculating multiple shipping... (1997)
WebCat2 - storing unformatted date data? (1997)
Editing two databases in one form using [replace]? (1998)
[ShowIf] and empty fields (1997)
RE: automatic reload of frameset (1997)
using showpage and showcart commands (1996)
Pre-flight public flag (1997)
web delivery (1997)
Calculating Shipping (1997)
Parameter Passing Value (2002)
Can webcat 3.0/4.0 handle 1,000,000 hits a day? (2000)
[OT] Little Flash help (2007)
[WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (2010)
Less than or equal to........ (1997)
WCS Newbie question (1997)
Great product and great job ! (1997)
applet example (1997)
WebCat2 - [format thousands] (1997)
WebCat2.0 [format thousands .0f] no go (1997)