A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Spoof filter



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 9th 06, 08:20 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Spoof filter

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  
Old January 9th 06, 09:17 PM posted to microsoft.public.outlook.program_vba
Stuart P. Bentley
external usenet poster
 
Posts: 1
Default Spoof filter

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  
Old January 10th 06, 09:55 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Spoof filter

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 05:05 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright Đ2004-2025 Outlook Banter.
The comments are property of their posters.