Title: Re: Virus Checking
Apart from a change to Entourage, the only way I know now to do what you want is via a script that scans and deletes attachment files individually. Put the attached script, below, into your Entourage Script Menu Items folder. I call it "Delete Unwanted Attachments." Then, set up a rule that executes this script if a message has attachments. The script, as set below, will selectively delete only files with the extensions .pif, .scr, or .exe. You can edit the first line to add other file types (don't include the period), or remove one or two of these three.
property unwantedAttachments : {"pif", "scr", "exe"} --
tell application "Microsoft Entourage" --
set theMsg to item 1 of (get current messages) --
set theAtt to every attachment of theMsg --
if theAtt = {} then return --
repeat with anAtt in theAtt --
set attName to name of anAtt --
-- Isolate just the file extension, that which follows "." --
set oldDelims to AppleScript's text item delimiters --
set AppleScript's text item delimiters to {"."} --
set temp to text items of attName --
set attName to text item -1 of temp --
set AppleScript's text item delimiters to oldDelims --
if attName is in unwantedAttachments then --
try --
delete anAtt --
end try --
end if --
end repeat --
end tell --
--
Microsoft MVP for Entourage/OE/Word (MVPs are volunteers)
Allen Watson <[EMAIL PROTECTED]> Entourage FAQ site: <http://www.entourage.mvps.org/>
AppleScripts for Outlook Express and Entourage:
<http:[EMAIL PROTECTED]/Scripts/>
Entourage Help Pages: <http://www.entourage.mvps.org/>
> From: Dennis T Cheung <[EMAIL PROTECTED]>
> Reply-To: "Entourage:mac Talk" <[EMAIL PROTECTED]>
> Date: Thu, 17 Oct 2002 00:26:39 -0700
> To: "Entourage:mac Talk" <[EMAIL PROTECTED]>
> Subject: Re: Virus Checking
>
> A good suggestion. Of course, this is software, so you never know what might
> come out...
>
> On 10/16/02 8:36 PM, "Julian Vrieslander" <[EMAIL PROTECTED]> wrote:
>
>> If the MBU developers are reading this thread, how about clarifying this
>> interface with two different actions:
>>
>> "Remove attachments matching criteria"
>>
>> and
>>
>> "Remove all attachments"
>
> --
> Dennis T Cheung | [EMAIL PROTECTED]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> --
> To unsubscribe:
> <mailto:[EMAIL PROTECTED]>
> archives:
> <http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
> old-archive:
> <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>
- Re: Virus Checking David Morganstein
- Re: Virus Checking Barry Wainwright
- Re: Virus Checking Beth Rosengard
- Re: Virus Checking Beth Rosengard
- Re: Virus Checking Julian Vrieslander
- Re: Virus Checking Beth Rosengard
- Re: Virus Checking Remo Del Bello
- Re: Virus Checking Beth Rosengard
- Re: Virus Checking Julian Vrieslander
- Re: Virus Checking Dennis T Cheung
- Re: Virus Checking Allen Watson
- Re: Virus Checking John C. Welch
- Re: Virus Checking Al Byrne
- Re: Virus Checking John C. Welch
- Re: Virus Checking Paul Bentley
- Re: Virus Checking D�nes Bogs�nyi
- Re: Virus Checking Ryan La Riviere
