![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Am Fri, 6 Jan 2006 15:01:03 -0800 schrieb Stuart P. Bentley:
In OL = XP you can create a rule that checks for the senderīs domain and run a script. You can then use the Instr function and search in the body e.g. for www.*.*, http:/*, file:/*, https:/*. If the message contains one of the searched strings use the Move function for moving it into another folder. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook I want to create a spoof filter that If a message comes from the "paypal.com" domain *Except if from "spoof" And the message contains hyperlinks that do not lead to sites in the "paypal.com" domain Then forward the message as an attachment to " *And move it to the "Spoofs" folder. How would/should I go about doing this? |
Ads |
#2
|
|||
|
|||
![]()
OK, so that'd search within the HTML itself for the true URL of the
hyperlink? How exactly would I code this? instr find http://* NOT http://www.paypal.com? And then what? My coding experience is limited to a bit of C++ console programming. "Michael Bauer" wrote: Am Fri, 6 Jan 2006 15:01:03 -0800 schrieb Stuart P. Bentley: In OL = XP you can create a rule that checks for the senderÂīs domain and run a script. You can then use the Instr function and search in the body e.g. for www.*.*, http:/*, file:/*, https:/*. If the message contains one of the searched strings use the Move function for moving it into another folder. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook I want to create a spoof filter that If a message comes from the "paypal.com" domain *Except if from "spoof" And the message contains hyperlinks that do not lead to sites in the "paypal.com" domain Then forward the message as an attachment to " *And move it to the "Spoofs" folder. How would/should I go about doing this? |
#3
|
|||
|
|||
![]()
Am Mon, 9 Jan 2006 12:17:03 -0800 schrieb Stuart P. Bentley:
You need the functions InStr and Mid. In HTML messages you can search for the a href tag with InStr. From that position search the next /a tag. Within that substring determine what exactly the url is and if itīs paypal.com (or whatever) or not. Please have a look into the Object Browser (F2). Switch from All Libraries to Outlook, and select MailItem in the left pane. In the right pane you can now see all the MailItemīs methods, properties etc. Select the Move function and press F1. That leads you to the VBA help topic with a sample. (The same works for the Forward function, of course). -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook OK, so that'd search within the HTML itself for the true URL of the hyperlink? How exactly would I code this? instr find http://* NOT http://www.paypal.com? And then what? My coding experience is limited to a bit of C++ console programming. "Michael Bauer" wrote: Am Fri, 6 Jan 2006 15:01:03 -0800 schrieb Stuart P. Bentley: In OL = XP you can create a rule that checks for the senderīs domain and run a script. You can then use the Instr function and search in the body e.g. for www.*.*, http:/*, file:/*, https:/*. If the message contains one of the searched strings use the Move function for moving it into another folder. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook I want to create a spoof filter that If a message comes from the "paypal.com" domain *Except if from "spoof" And the message contains hyperlinks that do not lead to sites in the "paypal.com" domain Then forward the message as an attachment to " *And move it to the "Spoofs" folder. How would/should I go about doing this? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how not to filter my invoice emails | ScottyB | Outlook - Installation | 1 | April 10th 06 05:01 PM |
Imported mail filter | Miles | Outlook Express | 2 | March 4th 06 04:01 AM |
Filter on other headings? | Chuck | Outlook Express | 5 | February 8th 06 02:29 PM |
Filter Calendar by Label | E Davis | Outlook - Calandaring | 1 | February 8th 06 04:28 AM |
Spam Filter? | Deekus | Outlook Express | 1 | January 30th 06 03:43 AM |