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 Perosi nj-singles.com ijo.com Phil 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:

    
  1. Re: Problem with Shared POP script ( Jesse Proudman 2003)
  2. Re: Problem with Shared POP script ( Phil Herring 2003)
  3. Re: Problem with Shared POP script ( Matthew A Perosi 2003)
  4. Re: Problem with Shared POP script ( Jesse Proudman 2003)
  5. Problem with Shared POP script ( Phil Herring 2003)
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 Perosi nj-singles.com ijo.com Phil 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:

Make sure I understand this??? (1997) Has anyone built this already? (2003) BBEdit and WebCatalog 2.0? (1997) sendmail what is SIMS? (1999) remotely add + sign (1997) PIXO support (1997) shownext (2001) Press Release hit the NewsWire!!! (1997) declined orders webmerchant not showing up? (2005) Database formats (2003) Will webdna execute before a [redirect]? (1999) More on the email templates (1997) more on my bbs (1997) autocommit problem (1998) Dealing with da back button (1999) Unformatted Messages (1998) Design Help Needed (1998) math on date? (1997) [math] with first letter in field? (1997) Replace context problem ... and answers (1997)