Re: reading a email
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 30666
interpreted = N
texte = on 4/20/00 6:56 AM, Joseph D'Andrea at JoeDan@West21.com wrote:> At 2:25 AM 4/20/00, Aaron Lynch wrote:>> Right, but how do I get webcatalog to read the mail, and then also ignore>> all the headers, I'm thinking I have to do this with applescript but I don't>> know how.> > Do you have NetCloakPro available? It has the ability to check a POP> mailbox and then allow you to do stuff with the fields in the e-mail> such as the to, from, subject and body fields.> > I'm using it to track e-mail to a certain address. The MailAction> will get the mail and for each message it will write a record in a> database like this....> > MESSAGEID
From> 1223457JoeDan@West21.com> 66625262Suzie@west21.com> > Then a Webcat trigger will grab the database [copyfile] [deletefile]> and then do a search of the temporary database of e-mail addresses> and do something with them within a [founditems] loop.> > Maybe you could have someone with NetCloak, hit your e-mail address> and grab the waiting e-mail, then it could hit your webcat server> with something like:> > http://aaronServer.com/cellphonesearch.tpl?sku=22222&from=user@cellphone.com> > If you want more specifics... give me a shout.> > _________________________________________________> Joseph D'Andrea JoeDan@West21.com> WEST21.com Internet services for the 21st Century> http://www.west21.com/> _________________________________________________Thanks Joseph,I think I pretty much have it. here's what I did (I haven't tested thiswith very many mail clients so I'm not 100% sure it works all the time,but...)autoresponder is a alias of the sims mailox folder[listfiles autoresponder/][text]message=[url][includefile=autoresponder/[filename]][/url][/text][!]get search term[/!][text]searchterm=[middlestartafter=[url]Subject%3a%20[/url]&endbefore=[url]%0DFrom%3A%20[/url]][message][/middle][/text][!]get sender[/!][text]sender=[middlestartafter=[url]%0DFrom%3A%20[/url]&endbefore=[url]To%3A%20[/url]][message][/middle][/text][search db=data/catalog.db&wagroup1data=[searchterm]&group1field=sku+mfr&max=10][sendmail to=[unurl][sender][/unurl]&from=server&subject=found [numfound] items][founditems]item#:[sku] price: $[format thousands.0f][price][/format]mfr:[mfr]--------------[/founditems][/sendmail][/search][/listfiles][listfiles autoresponder/][deletefile autoresponder/[filename]][/listfiles]I don't rally understand why I had to double [url] the middle tag, ifsomebody can explain that I'd be grateful. Also if there's a more betterway please lemme know :)-A-------------------------------------------------------------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:
on 4/20/00 6:56 AM, Joseph D'Andrea at JoeDan@West21.com wrote:> At 2:25 AM 4/20/00, Aaron Lynch wrote:>> Right, but how do I get webcatalog to read the mail, and then also ignore>> all the headers, I'm thinking I have to do this with applescript but I don't>> know how.> > Do you have NetCloakPro available? It has the ability to check a POP> mailbox and then allow you to do stuff with the fields in the e-mail> such as the to, from, subject and body fields.> > I'm using it to track e-mail to a certain address. The MailAction> will get the mail and for each message it will write a record in a> database like this....> > MESSAGEIDFrom> 1223457JoeDan@West21.com> 66625262Suzie@west21.com> > Then a Webcat trigger will grab the database [copyfile] [deletefile]> and then do a search of the temporary database of e-mail addresses> and do something with them within a [founditems] loop.> > Maybe you could have someone with NetCloak, hit your e-mail address> and grab the waiting e-mail, then it could hit your webcat server> with something like:> > http://aaronServer.com/cellphonesearch.tpl?sku=22222&from=user@cellphone.com> > If you want more specifics... give me a shout.> > _________________________________________________> Joseph D'Andrea JoeDan@West21.com> WEST21.com Internet services for the 21st Century> http://www.west21.com/> _________________________________________________Thanks Joseph,I think I pretty much have it. here's what I did (I haven't tested thiswith very many mail clients so I'm not 100% sure it works all the time,but...)autoresponder is a alias of the sims mailox folder[listfiles autoresponder/][text]message=[url][includefile=autoresponder/[filename]][/url][/text][!]get search term[/!][text]searchterm=[middlestartafter=[url]Subject%3a%20[/url]&endbefore=[url]%0DFrom%3A%20[/url]][message][/middle][/text][!]get sender[/!][text]sender=[middlestartafter=[url]%0DFrom%3A%20[/url]&endbefore=[url]To%3A%20[/url]][message][/middle][/text][search db=data/catalog.db&wagroup1data=[searchterm]&group1field=sku+mfr&max=10][sendmail to=[unurl][sender][/unurl]&from=server&subject=found [numfound] items][founditems]item#:[sku] price: $[format thousands.0f][price][/format]mfr:[mfr]--------------[/founditems][/sendmail][/search][/listfiles][listfiles autoresponder/][deletefile autoresponder/[filename]][/listfiles]I don't rally understand why I had to double [url] the middle tag, ifsomebody can explain that I'd be grateful. Also if there's a more betterway please lemme know :)-A-------------------------------------------------------------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
Aaron Lynch
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:
WebCommerce: Folder organization ? (1997)
New to WebCat, Help. (1998)
PIXO with cometsite ... and/or other plugins (1998)
WebCat2 - [include] tags (1997)
Databases (2000)
webdna page not found redirect (2007)
Grep doesn't work the same? (2005)
WebCatalog stalls (1998)
Possible Bug in 2.0b15.acgi (1997)
[sendmail] bug? (2000)
Just Testing (1997)
DON'T use old cart file! (1997)
lookup problem (2000)
Lookup Notfound (1998)
email error 159 (1998)
[WebDNA] Sorry WebDNA not running message (2019)
[OT] BBedit Blank Line removal (2003)
reading a email (2000)
expired beta (1997)
[Webcat 2]Next (1997)