Alexander,

Here's the problem as I remember being told from Jerome some time ago.
The online status of a message cannot be set while a connection is in
progress. Since there's no way to call a filter other than during a
connection this will never work. You either have to call this script
manually or set it up as a cron job.

BTW, this is my relevant part of similar code.

                if online status of msg is on server then
                        set online status of msg to marked for deletion
                end if


-- 
Andy Fragen

On Tue, Apr 19, 2005, Alexander Balakersky said:

>Hello, 
>
>I am trying to setup a script that will automatically change message's
>online status to "marked for deletion". I have succeeded in creating a
>script that works if I manually select a message and run the script.
>However, when I add it as a filter action it does nothing. Is there
>someone how could help me reconfigure this script so it would work in
>both instances, when used manually and when used in a filter action?
>
>Here is the copy of the script:
>
>tell application "PowerMail"
>       set theMessages to current messages
>       repeat with msg in theMessages
>               set oldStatus to online status of msg
>               if oldStatus is not marked for deletion then set online status 
> of msg
>to marked for deletion
>       end repeat
>end tell
>
>
>Thanks
>
>-- 
>Alexander Balakersky
>[EMAIL PROTECTED]
>==========================================================
>PGP Public Key ID: 0xB9C0FC17  Key Server: keyserver.pgp.com
>Fingerprint: 401A 3856 3820 AF50 D2BF  2D0B 9ADC 431A B9C0 FC17
>==========================================================
>
>
>
>






Reply via email to