How to find the other url, if any?
How to find the other url, if any?
- Subject: How to find the other url, if any?
- From: Steen <email@hidden>
- Date: Wed, 12 Jun 2002 17:04:43 +0200
Hello everyone.
I'm using OS9.1 and Entourage
From my Entourage I wish to get the url other than
http://www.onlydemo.no/
My wish is to put the mail in different folder if it contain another url or
not.
The mail I get look something like this:
-------- NEWS ------------
http://www.onlydemo.no/and_so_ond/id???
http://www.onlydemo.no/test/and_so_ond/id???
http://www.onlydemo.no/test/test/and_so_ond/id???
(this 3 url is there always and always with a different ending)
Describe:
Bla bla bla
Bla bla www.sweetest.no
(sometimes it is a url and other times it is not a url)
-----------------
Here is my script (part of it):
set url to REMatch myString pattern "www\\.[^$/]+"
if (url is not equal to "www.onlydemo.no") then
--beep
set www to false
else
--beep
set www to true
end if
if (www is false) then
move incoming message id idl to the folder id 114
end if
if (www is true) then
move incoming message id idl to the folder id 205
end if
the above mail moves to folder id 114.
a mail whiteout the url: www.sweetest.no will also go to folder id 114
but that mail do not contain www.sweetest.no.
Why do it move?
So my goal is:
if another url is found then www.onlydemo.no in the mail. then complain and
move the mail to folder id114.
If the mail don't contain other url then the www.onlydemo.no, move mail to
folder id 205.
Any help appreciated.
Steen
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.