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:
please anybody help (2005)
New WebCatalog site! (1997)
stumped (2001)
Auto Delete EmailCompleted Files (2002)
WebCatalog2 Feature Feedback (1996)
all records returned. (1997)
Enhancement Request for WebCatalog-NT (1996)
re: emailer prob (1998)
Username for Admin Group (1997)
Not really WebCat (1997)
PDF writefile problem (2004)
Newbie Progress! (2000)
writefile and deletefile (1998)
Search results templates (1996)
Running 2 two WebCatalog.acgi's (1996)
Strange ShowIf behaviour (2001)
credit card question (simple) (2001)
Who is doing sign-ups-got it (1998)
vs (1997)
credit card (1997)