On 30/03/2004 at 7:11 PM I saw Marcus Jarrett type:
>>I'm not good at AppleScript, but I've used a simple AppleScript to delete
>>messages immediately within a script in the past. Something like:
>
>-snip-
>
>>This worked well for me.
>
>Unfortunately, as I'm now finding out , when you run a delete script from
>a filter, the filtered mail isn't deleted on the POP server properly, so
>you end up getting MULTIPLE copies of something you didn't want in the
>first place.
>
>Oops...
Is your mail account set to leave copies on the server and delete when
deleting locally? That might result in messages being left on the server.
The script was configured for all messages being downloaded and nothing
left on the server. It certainly might create problems with messages that
are deleted immediately. This is the case where you can move the message
to the trash instead of deleting.
I receive a daily log update from a server in html. Another one sends
daily exchange rates. I don't care to save all the messages, nor do I
need to review each attachment immediately [reference and archive only].
I have a script that I use to move all attachments to a specific folder.
*********************************************************
tell application "PowerMail"
set theMessages to current messages
set destination to "Hard Drive:Users:Kename:Documents:Rates"
repeat with msg in theMessages
repeat with attach in every attachment of msg
tell application "Finder"
set f to file of attach
move f to destination
end tell
end repeat
end repeat
end tell
**********************************************************
Again, I apologize for my poor scripting abilities. In PowerMail, the
filter is set to the address of the incoming messages, the actions then
are the script, set status to read, and move to trash.
Kename