On Jul 8, 2004, at 4:20 PM, George Slusher wrote:
> Can you tell SpamSieve to download all emails, check them, put the
> potential spam into
> a special folder, then delete ONLY those that are in that folder,
> leaving the good
> emails on the server?
That should be possible if you modify the "SpamSieve - Evaluate" script:
tell application "PowerMail"
set msgList to current messages
repeat with msg in msgList
try
set src to source of msg
(* evaluate the spam level *)
tell application "SpamSieve" to set externalSpamLevel
to (score
message src)
if externalSpamLevel > 0 then
(* convert the external spam level to a
PowerMail junk level
between 0 and 100:
0: the message is marked as not junk;
1-49: the message is marked with a low junk
level (possible junk);
50-100: marked with a high junk level, and
moved to the junk folder
etc
Note that SpamSieve already returns a 0-49 and
50-100 value*)
set spam rating of msg to externalSpamLevel
end if
if externalSpamLevel >= 50 then
if msg's online status is on server then
set msg's online status to marked for
deletion
end if
end if
end try
end repeat
end tell
--
Michael Tsai <http://www.c-command.com>