Re: reading a email

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 30675
interpreted = N
texte = At 7:26 AM 4/20/00, Aaron Lynch wrote: >Yeah, it does make sense, but, it don't work. unurl doesn't work at all. I >had to url the text nd then url it again in the middle tag to get it to >work, and I dunno why. > >Your suggestion doesn't work because %0D is not unique, I just get >everything after the From: > >And you're right, netscape puts it in a different order and breaks it...It would seem logical to me anyway that the endbefore should find the first occurrence of the target after the startafter. If WebCat doesn't work that way then that's for someone else to say why.However... try something like this creating an intermediate variable [tempSender][!]get sender[/!] [text]tempSender=[middle startafter=[url]%0DFrom%3A%20[/url]&endbefore=[url]%0D[/url]][message][ /middle][/text] Then using a loop you can step through [tempSender] character by character looking for the %0D and when you find it, set a math variable to [index]-1. And then use that number to get the data you want.[math]tempSenderLen=[countchars][tempSender][/countchars][/math][loop start=1&end=1] [showif [getchars start=[index]&end=[index]][tempSender][/getchars]=[url]%0D[/url]] [math]theEnd=index=1[/math] [/showif] [/loop][text]realSender=[getchars start=1&end=[theEnd]][tempSender][/getchars][/text] **Disclaimer... The above was done quickly and without the benefit of much caffeine and I didn't test it either.___Joe____________________________________________________ Joseph D'Andrea JoeDan@West21.com WEST21.com Internet services for the 21st Century http://www.west21.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 Associated Messages, from the most recent to the oldest:

    
  1. Re: reading a email - I GOTS IT! (Aaron Lynch 2000)
  2. Re: reading a email (Joseph D'Andrea 2000)
  3. Re: reading a email (Aaron Lynch 2000)
  4. Re: reading a email (Joseph D'Andrea 2000)
  5. Re: reading a email (Aaron Lynch 2000)
  6. Re: reading a email (Joseph D'Andrea 2000)
  7. Re: reading a email (Joseph D'Andrea 2000)
  8. Re: reading a email (dale@gmr.dresdner.net 2000)
  9. Re: reading a email (Aaron Lynch 2000)
  10. Re: reading a email (dale@gmr.dresdner.net 2000)
  11. Re: reading a email (Aaron Lynch 2000)
  12. Re: reading a email (dale@gmr.dresdner.net 2000)
  13. reading a email (Aaron Lynch 2000)
At 7:26 AM 4/20/00, Aaron Lynch wrote: >Yeah, it does make sense, but, it don't work. unurl doesn't work at all. I >had to url the text nd then url it again in the middle tag to get it to >work, and I dunno why. > >Your suggestion doesn't work because %0D is not unique, I just get >everything after the From: > >And you're right, netscape puts it in a different order and breaks it...It would seem logical to me anyway that the endbefore should find the first occurrence of the target after the startafter. If WebCat doesn't work that way then that's for someone else to say why.However... try something like this creating an intermediate variable [tempSender][!]get sender[/!] [text]tempSender=[middle startafter=[url]%0DFrom%3A%20[/url]&endbefore=[url]%0D[/url]][message][ /middle][/text] Then using a loop you can step through [tempSender] character by character looking for the %0D and when you find it, set a math variable to [index]-1. And then use that number to get the data you want.[math]tempSenderLen=[countchars][tempSender][/countchars][/math][loop start=1&end=1] [showif [getchars start=[index]&end=[index]][tempSender][/getchars]=[url]%0D[/url]] [math]theEnd=index=1[/math] [/showif] [/loop][text]realSender=[getchars start=1&end=[theEnd]][tempSender][/getchars][/text] **Disclaimer... The above was done quickly and without the benefit of much caffeine and I didn't test it either.___Joe____________________________________________________ Joseph D'Andrea JoeDan@West21.com WEST21.com Internet services for the 21st Century http://www.west21.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 Joseph D'Andrea

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:

WebDNA on Intel Mac? (2006) Some Advise needed (1997) WC on Mac OS X or Mac OS X Server 2.x (2001) PROBLEM (1997) f2 download problems (1997) WCS Newbie question (1997) WebCat & Liststar ... & Rumpus, too! (1997) filemaker - orderfile (1997) Signal Raised (1997) Some Questions (1997) Pithy questions on webcommerce & siteedit (1997) formatting dates from a field ... (1997) Webcat no longer supported? (2006) WebDNA Solutions --> Date format suggestions (1998) A multi-processor savvy WebCatalog? (1997) Webcatalog [blank] Problem (1999) X etc.... (1999) French characters in variables (2001) Re:no [search] with NT (1997) log files (1998)